You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Shanti Suresh <sh...@umich.edu> on 2013/08/30 17:03:50 UTC
[users@httpd] mod_vhost_alias does not resolve "%0"
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
Re: [users@httpd] mod_vhost_alias does not resolve "%0"
Posted by Shanti Suresh <sh...@umich.edu>.
On Fri, Aug 30, 2013 at 11:13 AM, Eric Covener <co...@gmail.com> wrote:
> Only the directives in mod_vhost_alias do anything with the substitutions.
>
Ah! Thanks, Eric.
>
> On Fri, Aug 30, 2013 at 11:03 AM, Shanti Suresh <sh...@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:
> >
>
Re: [users@httpd] mod_vhost_alias does not resolve "%0"
Posted by Eric Covener <co...@gmail.com>.
Only the directives in mod_vhost_alias do anything with the substitutions.
On Fri, Aug 30, 2013 at 11:03 AM, Shanti Suresh <sh...@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