i have a similar configuration in terms of domains and apache. however, i have never been able to get virtual hosts working correctly.
my network setup is as follows: my domain name is endrium.com, which uses the DNS servers of mydomain.com to point to my IP. however, my cable company blocks port 80, which means that www.endrium.com
is forwarded to web.endrium.com:81 from mydomain.com. this is necessary since all requests to port 80 are blocked.
i'm running a firewall with IP MASQ and iptables which forwards all port 81 requests to the machine which apache is residing on. my virtual hosts appear as follows:
CustomLog logs/access_log custom
CustomLog logs/internal/access_log custom
the weird thing is that the second virtual host works perfectly (as it keeps separate log files for my internal clients. but if i change the first VH to some non-existant docroot, nothing happens and everything goes to the default docroot.
does anyone have any suggestions at all? i've been pulling my hair out over this for some time now and am still unable to find a solution. :-(