unable to see all the files under public folder in document root path

Posted on 2014-08-08
Last Modified: 2014-08-11
Dear experts,

I wish to see all the files under the public folder but I wasn't able to configure the apache .conf file correctly that allows me to see all the files. When I access the public folder from browser, it will auto redirect me to my index.php. I wish to see other .php files as well.

I am using xampp to run my web.

Here is my setup:

DocumentRoot: D:\http\webroot\

for <Directory\> and <Directory D:\http\webroot> I didn't change anything which those are the default values been setup by xampp.

Do I need to make some changes there?

I have .htaccess file also. (I turn on the in apache)

Options +FollowSymlinks

RewriteEngine On
RewriteCond %[REQUEST_FILENAME] -s[OR]
RewriteCond %[REQUEST_FILENAME] -l [OR]
RewriteCond %[REQUEST_FILENAME] -d
RewriteBase /JADSystem
RewriteRule ^.*$ - [NC,L}
RewriteRule ^.*$ index.php [NC,L]

Let me know if I need to reconfigure it also. Thanks.
Question by:Kinderly Wade
    LVL 34

    Accepted Solution

    Are you wanting to see the directory listing from the browser? Like a list of all files in that folder where you can click on the file to access it? If so, that's controlled by the directory auto-index (mod_autoindex) and the DirectoryIndex directive (mod_dir).

    If you don't specify a file name, then Apache will look at DirectoryIndex. If the DirectoryIndex configuration contains "abc.php", then the server will look for a file called abc.php. If it finds it, then it will automatically use that. Otherwise, if it doesn't find abc.php or if DirectoryIndex is not configured, then it will check to see if mod_autoindex is enabled. If so, then it will generate that file listing page.

    Author Comment

    by:Kinderly Wade
    Thanks gr8g. That's the answer I was looking for "DirectoryIndex"

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now