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!

apache adding a leading slash to files

Status
Not open for further replies.

paublo

ISP
Sep 14, 2006
127
0
0
US
hi i have a problem that i can't figure it out, i have several virtual hosts setup like this.

NameVirtualHost 1.1.1.1


<VirtualHost 1.1.1.1>
ServerName domain1
DocumentRoot /var/ServerPath /mrtg2/
</VirtualHost>

<VirtualHost 1.1.1.1>
DocumentRoot /var/ServerName domain2
</VirtualHost>

the problem is when i type it takes me to it seems to be treating the index.html file as a directory.

the weird thing is if i type it will display the index.html file from the document root of domain1.

not sure what the problem is but i want index.html pages in virtualhost statements to be treated as files and not have apache add a trailing /.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top