Virtual hosts and port forwarding
I've set up an apache2 server on a debian machine (let's call it webmachine).
I've got another debian, running as a router/firewall (let's call it fwmachine).
I've defined 2 virtual hosts on my httpd config : test1.webmachine and test2.webmachine.
I configured wildcards dns with bind9 on fwmachine, so that *.webmachine points to webmachine.
OK, this works fine.
Then I changed the httpd config so that the virtual hosts are defined with my dyndns domainname : test1.mydomain.dyndns.org and test2.mydomain.dyndns.org.
I redirected port 80 to webmachine.
I enabled wildcard dns on dyndns.org, so that anything.mydomain.dyndns.org is resolved with my public IP.
So, I thought it would work as well as on my lan... anyway it doesn't : whatever the name (test1.mydomain.dyndns.org, foo.mydomain.dyndns.org...) I use to access my website it's the webpage of test2.mydomain.dyndns.org which opens on the webbrowser.
Does anyone have an idea... I just don't see what difference it makes between the 2 cases I described, so every new test I try is more silly than the former...