Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name example.com www.example.com;
  4. return 301 https://example.com$request_uri;
  5. }
  6.  
  7. server {
  8. listen 443 ssl;
  9. server_name example.com;
  10. root /var/www;
  11. index index.html;
  12.  
  13. # ssl_certificate, etc...
  14.  
  15. location / {
  16. try_files $uri $uri/ /index.html =404;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement