mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Update nginx configuration documentation.
Summary: The configuration guide for nginx recommends using a conditional statement to check if a file exists, which is listed on the [[http://wiki.nginx.org/Pitfalls#Check_IF_File_Exists | nginx wiki]] as a common pitfall. It is not necessary to use a conditional and probably should not be recommended to do so. Test Plan: We use this nginx configuration in our installation. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9401
This commit is contained in:
parent
858d1e699f
commit
3219039575
1 changed files with 6 additions and 9 deletions
|
@ -85,18 +85,15 @@ For nginx, use a configuration like this:
|
||||||
name=nginx.conf
|
name=nginx.conf
|
||||||
server {
|
server {
|
||||||
server_name phabricator.example.com;
|
server_name phabricator.example.com;
|
||||||
|
|
||||||
root /path/to/phabricator/webroot;
|
root /path/to/phabricator/webroot;
|
||||||
try_files $uri $uri/ /index.php;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
if ( !-f $request_filename )
|
|
||||||
{
|
|
||||||
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
|
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location = /favicon.ico {
|
||||||
|
try_files $uri =204;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /index.php {
|
location /index.php {
|
||||||
|
|
Loading…
Reference in a new issue