correctly config nginx

This commit is contained in:
marudor 2018-02-11 19:21:40 +01:00 committed by msquare
parent 85bf3ee580
commit a65d92f04e
1 changed files with 1 additions and 4 deletions

View File

@ -21,13 +21,10 @@ http {
root /var/www/html; root /var/www/html;
location / { location / {
try_files $uri $uri/index.php; try_files $uri $uri/ /index.php?$args;
} }
location ~ \.php$ { location ~ \.php$ {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php break;
}
fastcgi_pass engelsystem:9000; fastcgi_pass engelsystem:9000;
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;