Apache Wildcard Domains

Notizen zum konfigurieren von Wildcard Domains in Apache.

Apache liest die files sequentiell ein, d.h. die Wildcard darf erst nach allen subdomains kommen (auch wenn sie in anderen files definiert werden) sprich in der allerletzten anweisung.


Im entsprechenden zone file folgende Zeile hinzufügen:

*.domain.tld.             IN      A               62.12.149.113

im entsprechenden apache virtualhost file folgende zeile nach “ServerName www.domain.tld” hinzufügen:

ServerAlias *.domain.tld

Reference doc: http://www.debian-administration.org/articles/358

Michel Racic avatar
About Michel Racic
I’m a coding and technology freak. I finished once my bachelor of engineering in computer science or on german “Dipl. Ing.” and currently I’m mostly coding in Java as main language besides some stuff in C, C++, C#, HTML, JS, … - In my day job I work as a Software Engineer in Test and deal with all kind of Software from Native over Web into Mainframe where I use existing tools or write my own testing apps or libraries and the Frameworks around that they can be used in the most efficient way.
comments powered by Disqus