Guest User

Untitled

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