Forum Moderators: phranque
Win2k AS
Apache 2.2
I have full access to all aspects of this configuration.
I have a domain set up on my local server (A Record = domain.root) with sub domains (CNAME = test.domain.root) for development. My httpd-vhosts.conf file has an entry for each sub domain I create pointing sub domain requests to the appropriate folder on my file system (C:\www\test).
Internally, I have no problems... requests to "test.domain.root" resolve to the correct folder. I currently have 15 sub domains set up for testing.
I wanted to use DynDNS to be able to access these sites remotely. Primarily for showing clients before changes go live.
I have an active DynDNS account and it is resolving to the apache docroot. I've enabled the wildcard option so all requests (http://*.mydomain.dnsalias.net) go through to the apache server.
I want to be able to enter "http://test.mydomain.dnsalias.net" and have apache serve content from the \test docroot.
Any ideas?
All I can contribute is two comments: First, it may take some time for new DNS settings to propagate, so wait 24 hours and test again. Second, Unless there is some great convenience factor to using CNAMEs, use A records instead; This speeds up DNS responses, since the hostname's IP address is directly available in an A record and does not require a second-level DNS lookup.
Jim
I checked all the logs and pinged all domains... the server was responding ok... Apache just wasn't resolving the requests to the external domain request.
A few tests later... the problem was my virtual host containers... or lack there of.
I had virtual host containers for the subdomains on the local network but not for the DynDNS subdomains.
I also changed all of my CNAMEs to A records as suggested.
For those out there... here is a sample virtualhost entry. (Anyone - please comment if there's a more suitable way of doing this.)
<VirtualHost *:80>
ServerName test.domain.root
ServerAlias test.domain.root
DocumentRoot "D:/www/test"
</VirtualHost>
<VirtualHost *:80>
ServerName test.mydomain.dnsalias.net
ServerAlias test.mydomain.dnsalias.net
DocumentRoot "D:/www/test"
</VirtualHost>
Thanks again for your assistance...