Guest User

Untitled

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