willy.club/docker/nginx.conf
2022-12-29 03:49:24 +00:00

38 lines
961 B
Nginx Configuration File

user www;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
access_log off;
keepalive_timeout 3000;
server_tokens off;
server {
listen 8080;
root /www/public;
index index.php;
server_name localhost;
error_page 404 /index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
}
}
}