Solved

Subdomains?

Posted on 2002-05-07
4
285 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
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 a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

825 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