Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. server {
  2. listen 81;
  3. listen [::]:81;
  4. server_name test.local www.test.local;
  5.  
  6. # Load configuration files for the default server block.
  7. include /etc/nginx/default.d/*.conf;
  8.  
  9. location / {
  10. root /var/www/test.local/html;
  11. index index.html index.htm;
  12. try_files $uri $uri/ =404;
  13.  
  14. }
  15.  
  16. error_page 500 502 503 504 /50x.html;
  17. location = /50x.html {
  18. root /usr/share/nginx/html;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement