|
|
@ -0,0 +1,39 @@ |
|
|
|
server { |
|
|
|
listen 80; |
|
|
|
|
|
|
|
client_max_body_size 4M; |
|
|
|
client_body_buffer_size 128k; |
|
|
|
|
|
|
|
server_name phabricator.lilik.it; |
|
|
|
root /usr/share/phabricator; |
|
|
|
index index.php; |
|
|
|
|
|
|
|
location ~ /(data/|conf/|bin/|inc/|install.php) { deny all; } |
|
|
|
location / { try_files $uri $uri @phabricator; } |
|
|
|
|
|
|
|
location @phabricator { |
|
|
|
index index.php; |
|
|
|
rewrite ^/(.*)$ /index.php?__path__=/$1 last; |
|
|
|
} |
|
|
|
|
|
|
|
location /index.php { |
|
|
|
fastcgi_index index.php; |
|
|
|
|
|
|
|
fastcgi_param REDIRECT_STATUS 200; |
|
|
|
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
|
|
|
fastcgi_param QUERY_STRING $query_string; |
|
|
|
fastcgi_param REQUEST_METHOD $request_method; |
|
|
|
fastcgi_param CONTENT_TYPE $content_type; |
|
|
|
fastcgi_param CONTENT_LENGTH $content_length; |
|
|
|
|
|
|
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name; |
|
|
|
|
|
|
|
fastcgi_param GATEWAY_INTERFACE CGI/1.1; |
|
|
|
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; |
|
|
|
|
|
|
|
fastcgi_param REMOTE_ADDR $remote_addr; |
|
|
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; |
|
|
|
} |
|
|
|
|
|
|
|
} |