MKANET

Untitled

Jan 11th, 2021
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1.  
  2.  
  3. worker_processes 1;
  4.  
  5. events {
  6. worker_connections 1024;
  7. }
  8.  
  9. http {
  10. include mime.types;
  11. default_type application/octet-stream;
  12.  
  13. sendfile on;
  14. keepalive_timeout 65;
  15. autoindex_localtime on;
  16. allow all;
  17. include ./conf/denyips.conf;
  18.  
  19. server {
  20.  
  21. listen 80;
  22. server_name localhost;
  23. return 301 https://$host$request_uri;
  24. }
  25.  
  26.  
  27. server {
  28. listen 443 ssl http2;
  29. listen [::]:443 ssl http2;
  30. ssl_certificate ./ssl/fullchain.cer;
  31. ssl_certificate_key ./ssl/cert.key;
  32. server_name ombii.mywebsite.com;
  33. location / {
  34. proxy_pass http://localhost:3180;
  35. proxy_set_header Accept-Encoding "";
  36. proxy_http_version 1.1;
  37. proxy_set_header Upgrade $http_upgrade;
  38. proxy_set_header Connection $http_connection;
  39. }
  40. }
  41.  
  42.  
  43. server {
  44. listen 443 ssl http2;
  45. listen [::]:443 ssl http2;
  46. ssl_certificate ./ssl/fullchain.cer;
  47. ssl_certificate_key ./ssl/cert.key;
  48. server_name notes.mywebsite.com;
  49. location /notes {
  50. proxy_pass http://localhost:88;
  51. proxy_set_header Accept-Encoding "";
  52. proxy_http_version 1.1;
  53. proxy_set_header Upgrade $http_upgrade;
  54. proxy_set_header Connection $http_connection;
  55. }
  56. }
  57.  
  58. #Root Domain
  59. server {
  60. listen 443 ssl http2;
  61. listen [::]:443 ssl http2;
  62. ssl_certificate ./ssl/fullchain.cer;
  63. ssl_certificate_key ./ssl/cert.key;
  64. server_name_in_redirect off;
  65. log_not_found off;
  66. server_name www.mywebsite.com mywebsite.com;
  67.  
  68.  
  69. location / {
  70. root /inetpub/wwwroot;
  71. index index.html index.htm;
  72. }
  73.  
  74.  
  75. location ~ \.php$ {
  76. root /inetpub/wwwroot;
  77. fastcgi_pass 127.0.0.1:1123;
  78. fastcgi_index index.php;
  79. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  80. include fastcgi_params;
  81. }
  82.  
  83. }
  84.  
  85. }
  86.  
Advertisement
Add Comment
Please, Sign In to add comment