Advertisement
MaxSMoke

main config

Mar 16th, 2024
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.75 KB | None | 0 0
  1. user http;
  2. worker_processes  4;
  3.  
  4. error_log  logs/error.log;
  5. error_log  logs/error.log  notice;
  6. error_log  logs/error.log  info;
  7.  
  8. #pid        logs/nginx.pid;
  9.  
  10.  
  11. events {
  12.     worker_connections  1024;
  13. }
  14.  
  15.  
  16. http {
  17.     include       mime.types;
  18.     include /etc/nginx/conf.d/*.conf;
  19.     default_type  application/octet-stream;
  20.     sendfile           on;
  21.     tcp_nopush         on;
  22.     keepalive_timeout  30;
  23.         autoindex on;
  24.         autoindex_exact_size off;
  25.         autoindex_localtime on;
  26.     gzip  on;
  27.     server {
  28.         listen *:80 default_server;
  29.         server_name _;
  30.         location / {
  31.                 #return 403;
  32.                 root /usr/share/nginx/html;
  33.             index index.html index.htm;
  34.         }
  35.     }
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement