Jump to content

Display PageNotFound Page


mummana

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?)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.