How to get files stored in web folder listed in the web browser

Discussion in 'Installation/Configuration' started by bhwong, Oct 28, 2009.

  1. bhwong

    bhwong New Member

    .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?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

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

    bhwong New Member

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

    Doug G Member HowtoForge Supporter

    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.
     
  5. bhwong

    bhwong New Member

    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.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

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

    bhwong New Member

    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.
     
  8. dclardy

    dclardy Member

    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.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

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

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

    bhwong New Member

  11. falko

    falko Super Moderator Howtoforge Staff

    Run
    Code:
    chmod 755 /var/www/www.xxx.com/web/
     
  12. bhwong

    bhwong New Member

    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/
     
  13. bhwong

    bhwong New Member

    Am I the only one who has this listing deny issue with ISPConfig3? :confused:
     
  14. bhwong

    bhwong New Member

    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. :)
     

Share This Page