Re: VirtualHost and ServerAlias
Vincent Veyron <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <[email protected]> |
Le lundi 28 novembre 2011 à 20:37 +0100, André Warnier a écrit : > > > > That way, the policy holder can type > > 'http://extranet.insurance_company.com/clients/login' and have access to > > the data, transparently hitting my server at as-pro.biz. > > Not really. I think you need to read up more on how VirtualHosts work. > I certainly have a lot more to learn on that side, but do you care to expand on what is wrong? it works as expected on my side, and my client tested it. See : http://extranet.france-prevoyance.fr/clients/login and : http://as-pro.biz/clients/login > To get the hostname which the client used to reach the server, use this : > > $r->hostname Ha! I missed this and went the complicated route via $r->server(); This gives me all I need to serve the proper logo. Thank you very much. -- Vincent Veyron http://marica.fr/ Logiciel de gestion des sinistres et des contentieux pour le service juridique