Advertisement
Guest User

Untitled

a guest
Dec 29th, 2019
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 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. rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
  14. rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
  15. }
  16. ##
  17. # Basic Settings
  18. ##
  19.  
  20. sendfile on;
  21. tcp_nopush on;
  22. tcp_nodelay on;
  23. keepalive_timeout 65;
  24. types_hash_max_size 2048;
  25. # don't transmit info about our server version etc
  26. server_tokens off;
  27.  
  28. # server_names_hash_bucket_size 64;
  29. # server_name_in_redirect off;
  30.  
  31. include /etc/nginx/mime.types;
  32. default_type application/octet-stream;
  33.  
  34. ##
  35. # SSL Settings
  36. ##
  37.  
  38. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  39. ssl_prefer_server_ciphers on;
  40.  
  41. ##
  42. # Logging Settings
  43. ##
  44.  
  45. access_log /var/log/nginx/access.log;
  46. error_log /var/log/nginx/error.log;
  47.  
  48. ##
  49. # Gzip Settings
  50. ##
  51.  
  52. # Leave this to Cloudflare.
  53. gzip off;
  54.  
  55. # gzip_vary on;
  56. # gzip_proxied any;
  57. # gzip_comp_level 6;
  58. # gzip_buffers 16 8k;
  59. # gzip_http_version 1.1;
  60. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  61.  
  62. ##
  63. # Virtual Host Configs
  64. ##
  65.  
  66. include /etc/nginx/conf.d/*.conf;
  67. include /etc/nginx/sites-enabled/*;
  68. }
  69.  
  70. #mail {
  71. # # See sample authentication script at:
  72. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  73. #
  74. # # auth_http localhost/auth.php;
  75. # # pop3_capabilities "TOP" "USER";
  76. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  77. #
  78. # server {
  79. # listen localhost:110;
  80. # protocol pop3;
  81. # proxy on;
  82. # }
  83. #
  84. # server {
  85. # listen localhost:143;
  86. # protocol imap;
  87. # proxy on;
  88. # }
  89. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement