Hello
I have configured Apache 2.2 to have two different virtual hosts.
The simplified httpd-vhosts.conf file is this:
And I 've included these lines in hosts file:
With this configuration, things work perfectly on the same computer where Apache is installed i.e. under localhost:
when I browse to http://forumsite it displays the forumsite
when I browse to http://shoppingsite it displays the shoppingsite
So far so good. But when I try to access from another computer:
when I browse to http://address_of_apache_server
ıt serves solely the forumsıte and I have no way to access shoppıngsıte externally
How to externally access the second vırtual host
I have configured Apache 2.2 to have two different virtual hosts.
The simplified httpd-vhosts.conf file is this:
Code:
<VirtualHost *:80>
ServerName forumsite
DocumentRoot "/Library/WebServer/forumsite"
</VirtualHost>
<VirtualHost *:80>
ServerName shoppingsite
DocumentRoot "/Library/WebServer/shoppingsite"
</VirtualHost>
And I 've included these lines in hosts file:
Code:
127.0.0.1 forumsite
127.0.0.1 shoppingsite
With this configuration, things work perfectly on the same computer where Apache is installed i.e. under localhost:
when I browse to http://forumsite it displays the forumsite
when I browse to http://shoppingsite it displays the shoppingsite
So far so good. But when I try to access from another computer:
when I browse to http://address_of_apache_server
ıt serves solely the forumsıte and I have no way to access shoppıngsıte externally
How to externally access the second vırtual host