Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Location: `/etc/nginx/sites-available/<domain>`
  2.  
  3. ``` bash
  4. server {
  5. listen 80;
  6. listen [::]:80;
  7.  
  8. server_name <domain>;
  9.  
  10. root /var/www/<domain>;
  11. index index.html;
  12.  
  13. location / {
  14. try_files $uri $uri/ =404;
  15. }
  16. }
  17. ```
  18.  
  19. > Don't forget to enable the site with a symlink: `$ ln -svf /etc/nginx/sites-available/<domain> /etc/nginx/sites-available/`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement