Forum Moderators: phranque

Message Too Old, No Replies

Redirect folder request to subdomain on dyndns domain

Redirect folder request to subdomain on dyndns domain

         

skope

11:11 am on Jan 22, 2008 (gmt 0)

10+ Year Member



I seem to be drawing a blank on this one?

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?

jdMorgan

2:37 pm on Jan 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can't think of anything really useful to say here, since we don't know what your specific problem is. Are you getting DNS timeouts, failure to resolve to the proper host, internal server errors?

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

skope

10:19 am on Jan 23, 2008 (gmt 0)

10+ Year Member



Thanks for your quick reply... The DNS has been configured as it is for over a week so I know that it has propogated.

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...