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
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