Home > Default > Using mod_rewrite with mod_jk2

Using mod_rewrite with mod_jk2

December 10Hits:5
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.

Answers

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.

Read other 3 answers

Tags:

Related Articles

  • Using mod_rewrite with mod_jk2December 10

    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

  • How Can I get mod_rewrite to run on 10.6.4?October 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.2October 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_rewriteOctober 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 servletOctober 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_rewriteOctober 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 7October 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 problemOctober 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 sitesOctober 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 togetherOctober 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

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.422 s.