Twissel

doman config

Jun 17th, 2021
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 8.8.8.8:443 ssl http2;
  3. server_name subdomain.mydomain.com ;
  4. root /home/master/web/subdomain.mydomain.com/public_html;
  5. index index.php index.html index.htm;
  6. access_log /var/log/nginx/domains/subdomain.mydomain.com.log combined;
  7. access_log /var/log/nginx/domains/subdomain.mydomain.com.bytes bytes;
  8. error_log /var/log/nginx/domains/subdomain.mydomain.com.error.log error;
  9.  
  10. ssl_certificate /home/master/conf/web/subdomain.mydomain.com/ssl/subdomain.mydomain.com.pem;
  11. ssl_certificate_key /home/master/conf/web/subdomain.mydomain.com/ssl/subdomain.mydomain.com.key;
  12. ssl_stapling on;
  13. ssl_stapling_verify on;
  14.  
  15. include /home/master/conf/web/subdomain.mydomain.com/nginx.hsts.conf*;
  16.  
  17. location / {
  18.  
  19. proxy_set_header X-Real-IP $remote_addr;
  20. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  21. proxy_set_header X-Forwarded-Proto $scheme;
  22. proxy_set_header Host $http_host;
  23. proxy_set_header X-NginX-Proxy true;
  24.  
  25. proxy_pass http://127.0.0.1:4567;
  26. proxy_redirect off;
  27.  
  28. #Socket.IO Support
  29. proxy_http_version 1.1;
  30. proxy_set_header Upgrade $http_upgrade;
  31. proxy_set_header Connection "upgrade";
  32. }
  33.  
  34. location /error/ {
  35. alias /home/master/web/subdomain.mydomain.com/document_errors/;
  36. }
  37.  
  38. location ~* "/\.(htaccess|htpasswd)$" {
  39. deny all;
  40. return 404;
  41. }
  42.  
  43. location /vstats/ {
  44. alias /home/master/web/subdomain.mydomain.com/stats/;
  45. include /home/master/web/subdomain.mydomain.com/stats/auth.conf*;
  46. }
  47.  
  48. include /etc/nginx/conf.d/phpmyadmin.inc*;
  49. include /etc/nginx/conf.d/phppgadmin.inc*;
  50. include /home/master/conf/web/subdomain.mydomain.com/nginx.ssl.conf_*;
  51. }
  52.  
RAW Paste Data