
28th October 2009, 10:08
|
|
Member
|
|
Join Date: Oct 2009
Posts: 42
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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?
|

28th October 2009, 16:05
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
You can add this either in the .htaccess file or in the apache directives field of the website.
|

28th October 2009, 16:20
|
|
Member
|
|
Join Date: Oct 2009
Posts: 42
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
As mentioned above, I tried both .htaccess and apache directive. Both do not have any effect on the webpage running from ISPConfig.
|

28th October 2009, 19:15
|
|
Member
|
|
Join Date: Apr 2008
Posts: 63
Thanks: 0
Thanked 6 Times in 4 Posts
|
|
Quote:
Originally Posted by bhwong
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.
__________________
=====
Doug G
=====
|

29th October 2009, 03:58
|
|
Member
|
|
Join Date: Oct 2009
Posts: 42
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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.
|

29th October 2009, 08:50
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Whic is the exact error message that gets logged in the error.log of the website?
|

30th October 2009, 02:34
|
|
Member
|
|
Join Date: Oct 2009
Posts: 42
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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.
|

30th October 2009, 03:24
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Dallas, TX
Posts: 306
Thanks: 10
Thanked 35 Times in 22 Posts
|
|
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.
|

30th October 2009, 08:34
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Quote:
Originally Posted by bhwong
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/
|

30th October 2009, 12:19
|
|
Member
|
|
Join Date: Oct 2009
Posts: 42
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 09:19.
|
|
Recent comments
7 hours 58 min ago
13 hours 2 min ago
17 hours 27 min ago
19 hours 16 min ago
1 day 9 hours ago
1 day 9 hours ago
1 day 14 hours ago
1 day 21 hours ago
1 day 22 hours ago
1 day 23 hours ago