Guest User

Untitled

a guest
Mar 17th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. server {
  2.  
  3. server_name confluence.example.com;
  4.  
  5. listen 443 ssl;
  6. ssl_certificate /etc/letsencrypt/live/confluence.example.com/fullchain.pem;
  7. ssl_certificate_key /etc/letsencrypt/live/confluence.example.com/privkey.pem;
  8. include /etc/letsencrypt/options-ssl-nginx.conf;
  9. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
  10.  
  11. location / {
  12.  
  13. proxy_set_header Host $host;
  14. proxy_set_header X-Real-IP $remote_addr;
  15. proxy_pass http://localIp:8090;
  16. }
  17. }
  18.  
  19. server {
  20.  
  21. if ($host = confluence.example.com) {
  22.  
  23. return 301 https://$host$request_uri;
  24. }
  25.  
  26. listen 80 ;
  27. server_name confluence.example.com;
  28. return 404;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment