Forum Moderators: phranque

Message Too Old, No Replies

Add parameter to URL before Proxy

proxy, rewrite

         

Dudz

10:46 pm on Oct 14, 2009 (gmt 0)

10+ Year Member



Hi,

I have an apache server configured to use mod_proxy to pass requests to a jboss application server.

I would like to modify the configuration so that it also uses mod_rewrite to add a parameter to the URL (?use_ssl=true) if the user makes the request over https. Mod_rewite is pretty new to me and hence I would appreciate any support.

Thanks

dudley

Dudz

10:51 pm on Oct 14, 2009 (gmt 0)

10+ Year Member



This is what I currently have in my httpd.conf
***********
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) $1?use_ssl=true
***********

Before the following where the proxying is done
***********
Include conf/extra/httpd-ssl.conf
***********

Dudz

12:47 pm on Oct 15, 2009 (gmt 0)

10+ Year Member



Bump .... Really need some assistance on this.

Thanks

jdMorgan

1:09 pm on Oct 15, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's not clear what your question is. Does this work or not?

Why did you put the code in httpd.conf instead of appending rhe query string directly in httpd-ssl.conf?

Jim