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
Subdomain Match?
-
darkunicorn
- Posts: 20
- Joined: 2002-06-20 10:37
Re: Subdomain Match?
Ja schon fast richtig.
So gehts ;)
Code: Select all
<VirtualHost 123.456.789.0>
DocumentRoot /usr/local/htdocs/domain.tld/sub
ServerName domain.tld
ServerAlias *.domain.tld
</VirtualHost>
Re: Subdomain Match?
Ja, das geht. Mit dem Alias.
[TOM]
Code: Select all
ServerAlias *.domain.de