Re: DNS et alias...
Le 12234ième jour après Epoch,
Jacques Foury écrivait:
> Benoit Lathiere wrote:
>
>> Bjour,
>>
>> j'ai un site titi.toto.com
>> je voudrais avoir le (même) site www.titi.toto.com
>>
>> est-ce possible pour Bind et Apache d'avoir un alias avec un point ?
>>
>> merci,
>>
>> Benoit.
>>
>>
> tout à fait oui.
Ben avec ça, il doit être vachement avancé le mec :(
Dans bind, tu peux mettre une ligne du genre:
* IN A xx.yy.zz.tt
et dans apache, tu rajoutes:
# ========================
# default server (IP)
# ========================
<VirtualHost xx.yy.zz.tt:80>
SSLDisable
Port 80
ServerAdmin my@email.org
DocumentRoot /home/httpd/html/noname
ServerName *
</VirtualHost>
# ========================
# mysubdomain.mydomain.org
# ========================
<VirtualHost xx.yy.zz.tt:80>
SSLDisable
Port 80
ServerAdmin my@email.org
DocumentRoot /home/httpd/html/tititoto
ServerName mysubdomain.mydomain.org
ServerAlias mysubdomain.mydomain.org *.mysubdomain.mydomain.org
</VirtualHost>
A la place de * dans httpd.conf tu peux mettre une liste exhaustive des noms qui vont bien.
--
Anyone who considers protocol unimportant has never dealt with a cat.
-- R. Heinlein
--
François TOURDE - tourde.org - 23 rue Bernard GANTE - 93250 VILLEMOMBLE
Tél: 01 49 35 96 69 - Mob: 06 81 01 81 80
eMail: mailto:francois@tourde.org - URL: http://francois.tourde.org/
Reply to: