Apache - access two or more virtual hosts from outside
- by André Alçada Padez
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?