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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VirtualHost homepage 1

Status
Not open for further replies.

whizza

Programmer
Feb 4, 2002
16
0
0
GB
Apache/1.3.28 Server

In httpd.conf I can specify the DocumentRoot
for a VirtualHost and index.htm works as the
home page.

Is there a way to specify the homepage.htm file
to be used by a VirtualHost ?

 
Yes, you can put almost any directive inside the <VirtualHost>......</VirtualHost> directive and it will then only apply to that virtual host.

What you need to do is put 'DirectoryIndex homepage.htm' inside the VirtualHost directive you want it to be affective in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top