Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. server {
  2.  
  3. listen 443 default_server;
  4. server_name staxnode1.staxhost.net;
  5.  
  6. ssl on;
  7. ssl_certificate "/etc/letsencrypt/live/staxnode1.staxhost.net/fullchain.pem";
  8. ssl_certificate_key "/etc/letsencrypt/live/staxnode1.staxhost.net/privkey.pem";
  9. ssl_session_cache shared:SSL:10m;
  10.  
  11. location / {
  12.  
  13. proxy_pass http://192.168.1.50:8080; # my existing apache instance
  14. proxy_set_header Host $host;
  15.  
  16. # re-write redirects to http as to https, example: /home
  17. proxy_redirect http:// https://;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement