gunasekharyalamuri
asked on
Url Redirect Not working
I have application name as "appname" and i want to redirect internally to a particular action using name space like
/test/index.action and /test1/login.action
i am not able to mask the context name to ProxyPass
Below conf file describes you my server configuration
NameVirtualHost 192.168.10.222:80
<VirtualHost 192.168.10.222:80>
ServerName ie.abc.com
ErrorLog /var/log/httpd/Ie-error.lo g
# Log everything in common format, except events tagged with dontlog - see end of httpd.conf for details
CustomLog /var/log/httpd/Ie-access.l og common env=!dontlog
# Redirect to proper start page.
RewriteEngine On
RewriteRule ^/$ index.action [R=301,L]
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
# ProxyPass to the jboss instance
ProxyPass / http://localhost:8080/appname/
ProxyPassReverse / http://localhost:8080/appname/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
where appname is context root for both "test" and "test1" are name spaces.
test.png
/test/index.action and /test1/login.action
i am not able to mask the context name to ProxyPass
Below conf file describes you my server configuration
NameVirtualHost 192.168.10.222:80
<VirtualHost 192.168.10.222:80>
ServerName ie.abc.com
ErrorLog /var/log/httpd/Ie-error.lo
# Log everything in common format, except events tagged with dontlog - see end of httpd.conf for details
CustomLog /var/log/httpd/Ie-access.l
# Redirect to proper start page.
RewriteEngine On
RewriteRule ^/$ index.action [R=301,L]
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
# ProxyPass to the jboss instance
ProxyPass / http://localhost:8080/appname/
ProxyPassReverse / http://localhost:8080/appname/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
where appname is context root for both "test" and "test1" are name spaces.
test.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
As my directory structure is like this
appname
| test/index.action
| test1/login.action
appname
| test/index.action
| test1/login.action
ASKER
In my url redirect its redirecting http://localhost:8080/appname/test/index.action
But i dont wat to redirect appname in my redirection.
But i dont wat to redirect appname in my redirection.
I would like to read my explanation in this post:
301 Redirect and Stylesheet
http://www.experts-exchang
regards
Nrisimha