PDA

View Full Version : Apache2 Setup



RyderOCZ
02-24-2006, 11:10 AM
Being very new to all things Linux, I am trying to wrap my head around the configuration of Apache to host multiple sites on 1 server.

I understand the layout and requirements of the various configuration files for the most part, but I am having a hard time establishing exactly where those configuration files need to reside.

I have read this and understand it: http://httpd.apache.org/docs/2.0/vhosts/examples.html#purename
Where should that config file reside?

Do I only need that config file in say the sites-available folder with a symbolic link in the sites-enabled folder?
Is creating a config file for each site better?

Am I misinterpreting this and the above config needs to be somewhere else, then a separate config file for each website needs to be in the sites-available folder?

Thanks to all who can help

mrapples
02-24-2006, 09:39 PM
you only need one configuration file generally, and that is /etc/httpd.conf or /etc/apache/httpd.conf (for most distros)

that is where the information from the link you gave goes

RyderOCZ
02-26-2006, 08:34 AM
I got it to work !!! :D

The httpd.conf file can be used in apache2, but it now defaults to config files in the site-available folder (etc/apache2/sites-available) with symbolic links in the sites-enabled folder.

Thanks for the suggestion :cool: