Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dns-apache question

Status
Not open for further replies.

801119

Programmer
Apr 10, 2000
311
SE
Greetings all,

I have about 3 different dns-adressess, used for various things but all linking directly to my webserver.

The question is, how do I direct a certain dns to a specific path of my server?

I'm using the dyndns.org service, and two I user directly to my webserver ( but the last I would like to go directly to any one know how to do this?

I know it can be done simply with php, but can it be done directly by configuring my apache 2 config file?

My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
greate, chers mate :D now I see it's that simple to use virtual host =D

My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
hmm... jikes, somehow it took over all server activity =/ not my intention.. is there anything aside from servername and documentroot I need to chagne?

My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
Make sure you have these defined and/or uncommented:

UseCanonicalName Off
NameVirtualHost *

This first one should be difined in the main server section. The second one should be just before your vhost section near the bottom. You should also note that if you use vhosts, the main server will no longer be served. All domains must have a vhost container. If apache can't find a domain matching the request, the default becomes the first vhost defined.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top