26 lines
659 B
Plaintext
26 lines
659 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
listen 8080 default_server;
|
|
|
|
root /var/www;
|
|
index index.php index.html index.htm;
|
|
|
|
location / {
|
|
include /etc/nginx/location.d/*.conf;
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include /etc/nginx/location.d/*.conf;
|
|
fastcgi_pass unix:/run/php-fpm.sock;
|
|
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 "";
|
|
}
|
|
|
|
include /etc/nginx/server.d/*.conf;
|
|
}
|