Skip to content

Instantly share code, notes, and snippets.

@itspacchu
Last active January 27, 2023 07:07
Show Gist options
  • Save itspacchu/bda611d49efe8c3d534a6a22f5acb972 to your computer and use it in GitHub Desktop.
Save itspacchu/bda611d49efe8c3d534a6a22f5acb972 to your computer and use it in GitHub Desktop.
test nginx_conf
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
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;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
server {
listen 80 default_server;
listen [::]:80 default_server;
root /usr/share/nginx/html;
index index.html index.htm;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
include /etc/nginx/conf.d/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment