View Full Version : How to get files stored in web folder listed in the web browser
bhwong
28th October 2009, 11:08
.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
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
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
falko
31st October 2009, 14:21
Run
chmod 755 /var/www/www.xxx.com/web/
bhwong
3rd November 2009, 05:24
I have tried this using FTP client. I also tried this using the terminal as you suggested, but it still give error 403. The link is located at: http://ftp.tenpage.com/public/
bhwong
30th November 2009, 05:28
Am I the only one who has this listing deny issue with ISPConfig3? :confused:
bhwong
30th November 2009, 09:02
I solved the listing problem. In ISPConfig3, go to:
System > Server Config > "Server name" > Web Tab > Security Level : High > Medium
Alterative, add "Options +Indexes" to the domain conf file directly at:
/etc/apache2/sites-enabled/ftp.domain.com.vhost
Editing apache2.conf is completely useless and has no impact what-so-ever.
hope this helps. :)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.