Guest User

Untitled

a guest
Feb 11th, 2023
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4.  
  5. server_name example.com www.example.com;
  6.  
  7. location / {
  8. proxy_pass http://localhost:8000;
  9. include proxy_params;
  10. proxy_set_header Host $http_host;
  11. proxy_set_header X-Real-IP $remote_addr;
  12. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  13. proxy_set_header X-Forwarded-Proto $scheme;
  14. }
  15. }
  16. server {
  17. listen 80;
  18. listen [::]:80;
  19.  
  20.  
  21. listen 443 ssl;
  22.  
  23.  
  24. ssl on;
  25. ssl_certificate /home/cert/certificates.crt;
  26. ssl_certificate_key /home/cert/private.key;
  27.  
  28.  
  29. server_name example.com www.example.com;
  30. access_log /var/log/nginx/nginx.vhost.access.log;
  31. error_log /var/log/nginx/nginx.vhost.error.log;
  32. location / {
  33. root /var/www/html;
  34. index index.html;
  35. }
  36.  
  37. }
  38.  
Add Comment
Please, Sign In to add comment