How to enable directory browsing?

Currently reading
How to enable directory browsing?

In nginx.conf, I added “autoindex on” to all of the locations listening on port 80 (not knowing which is the right one). I stopped and restarted the Web Station in the Package Center.

No luck. Same problem — no listing of contents when I surf to the directory.

But I do get a 403 error, not a 404, so I know the server is seeing the directory.

I am guessing autoindex is not really “on” in the right “location { }”, permissions are not correct, or the .conf is not really being re-loaded when I stop/restart the Web Station.

Am I close . . . ?
 
I created an autoindex stylesheet for NGINX that looks like Synology File Station. If you are familiar with docker it will take you 5 minutes to set up and index any folder you desire.

GitHub
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

I am trying to setup a php website. Trying to troubleshoot this issue I have an index.html with an iframe...
Replies
0
Views
911
I am my migrating an Apache website to my Synology NAS. A portion of the website needs to be password...
Replies
0
Views
1,216

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top