Ich versuche, auf einem Server Suport für eine Domain und eine Subdomain einzurichten. Aktuell sieht es so aus: rufe ich die Subdomain auf, wird auf die Root Domain umgeleitet. Hier meine Konfig:
"(^|\.)example\.com$" trifft auch auf crm.example.com zu - entweder Du tauschst die beiden Hosts (Lighty nimmt normalerweise immer den ersten, wo der Match passt), oder Du spezifizierst den Hostnamen für den Catchall etwas genauer.
“Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying 'End-of-the-World Switch. PLEASE DO NOT TOUCH', the paint wouldn't even have time to dry.” — Terry Pratchett, Thief of Time
Tauschen hatte ich bereits versucht, das geht nicht. Ein Tipp, wie das am sinnvollsten spezifiziere, so dass alle Variaten wie "www.example.com", "example.com" etc erfast werden?
$HTTP["host"] =~ "(^|\.)example\.com$" {
$HTTP["host"] =~ "(^|\.)crm\.example.com$" {
# hier die CRM-Konfig
}
$HTTP["host"] !~ "(^|\.)crm\.example.com$" {
# hier der normale virtuelle Host
}
}
Last edited by daemotron on 2010-10-03 13:48, edited 1 time in total.
“Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying 'End-of-the-World Switch. PLEASE DO NOT TOUCH', the paint wouldn't even have time to dry.” — Terry Pratchett, Thief of Time