Skip to content
New issue

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

Not working at all (probably a configuration issue) #105

Open
wodim opened this issue Apr 28, 2019 · 2 comments
Open

Not working at all (probably a configuration issue) #105

wodim opened this issue Apr 28, 2019 · 2 comments

Comments

@wodim
Copy link

wodim commented Apr 28, 2019

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;
        }
}
@SubrataM3
Copy link

SubrataM3 commented Jun 7, 2019

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.

@wodim
Copy link
Author

wodim commented Jun 7, 2019

True, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants