Register

Closed Thread

Junior Member

Join Date: Sep 2006
Posts: 14
 
06-07-2007, 06:56 AM
Default Subdomain customization

I created a subdomain called watches, that should be watches.mydomain.com. It has a path of /public_html/watches

When I type that in the brower bar, the address stays correct, but the html that is retrieved is from mydomain.com, not the folder for the subdomain.

Any ideas what would cause it to not be directed to the proper folder?
packfan77 is offline
Member

Join Date: Oct 2006
Posts: 90
 
06-07-2007, 10:48 AM
Default

There are a number of things it could be, but you might want to check to make sure that there is a NameVirtualHost directive in the apache config file for the IP address. I've seen accounts where the absence of such a directive causes problems like this.
Andrew@Spry is offline
Junior Member

Join Date: Sep 2006
Posts: 14
 
06-07-2007, 11:11 AM
Default Fixed

In this case, there was a NamedVirtualHost directive. But looking for that caused me to look at the VirtualHost entry for mydomain.com a little closer. Turned out that one of the Server Aliases listed for that domain was *.mydomain.com. That entry apparently took presidence over the submain virtual host directive. I removed the wildcard alias, and it now works fine.

Thanks.
packfan77 is offline
Junior Member

Join Date: Dec 2009
Posts: 3
 
08-07-2010, 01:46 PM
Default

Having a wildcard subdomain along with hard-coded subdomains is not an issue, just make sure the virtualhost wildcard entry is below all other virtualhosts entries. Apache parses top-down.
joshlfisher is offline
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 07:06 PM. Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 VBulletin Skin by ForumMonkeys.