Advertisement
RingtailedFox

Untitled

May 5th, 2024
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. user www-data;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. error_log /var/log/nginx/error.log;
  5. include /etc/nginx/modules-enabled/*.conf;
  6.  
  7. events {
  8. worker_connections 768;
  9. # multi_accept on;
  10. }
  11.  
  12. http {
  13. server {
  14. location / {
  15. root /var/www/mywebsite.ca/public_html;
  16. }
  17. }
  18.  
  19. ##
  20. # Basic Settings
  21. ##
  22.  
  23. sendfile on;
  24. tcp_nopush on;
  25. types_hash_max_size 2048;
  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 TLSv1.3; # 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.  
  47. ##
  48. # Gzip Settings
  49. ##
  50.  
  51. gzip on;
  52.  
  53. # gzip_vary on;
  54. # gzip_proxied any;
  55. # gzip_comp_level 6;
  56. # gzip_buffers 16 8k;
  57. # gzip_http_version 1.1;
  58. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  59.  
  60. ##
  61. # Virtual Host Configs
  62. ##
  63.  
  64. include /etc/nginx/conf.d/*.conf;
  65. include /etc/nginx/sites-enabled/*;
  66. }
  67.  
  68.  
  69. #mail {
  70. # # See sample authentication script at:
  71. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  72. #
  73. # # auth_http localhost/auth.php;
  74. # # pop3_capabilities "TOP" "USER";
  75. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  76. #
  77. # server {
  78. # listen localhost:110;
  79. # protocol pop3;
  80. # proxy on;
  81. # }
  82. #
  83. # server {
  84. # listen localhost:143;
  85. # protocol imap;
  86. # proxy on;
  87. # }
  88. #}
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement