cannot access a web folder url

by 3 replies
4
















#programming #access #folder #url #web
  • You have to check in your httpd.conf if the directive DirectoryIndex is set.
    It might be something like
    Code:
    DirectoryIndex index.html
    or
    Code:
    DirectoryIndex index.php
    or
    Code:
    DirectoryIndex disabled
    Create a index.php and put this inside
    Code:
    <?php echo "It Works!"; ?>
    . Browse the directory, and see if the index works.Also, create a .htaccess file inside that directory and put this:
    Code:
    Options Indexes
    Hope will help.
  • hi

    thank you for your reply

    I use DreamHost and not sure where to check for this

    httpd.conf

    Please explain
    • [1] reply
    • If you have a shared webhosting package it's not possible to modify httpd.conf since this is the configuration file for apache server. You can't even find it, since is in /etc/httpd/conf/, therefore you can't find it within your FTP server. The above can be used only if you are on a local webserver (xampp, wampp) or on a VPS or dedicated server.

Next Topics on Trending Feed