tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <>
Subject Re: Multi-homing/Virtual named hosts
Date Sat, 01 Apr 2000 17:15:56 GMT
Glenn Nielsen wrote:
> Costin Manolache wrote:
> >
> > There are 3 steps for implementing virtual hosts:
> > - change the configuration ( server.xml ) and find an intuitive way to specify
> > the
> > virtual hosts ( maybe similar with other servers).
> >
> > - add a property to Context ( host for example ) and make sure we set it at
> > startup.
> >
> We use virtual hosts with apache extensively.  We find the apache config SetEnv
> very handy for setting per virtual host environment variables that are then
> visible to CGI scripts.  Of course, these apache environment variables don't
> get passed on to a servlet container.  It would be very nice if per virtual
> host properties could be set in a properties file which were then available
> from the virtual host context.
> This could be something added to the Servlet/JSP spec. In addition to the
> Page, Request, Session, and Application scopes, there could be a Host scope.
> The problem of virtual host name space conflicts extends to things like
> jsp:useBean id's.  Or the application scope should only be valid on a per
> virtual host basis.

I've suggested before (but probably only privately) that it should be
possible to specify on a per-location basis which environment variables
are pushed across to the servlet. This would fix this and many other
problems without killing performance.




View raw message