2022-12-29 01:53:33 +00:00
|
|
|
user www;
|
|
|
|
worker_processes 1;
|
|
|
|
|
2022-12-29 02:29:47 +00:00
|
|
|
#error_log /var/log/nginx/error.log warn;
|
|
|
|
error_log /dev/null warn;
|
2022-12-29 01:53:33 +00:00
|
|
|
pid /var/run/nginx/nginx.pid;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
sendfile on;
|
2022-12-29 02:29:47 +00:00
|
|
|
access_log off;
|
2022-12-29 01:53:33 +00:00
|
|
|
keepalive_timeout 3000;
|
|
|
|
server {
|
|
|
|
listen 8080;
|
2022-12-29 02:29:47 +00:00
|
|
|
root /www/public;
|
2022-12-29 01:53:33 +00:00
|
|
|
index index.html index.htm index.php;
|
|
|
|
server_name localhost;
|
|
|
|
client_max_body_size 32m;
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
2022-12-29 02:29:47 +00:00
|
|
|
root /var/lib/nginx/html;
|
2022-12-29 01:53:33 +00:00
|
|
|
}
|
2022-12-29 03:05:39 +00:00
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
|
|
}
|
2022-12-29 01:53:33 +00:00
|
|
|
location ~ \.php$ {
|
2022-12-29 02:29:47 +00:00
|
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
include fastcgi.conf;
|
2022-12-29 01:53:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|