Advertisement
Gabrielplcs

ngninx 8080

Aug 1st, 2023
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 2.17 KB | Source Code | 0 0
  1. user www-data;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5.  
  6. events {
  7.         worker_connections 768;
  8.         # multi_accept on;
  9. }
  10.  
  11. http {
  12.        server {
  13.     listen       8080;
  14.     server_name  localhost;
  15.  
  16.     location / {
  17.         root   /usr/share/nginx/www;
  18.         index  index.html index.htm;
  19.     }
  20. }
  21.         ##
  22.         # Basic Settings
  23.         ##
  24.  
  25.         sendfile on;
  26.         tcp_nopush on;
  27.         tcp_nodelay on;
  28.         keepalive_timeout 65;
  29.         types_hash_max_size 2048;
  30.         # server_tokens off;
  31.  
  32.         # server_names_hash_bucket_size 64;
  33.         # server_name_in_redirect off;
  34.  
  35.         include /etc/nginx/mime.types;
  36.         default_type application/octet-stream;
  37.  
  38.         ##
  39.         # SSL Settings
  40.         ##
  41.  
  42.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  43.         ssl_prefer_server_ciphers on;
  44.  
  45.         ##
  46.         # Logging Settings
  47.         ##
  48.  
  49.         access_log /var/log/nginx/access.log;
  50.         error_log /var/log/nginx/error.log;
  51.  
  52.         ##
  53.         # Gzip Settings
  54.         ##
  55.  
  56.         gzip on;
  57.  
  58.         # gzip_vary on;
  59.         # gzip_proxied any;
  60.         # gzip_comp_level 6;
  61.         # gzip_buffers 16 8k;
  62.         # gzip_http_version 1.1;
  63.         # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  64.  
  65.         ##
  66.         # Virtual Host Configs
  67.         ##
  68.  
  69.         include /etc/nginx/conf.d/*.conf;
  70.         include /etc/nginx/sites-enabled/*;
  71. }
  72.  
  73.  
  74. mail {
  75.         # See sample authentication script at:
  76.         # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  77.  
  78.         # auth_http localhost/auth.php;
  79.         # pop3_capabilities "TOP" "USER";
  80.         # imap_capabilities "IMAP4rev1" "UIDPLUS";
  81.  
  82.         server {
  83.                 listen     localhost:110;
  84.                 protocol   pop3;
  85.                 proxy      on;
  86.                server_name localhost;
  87.  
  88. }
  89.  
  90.         server {
  91.                 listen     localhost:143;
  92.                 protocol   imap;
  93.                 proxy      on;
  94.                server_name localhost;
  95.         }
  96. }
  97.  
Tags: nginx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement