Apache - access two or more virtual hosts from outside

Posted by André Alçada Padez on Super User See other posts from Super User or by André Alçada Padez
Published on 2012-04-10T10:44:57Z Indexed on 2012/04/10 11:33 UTC
Read the original article Hit count: 250

Filed under:
|

I have an apache2 server running on my ubuntu system. I have two sites enabled:

default (ServerName localhost)
site2 (ServerName jslib)

I run a windows Virtual Box Machine, to be able to test my stuff in IE.
If i type the ubuntu's IP in the addressbar i get the localhost.

I was wondering how can i access both (or more as i need it) from other machines.

Thanks

update

I have configured the windows' hosts file like so:

10.0.2.2 localhost
10.0.2.2 jslib

It works, but i am really looking for something that i can configure on the server side, and then just change the value of the URL, am i crazy?

© Super User or respective owner

Related posts about ubuntu

Related posts about apache