Forum Moderators: phranque

Message Too Old, No Replies

Apache subdomain error

DNS directed subdomains wont function through apache primary site shown

         

awbadmin

5:20 pm on Oct 27, 2006 (gmt 0)

10+ Year Member



Can anyone tell me why my subdomains are not working in Apache? I have the DNS pointed to the ip, from there subdomains are in virtual server layout in http config, but no matter which subdomain name i enter, they all go to the primary domain.

Any suggestions

jdMorgan

11:01 pm on Oct 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try putting your VirtualHost containers in most-specific to least-specific order, that is, subdomains first.

The server will serve content from the first VirtualHost that matches the request, and this can lead to problems if the VirtualHost containers are not ordered properly.

Jim