PDA

View Full Version : Creating (and understanding!) subdomains which work


synsav
8-13-06, 11:23 PM
I've been migrated and everything seems to work. However, I can't seem to create subdomains which work. I've searched the forums and read up on them, but no answer to my issues. I'm using the Subdomain mapping tool.

It appears there are two types of subdomains:
Type 1: sub1.domain.com points to /htdocs/sub1/index.html, and
Type 2: sub2.domain.com points to sub2/htdocs/index.html (where sub2 is in the root)
To me, these are two different animals, but both are called subdomains. Is this correct?

If I create Type 1 subdomains pointing to long-time-existing directories, everything works as expected.
However, if I create directory sub1 and within it index.html (and they do get created, as they show up when looking at them via FTP), then create sub1.domain.com, it does not create the subdomain. More precisely, it creates it but says, "has no index file" and does not work as intended.

I can not creat Type 2 subdomains. If I create sub2 directory in the root , then within sub2 create htdocs and within that index.html, it fails to create the subdirectory and says sub2/htdocs/index.html does not exist.

Needless to say, I'm puzzled/confused by all this. I'd really appreciate enlightenment on the two types, and whether or not the mapping program does or does not work.

Especially confusing is the fact that I can create a Type 1 subdomain which points to old files but not to new ones.

Thanks for any help you can provide!
Cheers,
Keith

crcheek
8-14-06, 10:36 PM
Same here.

Created folders: htdocs/jcharlescheek
Then used the "map to subdomain" tool to add jcharlescheek to doulos-usa.com and got this message "jcharlescheek.doulos-usa.com created
"
uploaded index.html
when called with brower with http://jcharlescheek.doulos-usa.com I get "Directory has no index file"
when called with http://jcharlescheek.doulos-usa.com/index.html I get "Page not found"



So I created a folder: htdocs/jcharlescheek/htdocs and upload all files to there

When called with http://jcharlescheek.doulos-usa.com/htdocs/index.html I get "Page not found."



EDIT: I RE-UPLOADED MY FILES TO THE SUBDIRECTORY AND IT IS WORKING

synsav
8-14-06, 11:15 PM
That's two of us with exactly the same problem. Here's another one, posted in the DNS section: http://forum.powweb.com/showthread.php?t=68840

Surely someone can enlighten us!

Keith

cc1030
8-14-06, 11:38 PM
I just tried it on my site, and the subdomain mapping tool is not working. If you point the subdomain to "/htdocs/sub1", then it should read the files from that directory. If you want to place the files outside of your /htdocs directory, then you need to do something like "/sub2/htdocs" (because for some reason it needs to see "htdocs" somewhere in the path).

At any rate, it's not working, so you'll have to contact support.

k30248
8-15-06, 06:52 PM
type 2 seems to work fine for me.

I have "/sub/htdocs/index.htm" and then under the Subdomain Mapping I have the "Points To Subdirectory" set to "/sub/htdocs". The ones created pre-migration should be already set to "/sub" and those dont need the htdocs included into the path for some reason.

NeilFawcett
8-16-06, 09:35 AM
Can I point out I successfully got a subdomain working last night with "forum.mydomain.com", pointing to "htdocs/vbb/" (your type 1 exampe).

Works a treat! Very happy with how easy it was!