Jump to content

Recommended Posts

Hi,

 

We are using apache as web server, Jboss as application. Mod_jk is the connector for them.

 

If the webContext name is wrong, how to redirect to 404 page from apache server. Assume that correct page is: http://mysite.com/myapp/login.jsp

 

If any body requested with wrong context name, we need to show page not found page. Example: http://mysite.com/myappA/login.jsp.

 

Please help me regarding.

 

Thanks

Srini

 

Link to comment
https://forums.phpfreaks.com/topic/144023-display-pagenotfound-page/
Share on other sites

It wouldn't make sense for Apache to handle the 404 error since it's essentially acting as a proxy.  It would have to see what content the app server returns, and Apache isn't designed to do that.

 

 

No idea how mod_jk works, but if it works anything like mod_proxy, you might be able to check headers or something and handle it accordingly.  I wouldn't be surprised if it's not possible though.

 

 

 

(It is a proxy-like situation, right?  Or am I misunderstanding?)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.