Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache Tomcat error - HTTP Status 404

Status
Not open for further replies.

jponnusa

Programmer
Jul 8, 2015
7
0
0
QA
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:
-----------
<VirtualHost *:80>
ServerName ot2.tst.edu

ErrorLog logs/live/http_error.log
#CustomLog logs/live/http_access.log combined
CustomLog "|/opt/apps/apache/bin/rotatelogs -f /opt/apps/apache/logs/live/http_access.log.%Y.%m.%d 86400 +60" imi
RewriteLog logs/live/http_rewrite.log

RewriteEngine on

# Requests from local machines can go through HTTP. Other
# requests have to go through HTTPS
RewriteCond %{REMOTE_ADDR} !^101\.151\.191\.21$

# Preview stage docroot
DocumentRoot /opt/apps/ot

# By default redirect to Portal console.
RewriteRule ^/+$ /sites/tst/ [R,L]
<IfModule rewrite_module>
Options +FollowSymlinks
RewriteEngine On
RewriteOptions Inherit
#RewriteLogLevel 9
RewriteLog logs/rewrite.log


</IfModule>

JkMount /* tst_dev_live_svr

</VirtualHost>
============================================================================================================================

Thanks
Jay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top