wampserver displaying indx of
Posted by: zousug (---.hhui2.ken.bigpond.net.au)
Date: August 14, 2013 06:04AM

Hello,

I have installed wampserver only a day ago and its all working great.

But I have a few questions..

When i browse to localhost from internal or external it just shows Index of / and then lists the file structure..

Even though i have a index.htm file in the directory (and a index.php which by default on my wampserver setup was allowed to be a main file) it does not show them, i have to manually type it in.

How can i prevent the index of / from showing permanently and it go direct to the index page?

Thanks in advance.

Options: ReplyQuote
Re: wampserver displaying indx of
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: August 14, 2013 10:19AM

As you appear to already know this is the command that tells apache what to consider as an index page

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.html index.htm
</IfModule>


Also check that this line exists within a section, this tells Apache to pass .php files to the PHP Interpreter

<IfModule mime_module>
AddType application/x-httpd-php .php


Also check that this line is uncommented, also in the https.conf file

LoadModule mime_module modules/mod_mime.so


Also check within this section that you have Indexes in the list of Options

<Directory "c:/wamp/www/">
Options Indexes



Question, have you changed anything in the httpd.conf?

Options: ReplyQuote


Sorry, only registered users may post in this forum.