Page 1 of 1

Subdomain Match?

Posted: 2003-02-28 14:34
by lucideye
Hallo!

Ich wollte mal fragen, ob es möglich ist, eine Art Virtualhost-Match für alles was vor domain.tld steht einzurichten, so dass ich nicht jede einzelne Subdomain explizit in die httpd.conf eintragen muss.

Also so in der Art:

<VirtualHost 123.456.789.0>
DocumentRoot /usr/local/htdocs/domain.tld/sub
ServerName *.domain.tld
</VirtualHost>


Vielen Dank,

Alex

Re: Subdomain Match?

Posted: 2003-02-28 14:38
by darkunicorn
Ja schon fast richtig.

Code: Select all

<VirtualHost 123.456.789.0>
DocumentRoot /usr/local/htdocs/domain.tld/sub
ServerName domain.tld
ServerAlias *.domain.tld
</VirtualHost>
So gehts ;)

Re: Subdomain Match?

Posted: 2003-02-28 14:40
by [tom]
Ja, das geht. Mit dem Alias.

Code: Select all

ServerAlias *.domain.de
[TOM]

Re: Subdomain Match?

Posted: 2003-02-28 14:45
by lucideye
Stimmt! Supi! Danke! :-D