Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a default site configuration which will simply return 404, preventing
- # chance access to any other virtualhost.
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name localhost;
- root /var/www/localhost;
- # Everything is a 404
- location / {
- root /var/www/localhost/htdocs;
- }
- # You may need this to prevent return 404 recursion.
- location = /404.html {
- internal;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement