Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : How to enable directory listing in nginx



Threaded Mode | Print  

 How to enable directory listing in nginx (2 Replies, Read 31698 times)
tivima
Group: Member
Post Group: Newbie
Posts: 8
Status:
Hello,

I apologize for my English.

===CASE #1===

So, I am using nginx as webserver.

In public_html, I made a directory called "dir1". I add some files in it let's says one.jpg, two.jpg, three.jpg. So these 3 files would be in /home/soft/public_html/dir1/ or hxxp://my_ip_address.com/dir1 (CMIIW)

But when I access the directory hxxp://my_ip_address.com/dir1, it shows 404.

===CASE #2===

I added 1 domain. Let's say domain1.com. I can access this domain by visiting hxxp://domain1.com. Within this domain, I created a directory called "asset" and put 3 TXT files in it, let's say 1.txt, 2.txt, 3.txt. Now I want to access this directory (in hope I can see the list of 3 TXT files), so I open my browser and visit hxxp://domain1.com/asset but when I do, it shows 404 error page

===QUESTION===
I wonder how to enable this directory listing? What file(s) should I configure?

Thanks in advance

Best regards
timiva

PS. I change the hxxp to http because I can't post URL.
IP: --   

How to enable directory listing in nginx
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Hi,

Sir indexing can be accessed as follows

http://domain.com/~username/

You can turn on autoindexing entirely by editing the Nginx file located at
/usr/local/apps/nginx/etc/conf.d/common

Make sure you restart the NGINX service once you make the changes.

Hope it helps \m/  :xd:


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

How to enable directory listing in nginx
tivima
Group: Member
Post Group: Newbie
Posts: 8
Status:
thanks, it works.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 29, 2024, 1:06 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.230