Permalink
Browse files

minor #3836 remove unnecessary rewrite from nginx conf (Burgov)

This PR was merged into the 2.3 branch.

Discussion
----------

remove unnecessary rewrite from nginx conf

It is unnecessary to rewrite to a different URL when you can simply have the request be handled by app.php

Commits
-------

0968505 remove unnecessary rewrite from nginx conf
  • Loading branch information...
weaverryan committed May 10, 2014
2 parents d8aaac3 + 0968505 commit 0b06287e617d870dd7ea7173b7670893b7f6c6dc
Showing with 2 additions and 7 deletions.
  1. +2 −7 cookbook/configuration/web_server_configuration.rst
@@ -77,13 +77,8 @@ are:
root /var/www/project/web;
location / {
# try to serve file directly, fallback to rewrite
try_files $uri @rewriteapp;
}
location @rewriteapp {
# rewrite all to app.php
rewrite ^(.*)$ /app.php/$1 last;
# try to serve file directly, fallback to app.php
try_files $uri /app.php$is_args$args;
}
location ~ ^/(app|app_dev|config)\.php(/|$) {

0 comments on commit 0b06287

Please sign in to comment.