Problem setting up multiple websites

Herbyak

Registered
Hello,

I am trying to setup two websites on my iMac and have created the following entry under hosts:

127.0.0.1 privatesite.com
127.0.0.1 albums.com

After activation of web sharing I can access the Apache 2.2 test site from both the entries. I have now altered the httpd.conf as follows:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName privatesite.com
ServerAlias www.privatesite.com
DocumentRoot /www/privatesite
</VirtualHost>

<VirtualHost *:80>
ServerName albums.com
ServerAlias www.albums.com
DocumentRoot /www/albums
</VirtualHost>

I have installed different html test pages in the two directories "privatesite and albums" . However, I can't access these side after re-starting the Apache-server and also refreshing Safari or Firefox. I am always accessing the default Apache test site. What is wrong or what do I have to do to access these sides?

Thxs for help.
Regards, Herbyak
 
Hi,
I have discovered that I have two Apache2 installations on my iMac! Guess that happened when I made the update to Leopard some time ago. Is it possible that the "old" Apache installation was not completely removed when upgrading to Leopard? I did the regular update by the way.
Now, there are two httpd.conf files on the computer - the new one having code of 489 lines and the old one over 1189. Guess there is a conflict between both of them. Can you advice what to do?
Regards
Herbert
 
Back
Top