Commit 12fb65ee authored by Vitaly Lipatov's avatar Vitaly Lipatov

web: make nginx listener portable and restrict PHP paths

parent 66aa86a2
server { server {
listen 91.232.225.67:81; listen 81;
#server_name priv.etersoft.ru; #server_name priv.etersoft.ru;
root /var/www/html/eterban/; root /var/www/html/eterban/;
...@@ -12,7 +12,7 @@ server { ...@@ -12,7 +12,7 @@ server {
# PHP-FPM socket is provided by the current ALT PHP package. # PHP-FPM socket is provided by the current ALT PHP package.
} }
location ~* \.php$ { location ~* \.php$ {
#try_files $uri = 404; try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:@PHP_FPM_SOCKET@; fastcgi_pass unix:@PHP_FPM_SOCKET@;
fastcgi_index index.php; fastcgi_index index.php;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment