2017-03-28 17:46:14 +00:00
|
|
|
server {
|
2019-12-07 08:20:39 +00:00
|
|
|
listen 8080 default_server;
|
2017-03-28 17:46:14 +00:00
|
|
|
|
2018-05-27 21:22:08 +00:00
|
|
|
root /var/www;
|
2017-03-28 17:46:14 +00:00
|
|
|
index index.php index.html index.htm;
|
|
|
|
|
|
|
|
location / {
|
2017-03-29 17:40:24 +00:00
|
|
|
include /etc/nginx/location.d/*.conf;
|
2017-03-28 19:28:32 +00:00
|
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
2017-03-28 17:46:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
2017-03-29 17:40:24 +00:00
|
|
|
include /etc/nginx/location.d/*.conf;
|
2018-06-03 18:33:50 +00:00
|
|
|
fastcgi_pass unix:/run/php-fpm.sock;
|
2017-03-28 17:46:14 +00:00
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
include fastcgi_params;
|
|
|
|
|
|
|
|
# Prevent exposing nginx + version to $_SERVER
|
|
|
|
fastcgi_param SERVER_SOFTWARE "";
|
|
|
|
}
|
|
|
|
|
2017-03-29 17:40:24 +00:00
|
|
|
include /etc/nginx/server.d/*.conf;
|
2017-03-28 17:46:14 +00:00
|
|
|
}
|