logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: URL Redircting
Author
vivek4075



Joined: 25 Jan 2010
Posts: 2

PostPosted: Mon 25 Jan '10 12:34    Post subject: URL Redircting Reply with quote

hi i am new to this Apache user list. I have a query. i am using Apache 2.2 bridge with Tomcat6.0.18 its working fine. But if i call some url which contain action like .faces .do .object then getting 404 error. after that i added same like for jsp
JkMount /*.faces
JkMount /*.do
JkMount /*.object
now i am getting soothing right.
1) Is it ok to aad these kind of mod in httpd.conf file.
2) and if some fake folder url which is comming from web.xml i mean to say that folder hirarchy does not exist in the Directory
like http://localhost:81/MyApp/admin/ure/ure/js/admin/basic.js is url with fake name of ure actual URL shoulfd be like
like http://localhost:81/MyApp/admin/basic.js

how to handle these kind of situation?

help me
Thanks in advance

vivekjoy
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Tue 26 Jan '10 0:04    Post subject: Reply with quote

Well you could use mod_proxy_ajp or just a simple reverse proxy

e.g.

<Location /tomcat-docs/>
ProxyPass ajp://localhost:8009/tomcat-docs/
ProxyPassReverse ajp://localhost:8009/tomcat-docs/
</Location>

or

ProxyPass /manager/status/ http://localhost:8009/manager/status/
ProxyPassReverse /manager/status/ http://localhost:8009/manager/status/
Back to top
vivek4075



Joined: 25 Jan 2010
Posts: 2

PostPosted: Wed 27 Jan '10 11:26    Post subject: URL Redircting Reply with quote

Thanks for your reply.
i am going to explain you
i am using mod_jk module which have some limitations.i have deployed static content on apache2.2 and dynamic content on tomcat6. i can call index.html page but that index.html is trying to redirect on login.faces, that part should be handled by tomcat but it is not happing. after that i added JkMount /*.faces in httpd.conf file now it is redirecting (please provide me some solution if it is wrong ).
and some .js file which is deployed on apache after lanching the web application in between url is searching .js file inside ...../ure/ure/folder/*.js
"ure/ure" this part of url is not physically map in web server because this part of url is comming from web.xml of web application.

<mapping>
<url-pattern>/ure/ure/*</url-pattern>
</mapping>

so here i am getting 404 error
what should i do for this give me some tips.


Thanks in advance

VivekJoy
[/b]
Back to top


Reply to topic   Topic: URL Redircting View previous topic :: View next topic
Post new topic   Forum Index -> Apache