Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-15-2011, 11:58 AM   #1
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
mod Rewrite rule error redirecting to tomcat page

i had install apache
#yum install httpd*
#cd /etc/httpd/conf/httpd.conf


Include /etc/httpd/conf/httpd-server1.conf
Include /etc/httpd/conf/httpd-server2.conf

#cd /etc/httpd/conf
[root@mail conf]# ls
httpd.conf httpd-server1.conf magic
httpd.conf.rpmsave httpd-server2.conf

#cd /etc/httpd/conf/httpd-server2.conf
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*)

[root@mail ~]# cd /root/tomcat/apache-tomcat-6.0.26/webapps/ROOT/
[root@mail ROOT]# ls
asf-logo-wide.gif index.html RELEASE-NOTES.txt tomcat.svg
build.xml index.jsp tomcat.gif WEB-INF
favicon.ico jsp tomcat-power.gif
[root@mail ROOT]# cd jsp/
[root@mail jsp]# ls
b2b b2c
[root@mail jsp]# cd b2
bash: cd: b2: No such file or directory
[root@mail jsp]# cd b2b/
[root@mail b2b]# ls
[root@mail b2b]# cd jsp/
[root@mail jsp]# ls
[root@mail jsp]#

i want the to divert to follwoing url

i had included these mod rewrite rule in httpd-prod2.conf but still i could int get divert to /jsp/b2b/index.jsp when i hit http://mail.ert:90

can someone help me how can i solve the isssue ..

Last edited by jsaravana87; 11-15-2011 at 12:00 PM.
Old 11-16-2011, 01:55 AM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Options FollowSymlinks (or Options SymLinksIfOwnerMatch) are required to enable rewriting.

Rewriting activity can be debugged by logging:
RewriteLog        /var/log/apache2/rewrite.log
RewriteLogLevel   7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while Redirecting page using mod rewrite in apache jsaravana87 Linux - Server 6 10-21-2011 03:26 AM
lighttpd + tomcat + a custom rewrite rule robertjinx Linux - Server 0 09-07-2010 02:36 AM
Mod Rewrite Rule help needed! bagfull Fedora 1 02-20-2010 12:55 AM
Apache rewrite rule help - dynamic url to static page DukeLeto Linux - Software 3 11-12-2008 12:26 PM
Exception in mod-rewrite rule Boby Programming 0 01-17-2006 08:40 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration