"Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message
news:2jlopiF121583U4@uni-berlin.de...
> Alexander Schmidt <nospam.RemoveThis@web.de> wrote:
> > I have a Debian system with preinstalled bind9 (I think).
> > So interesting files may be located in /etc/bind/*, right ?
>
> I think so. I'm not aware of exactly where debian put the standard
> configuration of Bind, but you should be able to find them pretty
> easily looking at your initialization scripts in /etc/rc.d or /etc/init.d
> or wherever debian put them (surely in /etc/).
>
> > Which ones do I have to touch ?
>
> You'd better read the DNS-HOWTO on <a style='text-decoration: underline;' href="http://www.tldp.org." target="_blank">www.tldp.org.</a> Basically is a matter
> of adding an entry to the db.your.ip.address then changing the
> 'serial' number and waking up named. Do make a copy of the configuration
> files before editing (always have a backup plan!).
>
> > Every time someine enters a URL starting with webmail, so
>
> This is something you handle in Apache using the ServerAlias
> directive in the VHost. This way a single VHost can answer to multiple
> names.
>
> Davide
>
> --
> | Acid -- better living through chemistry.
> |
> |
> |
Funny, you just gave me the solution how to do what I want without changing
DNS things:
# Per default go to /var/www
<VirtualHost ***.***.***.***>
ServerAdmin webmaster.RemoveThis@default.tld
DocumentRoot /var/www/
ServerName default.tld
ErrorLog /var/log/apache/default.tld-error.log
CustomLog /var/log/apache/default.tld-access.log common
</VirtualHost>
# Catch everything starting with webmail.* (do this before everything else)
<VirtualHost ***.***.***.***>
ServerAdmin webmaster.RemoveThis@default.tld
DocumentRoot /var/www/squirrelmail
ServerName webmail.default.tld
ServerAlias webmail.*
ErrorLog /var/log/apache/squirrelmail-error.log
CustomLog /var/log/apache/squirrelmail-access.log common
</VirtualHost>
# Catch everything for mydomain.tld (www.*, xyz.*), except webmail.* (see
above)
<VirtualHost ***.***.***.***>
ServerAdmin webmaster.RemoveThis@mydomain.tld
DocumentRoot /var/www/mydomain.tld
ServerName mydomain.tld
ServerAlias *.mydomain.tld
ErrorLog /var/log/apache/mydomain.tld-error.log
CustomLog /var/log/apache/mydomain.tld-access.log common
</VirtualHost>
Thank you !<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Apache virtual domain isse