vv.lists at wanadoo
Nov 28, 2011, 10:29 AM
VirtualHost and ServerAlias
I host a web service for my customers (ex : insurance_company.com) on a
virtual host (*); my customers in turn want their customers (the
policyholders) to have access to the data, while using their internet
name instead of mine.
This works fine with the ServerAlias directive inside the VirtualHost
ServerAlias extranet.insurance_company.com as-pro.biz
and the appropriate DNS settings.
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.
My problem is the following : I have a handfulf of potential clients (3
now, 6 at most), who all want the login form to the service customized
with their logo. I cannot however know which logo to select before the
user fills in the form.
The names API :
was apparently a solution for me, but it is not implemented in 2.0, and
I am not able to code it.
Is there another way for me to pass to my PerlResponseHandler which
ServerAlias was used?
(* : the service processes insurance claims for sick leaves; if you care
to see what it looks like :
Logiciel de gestion des sinistres et des contentieux pour le service juridique