httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Low <>
Subject Re: [users@httpd] urgent configuration file help needed confused about that
Date Tue, 18 Oct 2005 00:36:17 GMT

Ok, you haven't mentioned it but your paths seem to indicate it's this
is on Debian.

>  I need to configure the name based virtual hosts(multiple websites
> for single ip) and ip based virtual hosts in apache2.


> I am reall got confused about the which file i need to configure
> i.e /etc/apache2/apache2.conf
> or /etc/apache2/site-available/default file.Please help me in this.
> I want to know what is the purpose of apache2.conf and 
> sites-available/default file purpose.

Neither. apache2.conf defines server variables. Ie. Things like which
modules to load, default variables like defining what the server root is
etc. You probably shouldn't bother modifying it.

The default file defines the default virtual host. Ie. The virtualhost
to default to if there's no match in other virtualhosts. You add your
virtualhosts (preferably on a file by file basis) to files such as site-
available/mydomain.conf. You add your <VirtualHost> statements etc. to
> I am really confused now which file is important to enter tha virtual
> host details.

Seperate files.

> If i want to change the default document root i have to change on
> etc/apache2/site-available/default file that is why i got confused

Yes, that's correct. Ie. you want to change the "default location to
serve files from".


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message