Mobile app version of vmapp.org
Login or Join
Deb1703797

: Passthrough in Virtualhost not preserving the previous URL I have a RewriteRule written at Apache to redirect to TOMCAT. Passthrough [PT] doesn't seems to work and Getting Bad Request. Same

@Deb1703797

Posted in: #ModRewrite

I have a RewriteRule written at Apache to redirect to TOMCAT.
Passthrough [PT] doesn't seems to work and Getting Bad Request.
Same configuration works with [P], but I don't want tomcat PORT to be visible in the browser.
If I enable ProxyPreserve On, I am getting multiple redirect. Following is the virtualhost configuration in my custom.conf file, included in httpd.conf,



<VirtualHost *:80>
ServerName xyz
ServerAlias example.com
RewriteEngine On
RewriteRule ^(/web) IPaddr:8182 [R=301,L]
RewriteCond %{REQUEST_URI} !^/web
RewriteRule ^(.*)$ example.com:8080 [PT]
#ProxyPreserveHost On
#ProxyRequests On
</VirtualHost>

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Deb1703797

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme