Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. # /etc/nginx/sites-available/example.org
  2.  
  3. server {
  4. listen 80;
  5. listen [::]:80;
  6.  
  7. listen 443 ssl;
  8.  
  9. root /var/www/example.org/public;
  10. index index.html index.htm;
  11.  
  12. server_name example.org www.example.org;
  13. return 301 https://example.org$request_uri;
  14.  
  15. ssl_certificate /etc/nginx/ssl/nginx.crt;
  16. ssl_certificate_key /etc/nginx/ssl/nginx.key;
  17.  
  18. location / {
  19. try_files $uri $uri/ =404;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement