Re: Server side functionality - based upon the URL (Domain/Virtual Host)

Andreas Hartmann <[email protected]>
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
Hi Anish,

Am 17.02.10 10:36, schrieb Anish Sneh:
> I need to apply a server side functionality which will be based upon the
> URL (Domain/Virtual Host) for which the request is coming. e.g. if the
> request is coming for www.abc.com server should treat it differently,
> else if it is coming for www.xyz.com or www.abc.ca it should be treated
> differently.
>
> I wanted to achieve this using XSLT (if possible), please suggest how
> can I achieve this.

maybe this helps:

http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/RequestModule.html

If you're using a proxy, this might be more complicated since you 
probably have to evaluate the x-forwarded-for header (it contains the 
remote IP address, though, not the domain name).

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.