Created
February 4, 2020 12:30
-
-
Save johnniehard/e5f5dfabe15c862f8a42199e9aeb4cce to your computer and use it in GitHub Desktop.
nginx autoindex config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
events { | |
worker_connections 4096; ## Default: 1024 | |
} | |
http { | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
#root /var/www/html; | |
# Add index.php to the list if you are using PHP | |
#index index.html index.htm index.nginx-debian.html; | |
server_name _; | |
location / { | |
autoindex on; | |
root /var/www/html; | |
index index.html; | |
#try_files $uri $uri/ =404; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment