Skip to content

Commit

Permalink
minor #3836 remove unnecessary rewrite from nginx conf (Burgov)
Browse files Browse the repository at this point in the history
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 0b06287
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 0b06287

Please sign in to comment.