Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Show folder content in web browser



Threaded Mode | Print  

 Show folder content in web browser (13 Replies, Read 18649 times)
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
I want to be able to see the content of the files in a folder/domain in a web browser, and not the webuzo "Default Website Page"
I have done this before, but for the life of me cant remember how it was done, I seem to remember having to add something to "Extra Configuration"

Thanks
Les

-----------------------
Buildz Hosting
IP: --   

Show folder content in web browser
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Hi, this depend on what kind of server you use: Apache, Nigix, etc.
You can do a search on Google.

If I understand well you whant anyone can see all files inside a folder. This can be a security risk however this is called directory listing. You can search on Google.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Show folder content in web browser
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
Quote From : peopleinside March 13, 2017, 5:31 pm
Hi, this depend on what kind of server you use: Apache, Nigix, etc.
You can do a search on Google.

If I understand well you whant anyone can see all files inside a folder. This can be a security risk however this is called directory listing. You can search on Google.


I know its a security risk, we are OK with that. this is for Kodi and it needs to be able to see the content of the folder so the user of kodi can choose the file to download.



-----------------------
Buildz Hosting
IP: --   

Show folder content in web browser
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
We use Apache on our webuzo :)

-----------------------
Buildz Hosting
IP: --   

Show folder content in web browser
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Quote From : lesmond March 13, 2017, 5:43 pm
We use Apache on our webuzo :)


https://wiki.apache.org/httpd/DirectoryListings
:xd:
You can create an htaccess inside the folder with the code:
Code
[font=Arial][size=2][i]Options +Indexes
[/i][/size][/font]


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Show folder content in web browser
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Code is:

Code
Options +Indexes


sorry but the forum software has pasted badly the code.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Show folder content in web browser
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
Sorry, Tried that does not work  :squi:  

-----------------------
Buildz Hosting
IP: --   

Show folder content in web browser
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Hi,
if the code I provide to you doesn't work, your Apache is probably configured to not allow Override so you can read more how to enable it here:
http://stackoverflow.com/questions/18740419/how-to-set-allowoverride-all


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Show folder content in web browser
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
https://httpd.apache.org/docs/current/howto/htaccess.html


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Show folder content in web browser
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
Still no good I'm afraid  :-(

-----------------------
Buildz Hosting
IP: --   

Show folder content in web browser
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Good luck :) This I think is out of the support of webuzo. Is something related your Apache. I cannot assist you anymore. Sorry. All things I know for fix the issue is here. I AM not into your server. Have nice time :)


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Show folder content in web browser
webuzo_manager
Group: Member
Post Group: Elite Member
Posts: 268
Status:
Hi lesmond,

You can edit the welcome.conf file located at the following location:
/usr/local/apps/apache/etc/conf.d

In the welcome.conf file replace the "Options -Indexes" with "Options +Indexes" after that you can see the files contained in the directory.

@peopleinside thanks for guiding the user in the right direction.
IP: --   

Show folder content in web browser
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
Thanks nikhil.m that was it :kiss:

And thank you peopleinside for your help too :angel:

-----------------------
Buildz Hosting
IP: --   

Show folder content in web browser
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
:P


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
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 23, 2024, 5:18 am.

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