?
Solved

Subdomains?

Posted on 2002-05-07
4
Medium Priority
?
291 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 1200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

839 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