Skip to content

Instantly share code, notes, and snippets.

@johnniehard
Created February 4, 2020 12:30
Show Gist options
  • Save johnniehard/e5f5dfabe15c862f8a42199e9aeb4cce to your computer and use it in GitHub Desktop.
Save johnniehard/e5f5dfabe15c862f8a42199e9aeb4cce to your computer and use it in GitHub Desktop.
nginx autoindex config
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