Catchall für Apache

Apache, Lighttpd, nginx, Cherokee
Post Reply
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Catchall für Apache

Post by theomega »

Hallo Leute,
wie bekomme ich den Apache dazu alle Subdomains die nicht extra angegeben sind auf ein Docroot zu leiten. Ich habe bis jetzt

http://www.domain.de, domain.de auf ein docroot
und
mail.domain.de, http://www.mail.domain.de auf ein anderes domroot

wenn man jetzt
xxxxxx.domain.de versucht zu öffnen kommt man zu meinem Confixx-Ersatz. Ich hätte aber gerne, dass man dann auf beim ersten docroot landet!

Grüße
TO
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Catchall für Apache

Post by Joe User »

ServerAlias *.domain.tld
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: Catchall für Apache

Post by theomega »

so einfach ist das? *G* muß ich mal ausprobieren!
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: Catchall für Apache

Post by theomega »

hm, doch nicht so einach, wenn ich das mache, dann komm ich an mail.domain.de ncihtmehr hin, er catcht wirklich alles, dabei soll er ja die schon vorhandenen auslasen!
duergner
Posts: 923
Joined: 2003-08-20 11:30
Location: Pittsburgh, PA, USA
 

Re: Catchall für Apache

Post by duergner »

Das sollte sich durch die entsprechende Reihenfolge der VirtualHosts im ConfigFile zu machen sein.
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: Catchall für Apache

Post by theomega »

achso, ist die Reihenfolge wichtig? Dann muß ich das mal testen!
mitmacher
Posts: 84
Joined: 2004-04-18 16:23
 

Re: Catchall für Apache

Post by mitmacher »

achso, ist die Reihenfolge wichtig?
würde ich mal so bestätigen, da Confixx auch wohl aus gutem Grund alle Catch-Alls innerhalb der confixx_vhost.conf nach ganz unten packt.
- Erst die Standard-domain, falls gar nix greift,
- dann die "Hauptdomains"
- dann die "Subdomains"
- zuletzt die Catchalls

macht Sinn, wenn man's weiss... ;-)
kahler
Posts: 130
Joined: 2003-04-18 17:42
Location: /root
 

Re: Catchall für Apache

Post by kahler »

Der Apache nimmt den ersten Eintrag, der passt aus der httpd.conf.
Wenn du den Catch-All nach oben schreibst, dann tritt dieser natürlich vor deiner Subdomain ein und alles wird dorthingeleitet.
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: Catchall für Apache

Post by theomega »

hm, kacke, dann muß ich meinen Confixx-Ersatzt ja ganz umschreiben :x
Post Reply