Guest User

Untitled

a guest
Nov 4th, 2015
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 80;
  3. server_name forum.spooky4672.me;
  4. return 301 https://$server_name$request_uri;
  5. }
  6. server {
  7.  
  8. listen 443 ssl;
  9. server_name forum.spooky4672.me;
  10.  
  11. #SSL
  12. ssl_certificate /etc/nginx/ssl/forum/forum.spooky4672_chain.pem;
  13. ssl_certificate_key /etc/nginx/ssl/forum/key.pem;
  14.  
  15. #LOGS
  16. access_log /var/log/nginx/forum-access.log;
  17. error_log /var/log/nginx/forum-error.log;
  18.  
  19. location / {
  20. proxy_pass http://local_ip:8080;
  21. }
  22.  
  23. }
RAW Paste Data