56 lines
1.2 KiB
Nginx Configuration File
56 lines
1.2 KiB
Nginx Configuration File
|
user nginx;
|
||
|
worker_processes auto;
|
||
|
|
||
|
error_log /var/log/nginx/error.log crit;
|
||
|
pid /var/run/nginx.pid;
|
||
|
|
||
|
|
||
|
events {
|
||
|
worker_connections 51200;
|
||
|
multi_accept on;
|
||
|
use epoll;
|
||
|
}
|
||
|
|
||
|
http {
|
||
|
|
||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||
|
'$status $body_bytes_sent "$http_referer" '
|
||
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||
|
|
||
|
access_log /var/log/nginx/access.log main;
|
||
|
|
||
|
server_tokens off;
|
||
|
sendfile on;
|
||
|
tcp_nopush on;
|
||
|
tcp_nodelay on;
|
||
|
keepalive_timeout 15;
|
||
|
types_hash_max_size 2048;
|
||
|
include /etc/nginx/mime.types;
|
||
|
default_type application/octet-stream;
|
||
|
access_log off;
|
||
|
error_log off;
|
||
|
gzip on;
|
||
|
gzip_disable "msie6";
|
||
|
open_file_cache max=100;
|
||
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
server_name localhost;
|
||
|
|
||
|
location / {
|
||
|
root /usr/share/nginx/html/;
|
||
|
index index.html index.htm index.php;
|
||
|
}
|
||
|
|
||
|
location /.well-known/acme-challenge/ {
|
||
|
alias /usr/share/nginx/html/;
|
||
|
try_files $uri =404;
|
||
|
|
||
|
error_log /var/log/nginx/php_error.log;
|
||
|
access_log /var/log/nginx/php_access.log;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
daemon off;
|