Apache Server configuration support - Domain name bind files & httpd conf

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2007 > Domain name bind files & httpd conf





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Domain name bind files & httpd conf
Nicopil@mi

2007-01-06, 8:11 pm

Hi, i've a "dual question" :

1°) i've got a domain name on gandi.net : xxxxxx.info
on the "zone management", i would like to get the following redirection :
- any request on www.xxxx.info should be redirected to my personnal free
website on proxad(free) servers, http://tttiii.free.fr (false name ;o) )
- all the others should be redirected to the IP adresse aaa.bbb.ccc.ddd
which is the IPadress of my computer at home.

how to do that ?


2°) about the same problem as the first question, but on the httpd conf of
an apache server :
i've configured some virtual hosts like that :

<VirtualHost *:80>
DocumentRoot D:/www/web/
ServerName web.xxxxxx.info
</VirtualHost>

<VirtualHost *:80>
DocumentRoot D:/www/curl_tests/
ServerName curl.xxxxxx.info
</VirtualHost>

and so on... and i would like all other requests to be redirected on
D:/www/others/

how to do that ?

Thx a lot
bye
Nico


Davide Bianchi

2007-01-06, 8:12 pm

On 2007-01-06, Nicopil@mi <___> wrote:
> how to do that ?


Configure the DNS entries so www.xxx.yyy goes to one IP and the
*.xxx.yyy goes somewhere else.

><VirtualHost *:80>
> DocumentRoot D:/www/web/
> ServerName web.xxxxxx.info
></VirtualHost>


And where is the definition of the Docroot specific? Usually you have
a <Directory /where/is/the/docroot> block that specify all the
parameters.

> and so on... and i would like all other requests to be redirected on
> D:/www/others/
>
> how to do that ?


Create a virtual host that have that docroot and place it at the
first position in your VHost list. That's the one that is used by
default if none of the other vhost matches.

Davide

--
You are in a maze of twisty little protocols, all written by Microsoft.
--picked up from J.Hardin's signature on alt.sysadmin.recovery
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com