httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shanti Suresh <sha...@umich.edu>
Subject [users@httpd] mod_vhost_alias does not resolve "%0"
Date Fri, 30 Aug 2013 15:03:50 GMT
Greetings,

mod_vhost_alias is not resolving %0.  Perhaps I am doing something wrong.
I would like to redirect a specific page to the encrypted site.  Everything
else goes straight thru' to Tomcat.  I get a "%250" in my browser redirect.

This is what I have:

-----------httpd.conf snippet:------

LoadModule vhost_alias_module         modules/mod_vhost_alias.so

Listen 80
NameVirtualHost *:80

<VirtualHost *:80>
  ServerName qa.site.domain.edu
...
  ProxyPassMatch ^/.*/securechannel !
  RedirectMatch permanent ^/(.*)/securechannel https://%0/$1/securechannel

  ProxyPass / http://qaserver1.site.domain.edu:8080/
  ProxyPassReverse / http://qaserver1.site.domain.edu:8080/

</VirtualHost>
-----------End of httpd.conf snippet:------

My browser gets redirected to "https://%250/test/securechannel" and Safari
complains with "Safari can't find the server" when I access "
http://qa.site.domain.edu/test/securechannel".

The following however works:
 RedirectMatch permanent ^/(.*)/securechannel
https://qa.site.domain.edu/$1/securechannel

So how do I eliminate "%250" and get HTTPD to pass the HTTP request over to
the HTTPS side for that one page?

Thanks,

                         -Shanti

Mime
View raw message