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.
<VirtualHost 81.82.83.84:80>
ServerName sub.mydomain.com
ServerAlias sub.mydomain.com
ProxyPass / http://192.168.0.1:80
ProxyPassReverse / http://192.168.0.1:80
<Proxy *>
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