468,512 Members | 1,502 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

Apache Tomcat error - HTTP Status 404

Hi Friends,

I am not familier with WebServer but due to some urgency I want to resolve some issue. Please help me on this.

We are using Apache HTTP Server with Tomcat 7.0.42
Basically Homepage is loading fine with few subpages, But we are getting 404 Errors on remaining pages. However, if I tried with tomcat App URL with Port then everything loading fine without any issue. Please help me how to resolve this issue. I have given the http conf file for your reference.

Seems to be redirection working only for the homepage not subsequent pages.
--------------------------------------------------------------------------------
HTTP Status 404 - /sites/tst/default/en_US/about/news–room

type Status report

message /sites/tst/default/en_US/about/news–room

description The requested resource is not available.

Apache Tomcat/7.0.42
--------------------------------------------------------------------------------


CONF file:
-----------
Expand|Select|Wrap|Line Numbers
  1. <VirtualHost *:80>
  2.     ServerName ot2.tst.edu
  3.  
  4.     ErrorLog logs/live/http_error.log
  5.     #CustomLog logs/live/http_access.log combined
  6.     CustomLog "|/opt/apps/apache/bin/rotatelogs -f  /opt/apps/apache/logs/live/http_access.log.%Y.%m.%d 86400 +60" imi
  7.     RewriteLog logs/live/http_rewrite.log
  8.  
  9.     RewriteEngine on
  10.  
  11.     # Requests from local machines can go through HTTP. Other
  12.     # requests have to go through HTTPS
  13.     RewriteCond %{REMOTE_ADDR} !^101\.151\.191\.21$
  14.  
  15.     # Preview stage docroot
  16.     DocumentRoot /opt/apps/ot
  17.  
  18.     # By default redirect to Portal console.
  19.     RewriteRule ^/+$ /sites/tst/  [R,L]
  20.  <IfModule rewrite_module>
  21.     Options +FollowSymlinks
  22.     RewriteEngine     On
  23.     RewriteOptions Inherit 
  24.     #RewriteLogLevel 9
  25.     RewriteLog logs/rewrite.log
  26.  
  27.  
  28. </IfModule>
  29.  
  30. JkMount   /*        tst_dev_live_svr
  31.  
  32. </VirtualHost>
  33.  
================================================== ==========

Thanks
Jay
Jul 8 '15 #1
0 5137

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by ptaz | last post: by
reply views Thread by BuddyWork | last post: by
6 posts views Thread by Nick Horrocks | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.