Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

subdomain redirecting to domain

Question posted by: pedalpete (Member) on July 8th, 2008 05:49 AM
i've gone through lots of forums and responses but can't seem to figure out how to get my subdomain to work.

When I enter my subdomain into my browser, it redirects to my main domain.

My (slightly edited) Apache httpd.conf virtual host section reads

Code: ( text )
  1. <VirtualHost *:80>
  2.     ServerAdmin pete@mysite.com
  3.     DocumentRoot /www
  4.     ServerName site.com
  5. </VirtualHost>
  6. <VirtualHost *:80>
  7.     ServerAdmin pete@mysite.com
  8.     DocumentRoot /www
  9.     ServerName www.mysite.com
  10. </VirtualHost>
  11.  
  12. <VirtualHost *:80>
  13.     ServerAdmin pete@mysite.com
  14.     DocumentRoot /www/iphone
  15.     ServerName iphone.mysite.com
  16. </VirtualHost>
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Reply
Not the answer you were looking for? Post your question . . .
180,784 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top Apache Forum Contributors