default under domain

default under domain

am 13.08.2007 18:16:31 von severin

Hi,

I guess if notexists.mydomain.com reach my apache server??

->
ping exists.mydomain.com works
ping notexists.mydomain.com don't

I want to "catch" every request on xxx.mydomain.com and redirect them to
a specified folder (ex: mydomain/xxx/)


Can anybody help?

thx

Re: default under domain

am 13.08.2007 18:21:55 von unknown

Post removed (X-No-Archive: yes)

Re: default under domain

am 13.08.2007 18:34:30 von severin

Can you be more acurate.

I have a gentoo (debain) with bind server.

My httpd.conf lists all necessary virtualhosts (but i dont think the
solution is in this file)

I found in my webmin->bind:the /var/bind/pri/mydomain.com.hosts file

wich seems to be the solution. but how?:


$ttl 86400
mydomain.com. IN SOA mydomain.com. webmaster.mydomain.com. (
2007081202
21600
3600
604800
86400 )
IN NS ksXXXX.kimsufi.com.
IN NS ns.kimsufi.com.
IN MX 10 mail.mydomain.com.
IN A xxx.xxx.xxx.xxx
www IN A xxx.xxx.xxx.xxx
mail IN A xxx.xxx.xxx.xxx
smtp IN A xxx.xxx.xxx.xxx
pop IN A xxx.xxx.xxx.xxx
pop3 IN A xxx.xxx.xxx.xxx
imap IN A xxx.xxx.xxx.xxx
sql IN A xxx.xxx.xxx.xxx
mysql IN A xxx.xxx.xxx.xxx
s1 IN A xxx.xxx.xxx.xxx
doc IN A xxx.xxx.xxx.xxx
s4 IN A xxx.xxx.xxx.xxx
s5 IN A xxx.xxx.xxx.xxx
s5-light IN A xxx.xxx.xxx.xxx
demo IN A xxx.xxx.xxx.xxx
s9 IN A xxx.xxx.xxx.xxx
s10 IN A xxx.xxx.xxx.xxx
v1 IN A xxx.xxx.xxx.xxx
r1 IN A xxx.xxx.xxx.xxx
creasite IN A xxx.xxx.xxx.xxx
tamere IN A xxx.xxx.xxx.xxx
v2Test IN A xxx.xxx.xxx.xxx
v2TestPerso IN A xxx.xxx.xxx.xxx




Davide Bianchi wrote:
> On 2007-08-13, Séverin Richard wrote:
>
>>I guess if notexists.mydomain.com reach my apache server??
>>
>>->
>> ping exists.mydomain.com works
>> ping notexists.mydomain.com don't
>
>
> This is not a problem in apache but in the DNS, you need a "catch all"
> entry in your DNS to resolve every *.mydomain.com and respond with the
> IP of your server. Your apache will adapt.
>
> Davide
>

Re: default under domain

am 14.08.2007 01:07:55 von David McKenzie

Séverin Richard wrote:
> Can you be more acurate.
>
> I have a gentoo (debain) with bind server.
>
Try comp.protocols.dns.bind

--
DM davidm@cia.com.au

'It would go against respecting principles and truth if you have to
respect and accept anything just because it is the other side's view.'
- Kim Jung Ill