Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name _;
- access_log /var/log/nginx/backfoo.access.log;
- error_log /var/log/nginx/backfoo.error.log;
- location / {
- root /var/www/nginx-default;
- autoindex on;
- index index.html index.htm;
- }
- location /doc {
- root /usr/share/doc;
- autoindex on;
- }
- location /repo {
- root /home/repo;
- autoindex on;
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /var/www/nginx-default;
- }
- }
Add Comment
Please, Sign In to add comment