tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "freeserve" <jer...@archaeopteryx.freeserve.co.uk>
Subject Re: Apache EAPI / mod_jserv support?
Date Thu, 22 Jun 2000 17:12:28 GMT
Hi Jan,

Many thanks for your reply. I did eventually manage to compile mod_jserv on
another machine, and then copy it over. It seems to work fine. Many thanks
for the info though.

However, now I have an Apache/Tomcat glitch. It appears that when calling
request.getServerName() Tomcat is now returning the server name as specified
in httpd.conf rather than the one that the web browser actually calls. This
is messing up my code, which needs to know the domain that the user / web
browser asked for rather than one that is fixed by the server.

If anyone can help with this that would be much appreciated,

Regards,

Jeremy.


----- Original Message -----
From: "Jan Grant" <Jan.Grant@bristol.ac.uk>
To: "tomcat-user" <tomcat-user@jakarta.apache.org>
Sent: Thursday, June 22, 2000 4:06 PM
Subject: Re: Apache EAPI / mod_jserv support?


> On Thu, 22 Jun 2000, freeserve wrote:
>
> > Or is there a way to compile mod_jserv without apxs?
>
> Yes, this is what I've done. it was a bit hacky, but basically:
> (from memory and examining the entrails of my apache build directory)
>
> - untar the jserv stuff (from the tomcat distribution) into
> apache/src/modules/jserv.
>
> - config apache with "--activate-module=src/modules/jserv/libjserv.a"
>
> - run make (this'll fail; the makefile supplied doesn't know how to
> build libjserv.a)
>
> - cd into the apache/src/modules/jserv directory and run gcc directly on
> every .c file:
>         gcc -c  -I../../os/unix -I../../include  \
>                  -funsigned-char -DUSE_EXPAT     \
>                  -I../../lib/expat-lite -DNO_DL_NEEDED \
>                 `../../apaci` *.c
>
> ..should do it.
>
> Then (I think, check the man page for ar for this)
>         ar rc libjserv.a *.o
>         ranlib libjserv.a
>
> cd back up and rerun the top-level make; everything should go from that
> point.
>
> It's ugly, but mod_jserv's makefile isn't set up to handle static
> compilation; this method is hacky but works.
>
> Drop me a line if you have any problems with this, I'll build apache
> again from source and give you a complete list of instructions.
>
> jan
>
> --
> jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
> Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk
> Ceci n'est pas une pipe |
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
>


Mime
View raw message