473,414 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

subdomain redirecting to domain

110 100+
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

Expand|Select|Wrap|Line Numbers
  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>
  17.  
  18.  
Jul 8 '08 #1
0 2041

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Leif Wessman | last post by:
I need help creating a regular expression to find the subdomain in the $HTTP_HOST variable. The domain is always in this form: www.domain.com or uk.domain.com or domain.com
3
by: Bobby Ray | last post by:
Hi PHP People, When using mail() with a TO address that includes a subdomain, as in foo@sub.domain.com, the intended recipient never receives the mail. I'm not sure if this is a problem with...
1
by: perspolis | last post by:
Hi If I want to create subdomain for my site dynamicaly how can I do that with ASP.NET? or is it possib;e to create subdomain with IIS?? thanks
3
by: Benny Dein | last post by:
Hi I'm trying to run a simpel asp.net 2.0 web appl. on a hosted webserver. The only place where my app can run is in the root directory on my domain. It can't run in either a subdomain or a...
2
by: flip79 | last post by:
Hello and sorry for my english, I'm italian... I manage a site with a normal address like: www.mysite.com I'm using a cookie to store nicks of my users, with a code like this: ----...
0
by: anj.smart | last post by:
Hi:-I have my own webspace www.domain.com. When any new user register on to my site, a new url name www.subdomain.domain.com or www.domain.subdomain.com should be provided to it. I want to provide...
4
by: jank | last post by:
hi all, I want to set a subdomain(abc.domain.net) to same ip(www.domain.net), So i edited this file C:\abc\jakarta-tomcat-5.5.7\conf\server.xml <Host name="localhost" appBase="webapps" ...
12
by: Tina | last post by:
Our company domain, say, wombat.com needs to create several subdomains: support, training, and purchase are three of the subdomains needed. So when someone browses to //training.wombat.com they...
0
by: devilsjunk | last post by:
Hello Everybody, In my web application I have created an interface where, if any user register then a subdomain will be created with the user name of the user link this manner E.G. :-...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.