Forum Moderators: phranque

Message Too Old, No Replies

Problem with sub-subdomains (using Apache 2 and DynDns.org)

         

Andr50

6:45 pm on Jan 11, 2006 (gmt 0)



Ok, I really can't seem to figure this out.

I have enabled wildcards on DynDns, and set it all up in apache, however, no matter what I type as a sub-subdomain, it always returns the main page.

This is how I have my httpd.conf setup:

NameVirtualHost *:80

#Main Host
<VirtualHost *:80>
DocumentRoot "K:/WebRoot/"
ServerName "myhost.example.org"
</VirtualHost>

#Secondary Host
<VirtualHost *:80>
DocumentRoot "K:/WebRoot/subdomain/"
ServerName "subdomain.myhost.example.org"
</VirtualHost>

Any clues?

[edited by: jdMorgan at 7:48 pm (utc) on Jan. 11, 2006]
[edit reason] Obscured domain per TOS. [/edit]

kalamata

2:12 am on Feb 5, 2006 (gmt 0)

10+ Year Member



same problem here,
please tell me if you find an answer

kalamata

10:25 am on Feb 5, 2006 (gmt 0)

10+ Year Member



ok i found the answer, thanks to:
[webmasterworld.com...]

To add subdomain.localhost to your apache httpd.conf you need to take the following steps:

1) set httpd.conf with:

<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot C:\server\apache\htdocs\site
DirectoryIndex index.php index.html index.html index.htm index.shtml
</VirtualHost>

<VirtualHost 127.0.0.2>
ServerName subdomain.localhost
DocumentRoot C:\server\apache\htdocs\site\subdomain
DirectoryIndex index.php index.html index.html index.htm index.shtml
</VirtualHost>

save and exit

2) edit C:\windows\system32\drivers\etc\hosts (using a text editor) and add the line
127.0.0.2 subdomain subdomain.localhost
after the 127.0.0.1 line. Save and exit.

restart apache. Go to subdomain.localhost and find the correct content there.

kalamata

4:33 pm on Feb 5, 2006 (gmt 0)

10+ Year Member



i thought it was an answer but unfortunately it isn't
i tried to access my new subsubdomain through several proxies and there is "HTTP 500 - Internal server error"
HELP!

jdMorgan

5:17 pm on Feb 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you running on Windows XP?

If so, see Windows knowledge base article, "Programs that connect to IP addresses in the loopback address range may not work as expected [microsoft.com]."

Jim

kalamata

10:32 am on Feb 7, 2006 (gmt 0)

10+ Year Member



i am running windows server 2003 r2 enterprise corporate

my problem is different than that described in that error in winxp sp2

i can connect to 127.0.0.2 and can use my subdomain.dyndns.org
the problem is that others can't!