Re: [users@httpd] Unconditional Redirect?
On 28.04.12 17:16, Waldemar Klein wrote: I'm looking for a way to unconditionally Redirect. This is used in an If .. construct, so my condition is checked already. I use this in a (normal, forward, not reverse) Proxy configuration, which handles http and https requests. I already tried RedirectMatch .* http://my.new.url.here; which works fine for http requests, but not for https. you probably need to put that redirect to your HTTPS virtual host. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. It's now safe to throw off your computer. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Unconditional Redirect?
Hello. I'm looking for a way to unconditionally Redirect. This is used in an If .. construct, so my condition is checked already. I use this in a (normal, forward, not reverse) Proxy configuration, which handles http and https requests. I already tried RedirectMatch .* http://my.new.url.here; which works fine for http requests, but not for https. (My guess is, the URL-path is empty or NULL, and that's why the match doesn't work). What happens here is that i get errors when i was supposed to get to http://my.new.url.here. Maybe there is another Directive i overlooked, or another way to use RedirectMatch that would work in that case? - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Unconditional Redirect?
On Sat, Apr 28, 2012 at 11:16 AM, Waldemar Klein waldemar.kle...@googlemail.com wrote: Hello. I'm looking for a way to unconditionally Redirect. This is used in an If .. construct, so my condition is checked already. I use this in a (normal, forward, not reverse) Proxy configuration, which handles http and https requests. I already tried RedirectMatch .* http://my.new.url.here; which works fine for http requests, but not for https. (My guess is, the URL-path is empty or NULL, and that's why the match doesn't work). What happens here is that i get errors when i was supposed to get to http://my.new.url.here. What errors exactly? Maybe there is another Directive i overlooked, or another way to use RedirectMatch that would work in that case? Redirect and RedirectMatch should work fine. There should never be an empty URL for either. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Unconditional Redirect?
On Sat, Apr 28, 2012 at 5:25 PM, Eric Covener cove...@gmail.com wrote: What errors exactly? That was a good question :) This is browser dependent, there is no error inside Apache (nothing about it in error.log or access.log). Firefox and Seamonkey say Failed to Connect Opera says Found. The document was moved _here_ (with a link i can click to get to the page i wanted to redirect to) Safari says something like he can't open the page (have this in german only, can't tell what it is exactly in english) Internet Explorer shows something similar (can't display, it's also in german for me) To be more specific what i did in httpd.conf: IfModule proxy_module ProxyRequests On Proxy * Require local If !(%{HTTP_HOST}=~/.org$/) RedirectMatch .* http://www.wikipedia.org /If /Proxy /IfModule This is only a simplified example, but shows the issue. As I said, it has to be done with https:... sites, everything works fine for just http. And of course I did load mod_proxy, mod_proxy_http and mod_proxy_connect earlier in the conf :) Seems I'll have to examine that problem a little deeper. It's not only Apache or Redirect involved, but also how Browsers handle this. I'll post again when I know more. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org