26 lines
501 B
Text
26 lines
501 B
Text
![]() |
server {
|
||
|
listen 80 default_server;
|
||
|
listen [::]:80 default_server;
|
||
|
|
||
|
root /var/www/html;
|
||
|
|
||
|
index index.php index.html index.htm index.nginx-debian.html;
|
||
|
|
||
|
server_name _;
|
||
|
|
||
|
set_real_ip_from <%= @set_real_ip_from %>;
|
||
|
real_ip_header X-Forwarded-For;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
|
||
|
location ~ \.php$ {
|
||
|
include snippets/fastcgi-php.conf;
|
||
|
fastcgi_pass unix:/run/php/php-fpm.sock;
|
||
|
}
|
||
|
|
||
|
location ~ /\.ht {
|
||
|
deny all;
|
||
|
}
|
||
|
}
|