We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What could be wrong here? nginx 1.15.9
server { listen 80; listen 443 ssl http2; server_name xxx; charset utf-8; default_type text/plain; ssl_certificate /etc/letsencrypt/live/xxx/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/xxx/privkey.pem; # managed by Certbot if ($scheme = http) { return 301 https://$server_name$request_uri; } autoindex on; root /var/www/xxx/; location / { fancyindex on; # Enable fancy indexes. fancyindex_exact_size off; # Output human-readable file sizes. } location /unlisted { autoindex off; } }
The text was updated successfully, but these errors were encountered:
You should try turning off autoindex at server block. OR
location / { autoindex off; fancyindex on; # Enable fancy indexes. fancyindex_exact_size off; # Output human-readable file sizes. }
I think they are conflicting.
Sorry, something went wrong.
True, thank you.
No branches or pull requests
What could be wrong here? nginx 1.15.9
The text was updated successfully, but these errors were encountered: