Hi Guys n Galls. I am going out of my head trying to sort out this little problem i have.
I am hosting my VM server on a single fixed IP accross adsl.
I have VM working fine but i need to set up forwarding traffic to subdomains to an internal server.
If i have http://www.mydomain.com go to my VM server - all works well I want to have http://sub.mydomain.com to go to my internal machine at http://192.168.0.1:80
I have set up a dns entry in bind for the sub.mydomain.com on the same public IP as my VM server.
I have also come to the conclusion that my traffic needs to be forwarded via ProxyPass and ProxyPassReverse. So i have included a new section at the bottom of my http.conf file with the Following code.
ServerName sub.mydomain.com ServerAlias sub.mydomain.com ProxyPass / http://192.168.0.1:80 ProxyPassReverse / http://192.168.0.1:80 Allow From All ProxyRequests on
It seems to work okay from within the network but when i do an nslookup on sub.mydomain.com i get non-existant domain
any suggestions?
eX
Yeah, setting up a Proxy sounds like what you want.
However, if you get a non-existent domain when doing a lookup, that sounds like a DNS issue.
I'd double-check your DNS settings in BIND -- and if they're good, you might be dealing with a cache issue. That is, you may just need to wait 24 hours or so for the cache to clear out.
-Eric
Thanks andreychek, You were correct about the cache problem. The problem lasted all of 3 or 4 hours and then disappeared. Thanks for the info and help. New issue on default web for Ip but i will open a new Topic for that.
Cheers. eX