merge-requests/2/head
parent
5b548eec04
commit
6dcb343c97
|
@ -13,12 +13,14 @@ 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?$uri&$args;
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ ^/(.+\.php)$ {
|
||||||
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
try_files $uri =404;
|
||||||
|
fastcgi_pass unix:/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 fastcgi_params;
|
include /etc/nginx/fastcgi_params;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue