Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Commonapache2 and indexes

Status
Not open for further replies.

Anumet

Technical User
Jun 25, 2004
13
0
0
NO
My commonapache currently looks like this:

<Directory /var/ Options Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>

And:

<IfModule mod_dir.c>
DirectoryIndex index.html index.html.var index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm
</IfModule>

With this configuration, I only get the folder index when going to htdocs/myfolder/ on the web. (Yes, there is an index.html file in the folder.)

If I remove Indexes like this:

<Directory /var/ Options FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>

I get "forbidden" when I try to go to the myfolder directory. How do I get the index.html to open automatically?

(apache v. 2.0.50)

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top