Solved

Subdomains?

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

12 Experts available now in Live!

Get 1:1 Help Now