HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   How to get files stored in web folder listed in the web browser (http://www.howtoforge.com/forums/showthread.php?t=40483)

bhwong 28th October 2009 11:08

How to get files stored in web folder listed in the web browser
 
.htaccess indexes usually get files listed on web browser. But both .htaccess and amendment at apache2 to list file failed. How to do I get this done with ISPConfig? If ISPConfig interface do not support this, is it possible to do it in the terminal?

till 28th October 2009 17:05

You can add this either in the .htaccess file or in the apache directives field of the website.

bhwong 28th October 2009 17:20

As mentioned above, I tried both .htaccess and apache directive. Both do not have any effect on the webpage running from ISPConfig.

Doug G 28th October 2009 20:15

Quote:

Originally Posted by bhwong (Post 208808)
As mentioned above, I tried both .htaccess and apache directive. Both do not have any effect on the webpage running from ISPConfig.

Double-check for any typos and review the log files for any errors. I added directory indexes from an apache directive in ispconfig without any problem.

bhwong 29th October 2009 04:58

Please tell me where I did wrong.

I create .htaccess with "Options +Indexes" as it's content and place in the [web] folder. Get Error 403.

I add the following content in /etc/apache/httpd.conf:

<Directory />
allow from all
Options +Indexes
Allowoverride All
</Directory>

Still get Error 403.

till 29th October 2009 09:50

Whic is the exact error message that gets logged in the error.log of the website?

bhwong 30th October 2009 03:34

The error log show:

Client denied by Server Configuration: /var/www/www.xxx.com/web/public/index.php

But when I access this folder using a FTP Client, I do not see it. I also notice that when I put a .htaccess file, it will disappear too. I have edit the conf not to hide .ht* but it has no effect just as the directive to list files.

dclardy 30th October 2009 04:24

If you are using pure-ftpd, you have to add a file in the configuration to show the files that start with a dot.

This is from a comment on one of the Perfect Server tutorials.

To make PureFTPD show hidden files you have to create a new file "DisplayDotFiles" in "/etc/pure-ftpd/conf/" with the value "yes".

That should show you the .htaccess file in the ftp client.

till 30th October 2009 09:34

Quote:

Originally Posted by bhwong (Post 209011)
The error log show:

Client denied by Server Configuration: /var/www/www.xxx.com/web/public/index.php

But when I access this folder using a FTP Client, I do not see it. I also notice that when I put a .htaccess file, it will disappear too. I have edit the conf not to hide .ht* but it has no effect just as the directive to list files.

Please run the following command as root user on the shell and post the output:

ls -la /var/www/www.xxx.com/web/

bhwong 30th October 2009 13:19

http://www.crescendas.com/temp/capture.gif


All times are GMT +2. The time now is 01:51.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.