Skip to content

Commit

Permalink
remove unnecessary rewrite from nginx conf
Browse files Browse the repository at this point in the history
It is unnecessary to rewrite to a different URL when you can simply have the request be handled by app.php
  • Loading branch information
Burgov committed May 6, 2014
1 parent 127beed commit 0968505
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cookbook/configuration/web_server_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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(/|$) {
Expand Down

0 comments on commit 0968505

Please sign in to comment.