PDA

View Full Version : [ubuntu] Apache configuring Ubuntu 8.04 Server


maxidrom11
August 2nd, 2008, 07:30 AM
I am new to this
First I tell what I need
I have dedicated server
--------------------------------
I need hosting for multiple websites
I need documentroot in /srv/www/ directory

What to I have to do to configure my Apache2 to get multiple websites working in /srv/www/ directory ???

arkopII
August 2nd, 2008, 10:10 AM
You need to configure one virtual host for each site that you want to publish. For that, you should take a look at the default file in /etc/apache2/sites-available. In your case, basically, each virtual hosts file should change the DocumentRoot directive to be the path /var/www/yoursitefiles.

I hope that helps.

Dedoimedo
August 2nd, 2008, 12:19 PM
Hello,

I have written a long guide, using the CentOS 5 as the platform, but the principle remains pretty much the same, excluding the location of some of the files and directories, which I hope you can figure on your own.

If you're interested, see the link in my siggie - please note it's 150 pages :)

Cheers,
Dedoimedo

maxidrom11
August 3rd, 2008, 09:29 AM
thanks for your wise answers -

I will go on with posting here here as I proceed ...