Current position:  Home > Default > Using mod_rewrite with mod_jk2

Using mod_rewrite with mod_jk2

Time:December 10
Advertisement
Hi, recently i posted a query about how to manipulate url in tomcat. I'd found out that Apache server do have this mod_rewrite that allow URL to be manipulated before the server starts to look for the destination pages. But since my apps are running in Tomcat (it's servlets), is it possible that i use the mod_rewrite to change my URL that point to the web-apps in Tomcat? The scenario is:
1) i have a servlet that sits inside Tomcat with /abc as the directory. Thus the URL that i can use to call it with Apache linked to Tomcat is:
http://111.111.111.111/abc/myServlet
2) Becoz of some external constraint i need to use a URL with the below format to call that servlet:
http://111.111.111.111/234/aaa/bbb/ggg/hhh/abc/myServlet
So is it possible for me perform this task???
Thanks in advance.
Advertisement
hi
i am facing same kind of problem i using servlet with tomcat.using path
http://192.168.0.112:8081/servlet/DispatcherServlet.can hide this path from address bar.

How Can I get mod_rewrite to run on 10.6.4?

2015-10-11

Hi there, I've carried over a local wordpress install for some debug/dev purposes on to my local comp and encountered a few issues in getting permalink/mod_rewrite functions to run cleanly. I've noticed there's a number of posts in this forum about t

Problem With httpd.conf and mod_rewrite rules Apache 2.2

2015-10-11

I have some RewriteRules that are working on my Leopard Client Apache 2.2 machine - but when I try to implement them on Leopard Server Apache 2.2, they don't work. I don't get any errors, they just won't execute. Could somebody with Leopard Server he

Mod_jk in combination with mod_rewrite

2015-10-11

My question is wtf doesn't this work? I'm using apache 1.3.27 and jboss-3.0.4_tomcat-4.1.12 mod_jk works fine. I tried adding in mod_rewrite and now when I go to a page that gets rewritten, the mod_jk doesn't SEE the new URI. Instead, it still uses t

How can I use mod_rewrite to do a private redirect to a servlet

2015-10-11

I am trying to use the mod_rewrite to send any request from http://www.myhost.com/thispath/here/servletname?parms... to http://www.myhost.com/servlets/myservlets/servletname?parms... without changing the URL that the end-user sees... using the follow

Apache + mod_rewrite

2015-10-11

i've got a problem with mod_rewrite - it doesn't work. (~)$ cat /etc/httpd/conf/httpd.conf| grep mod_rewrite LoadModule rewrite_module modules/mod_rewrite.so (~)$ cat /home/httpd/html/.htaccess Options FollowSymLinks RewriteEngine On RewriteRule ^ind

Rewrite rules: mod_rewrite vs. SJWS 7

2015-10-11

Hi, I migrate some application which uses mod_rewrite. And I have a serious problems with write correct rules in obj.conf. I need to implement two task (below): 1. some like below RewriteRule ^/$ http://test1.domain.com/index.dhtml [R=301,L] RewriteR

Apache 2, Tomcat 5, mod_jk2 configuration problem

2015-10-11

I am setting up a Web Server on a RedHat Enterprise Linux box. I installed the RedHat Application Server that installs Apache 2, Tomcat 5 and Mod_JK2. I can't get the mod_jk2 configured properly. I've searched the internet and haven't found any docum

Apache mod_rewrite with virtual sites

2015-10-11

Hello, I have a number of development websites located in /Users/myusername/Sites/* that I can browse to easily as http://myhostname/~myusername/siteOneName etc. Works fine. Some of the sites are images of production Joomla sites I maintain, and they

Apache mod_rewrite and mod_wl together

2015-10-11

Hi everybody, I'm having a problem with apache (1.3.27 on linux) mod_rewrite and mod_wl. The httpd.conf looks like this: RewriteEngine on RewriteCond %{QUERY_STRING} Id=100 RewriteRule ^/dynamic/tops$ /static/100.html [P] <Location /dynamic> SetHand

Problem with mod_rewrite

2015-10-11

I have been trying to work on mod_rewrite for our site. I did get some VERY good help on the mod_rewrite forum but now I am hitting a wall trying to use the [P,L] condition on my Xserve. ( [L] alone works) Here is my issue from the other forum: http:

[Apache] Problem with Mod_rewrite

2015-10-11

Hi, when I try to use mod_rewrite on my localhost, it won't run. Simple rules like ^index.html$ index.php [L] return me a 404-Error. I read somewhere in the forums about "AllowOverride" and set it to all, but i didn't improve anything. Does some

Error log: mod_rewrite & mod_jk: could not init JK log lock in child

2015-10-11

I am getting a lot of the below errors repeatably in my error_log. Can anyone help me to identify why, how I can identify what's causing them, and how to resolve them, please. [Fri Sep 26 10:03:33 2008] [crit] (2)No such file or directory: mod_rewrit

Where is the mod_jk2.dll?

2015-10-11

hello I'm trying to install jk2 connector. My problem is that in the .zip distribution on Jakarta site, I can't find the mod_jk2.dll that must be given to httpd.conf in Apache. Instead of it, I find a mod_jk2.so, which is the Unix/Linux equivalent. I

How to install Apache module mod_rewrite

2015-12-07

Kindly tell me, how to install Apache module mod_rewrite which is a standard module in the Oracle HTTP Server (OHS).. I have installed OAS(10.1.2) but mod_rewrite module is missing.. Edited by: SrinivasanSeniorDBA on 26 Feb, 2010 2:42 PMGot itRead ot

Mod_rewrite for Tomcat 5?

2015-12-08

Hi all I'm learning JSP right now; till now I worked with PHP, and with my used WAMP (XAMPP) I had the possibility to use the Apache mod mod_rewrite to rewrite URL's. Can I use this module also for Tomcat? I tested it with a .htaccess file in a folde

Mod_rewrite not working in user folders?

2015-12-10

Hi everybody, I experience a odd problem and maybe somebody can help. I use a 10.5.8 OS X Server running Apache with PHP 5.3.0.3 entropy update and all works fine. Today I tried to create .htaccess file to redirect some http requests, also known as u

[Apache 2] Critical error mod_rewrite: Could not set permissions on rewrite

2015-12-10

Hi, Well I had a look around to this problem and it seems it is specific to mac os system on intel machines, so I send my post here. I had installed the apache 2 server from www.serverlogistics.com and it seems to start. However it is impossible to l

Mod_rewrite RewriteRule's not working...

2015-12-10

i'm trying to utilize mod_rewrite on my OS X 10.4.8 server but even the simplest rule isn't being executed. not sure how to read my rewrite .log but it looks like all my rules / "pattern" are being applied to '/server-status' ? i've tried to wri

Problem with apache2 + mod_jk2

-0001-11-30

OS: SuSe 9.1 apache: apache2-2.0.49-27.18.3 OAS: Oracle9iAS Containers for J2EE Version 9.0.3.0.0 i compiled myself mod_jk2 i tried all version When i enter JSP page in browser if page size is very small - everything is OK if page size a little bigge