apache virtual hosting
I am trying to setup virtual hosting (name based on same system)but as i have set it up for SSL so i am not able to work it out.
what i am thinking now is, can i modify my hosts file and add an entry in it with the ip address and domain name for my other server so that whenever any request will come to this server it will be directed/resolved by hosts file and will forward it to second webserver.
as i have installed my webserver behind the adsl ..portfording done everything is working pretty well.now i want other domains on the same wan IP.will this work ?..
say my webserver1.com is running on 192.168.2.2 and now i have installed another webserver2.com with ip address 192.168.2.10 because my adsl modem is configured for 192.168.2.2 all the port 80 request will be forwarded to 192.168.2.2 , what i am thinking i will add entry for 192.168.2.10 for my second webserver2.com in hosts file.
will this work ?
or please advice how to eliminate ssl ?
|