Guest User

Untitled

a guest
Sep 13th, 2018
312
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This is a default site configuration which will simply return 404, preventing
  2. # chance access to any other virtualhost.
  3.  
  4. server {
  5. listen 80 default_server;
  6. listen [::]:80 default_server;
  7. server_name localhost;
  8. root /var/www/localhost;
  9. # Everything is a 404
  10. location / {
  11. root /var/www/localhost/htdocs;
  12. }
  13.  
  14. # You may need this to prevent return 404 recursion.
  15. location = /404.html {
  16. internal;
  17. }
  18. }
RAW Paste Data