merge-requests/2/head
parent
6c151bca8c
commit
5cf32f3bac
|
@ -13,14 +13,13 @@ server {
|
||||||
error_log /var/log/nginx/hr_error.log;
|
error_log /var/log/nginx/hr_error.log;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
try_files $uri $uri/ /index.php?$uri&$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/(.+\.php)$ {
|
location ~ \.php$ {
|
||||||
try_files $uri =404;
|
include snippets/fastcgi-php.conf;
|
||||||
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
|
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
||||||
fastcgi_index index.php;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
include /etc/nginx/fastcgi_params;
|
include fastcgi_params;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue