Solved

Subdomains?

Posted on 2002-05-07
4
284 Views
Last Modified: 2010-03-04
Hi,

I got stuck with my Apache configuration....
Along with my ISP subscription I also got the option to change my hostname.... so I changed it to "mystgamedev", which left me with the following address to my server:
mystgamedev.xs4all.nl

That's all worked fine and all for years now.. but now I want to have subdomains to that.... things like "paul.mystgamedev.xs4all.nl", or "www.mystgamedev.xs4all.nl" (which is what people type in pretty often to get to my site... which leaves them with Server Not Found)

So I thought I should have a look at this VirtualHost stuff... but I can't get anything to work for me, unfortunately :(
Is it at all possible for me to create subdomains (at least, in this manner), and if so, could someone please point out to me how, maybe with an example? I looked at several tutorials and the Apache docs, but I still couldn't get it to work.

Thanks in advance,


Paul
0
Comment
Question by:mgdPaul
  • 3
4 Comments
 
LVL 15

Accepted Solution

by:
samri earned 300 total points
ID: 6995587
Paul,

Do you enable VIrtualHosting on your apache?  If YES, then the first defined VirtualHost would be the default VirtualHost for any request not matching other VH.

Another thing to look is the DNS.  You need to have an A, or CNAME record for each of the new sites that you would be using.  Assuming that;

mystgamedev.xs4all.nl   IN   A 1.2.3.4

You need to add (or have your ISP to add)
paul.mystgamedev.xs4all.nl. IN CNAME mystgamedev.xs4all.nl.
www.mystgamedev.xs4all.nl.   IN CNAME mystgamedev.xs4all.nl.

In you zone file.

If you are not using VirtualHost, everything should be OK, just make sure that the DNS is configured though.

cheers.
0
 
LVL 15

Expert Comment

by:samri
ID: 7075899
Paul,

did you managed to get your apache configure or are you still struggling... and almost giving up.
0
 

Author Comment

by:mgdPaul
ID: 7862457
Sorry for the incredibly long delay. It's been a long time since I've last been here. I noticed I still had an open question to which someone already gave me an answer. It appears that in order for the whole www.blah business to work for me I should contact my ISP. Same with running a mailserver here, people can't send me mail directly to my mailserver, cause for that to work my ISP needs to add/change/whatever an MX record for me. Too bad :)

Thank you for your answer though.
0
 
LVL 15

Expert Comment

by:samri
ID: 7863419
Pual,

glad to be able to shed some light!

cheers.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now