[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Virtual Servers on Apache



Quoting Curtis Vaughan <curtis@npc-usa.com>:

> YES!
> 
> That worked.
> 
> Any ideas about how to tell Apache that the default file for a Host is a 
> particular file (i.e., for www.npc-usa.com the default (home) file is 
> NPC_Home.htm).
Hi,
I think you want to use this in httpd.conf:
DirectoryIndex

An example

DirectoryIndex index.html index.php NPC_Home.htm

This will allow any of these 3 files to be used as the default.
If you using apache from Potato this option is in the srm.conf

Cheers,
Mike


> 
> Curtis
> 
> Tom Goulet (UID0) wrote:
> > Try it this way:
> > 
> > 
> >>NameVirtualHost 208.12.13.138:80
> > 
> > NameVirtualHost *
> >  
> > 
> >><VirtualHost _default_:80>
> >>DocumentRoot /var/www/NPC/
> >>ServerName www.npc-usa.com
> >></VirtualHost>
> >>
> >><VirtualHost _default_:80>
> > 
> > 
> > <VirtualHost *>
> > 
> > For everything that isn't the default.
> > 
> > 
> >>But regardless of which site I go to I end up in the directory for 
> >>www.npc-usa.com
> > 
> > 
> > You have too many _default_s :)
> >  
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 




-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



Reply to: