mod_rewrite and mod_jk with apache front-end to tomcat

This is a discussion on mod_rewrite and mod_jk with apache front-end to tomcat within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I should start by asking forgiveness for my lack of complete understanding of apache and tomcat--I'm pretty ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-08-2005
Mark
 
Posts: n/a
Default mod_rewrite and mod_jk with apache front-end to tomcat

Hi,

I should start by asking forgiveness for my lack of complete understanding
of apache and tomcat--I'm pretty new to this. If you need clarification
(and you probably will) please ask. I'm posting here because I really need
to get this working quickly, and I'm hoping someone out there is familiar
with this type of setup. I need to set up apache to act as a front-end to
tomcat. The reason for this is I have to eliminate :8080 from the URL
provided by tomcat. In other words, I need my URLs to go from this:
http://machine.domain.com:8080/more/stuff/stuff.html
to this:
http://machine.domain.com/more/stuff/stuff.html

I've got the jk connector working to a certain degree, but navigating away
from the first tab once again gives me 8080 in the URL. I'm guessing at
this point I've moved away from the apache server. Not sure. Perhaps
there's something in the Jk setup that would help me. It seems like what I
need to do is have apache rewrite tomcat's URLs, and I'm starting to move in
that direction, but so far my experiments have been unsuccessful.

Any help/direction would be very much appreciated. Thanks.

Mark



  #2 (permalink)  
Old 03-08-2005
Mark
 
Posts: n/a
Default Re: mod_rewrite and mod_jk with apache front-end to tomcat

Unfortunately I am not at liberty to change the port on which tomcat runs.


"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnd2rso3.15e.davideyeahsure@fogg.onlyforfun .net...
> On 2005-03-08, Mark <markn@nothing.com> wrote:
>> tomcat. The reason for this is I have to eliminate :8080 from the URL

>
> The easy way is to have Tomcat listening to port 80, that is done
> by modifying the server.xml configuration file of tomcat.
>
> But, if you want Apache to serve static (.html and .jpg) content while
> Tomcat take care of the dynamic (.jsp) content, then you need both.
>
>> I've got the jk connector working to a certain degree, but navigating
>> away
>> from the first tab once again gives me 8080 in the URL.

>
> Probably because you have the :8080 built-in in the URL that you
> are presenting to the user. You need to adapt your application to avoid
> using the :8080 at all.
>
>> need to do is have apache rewrite tomcat's URLs

>
> No, since when you get the :8080 is too late.
>
> Davide
>
> --
> NT 5.0 so vaporous it's in danger of being added to the
> periodic table as a noble gas.
> -- From Slashdot.org



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:37 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0