httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] mod_vhost_alias does not resolve "%0"
Date Fri, 30 Aug 2013 15:13:01 GMT
Only the directives in mod_vhost_alias do anything with the substitutions.

On Fri, Aug 30, 2013 at 11:03 AM, Shanti Suresh <shanti@umich.edu> wrote:
> 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
>
>



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message