This repository has been archived on 2025-02-14. You can view files and clone it, but cannot push or open issues or pull requests.
esh/esh_nginx/templates/default/default.erb

26 lines
501 B
Text
Raw Normal View History

2025-02-15 00:56:26 +09:00
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;
}
}