Re: [users@httpd] redirect q

2015-09-29 Thread Kurtis Rader
On Tue, Sep 29, 2015 at 6:19 PM, K R wrote: > I am trying to force redirect HTTP to HTTPS as below > > RewriteEngine On > RewriteCond %{HTTPS} !=on > RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] > > but it fails with too many redirect error . > Did you google "apache https redirect"? Th

[users@httpd] redirect q

2015-09-29 Thread K R
Hi, I am trying to force redirect HTTP to HTTPS as below RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] but it fails with too many redirect error . appreciate any help . thanks Kart

Re: [users@httpd] VirtualHost configuration not working?

2015-09-29 Thread Felix Rubio Dalmau
Hi Marat, httpd-users :) I have updated the configuration of my apache. Following these lines there is the updated version. The behavior now is: a) If I type in the url box the non-ssl address of site1 IN FIREFOX, It gets transformed into the ssl address of site0, and its conten

Re: [users@httpd] VirtualHost configuration not working?

2015-09-29 Thread Marat Khalili
This is very strange. Even when Apache cannot determine request host name, it loads the first defined virtual host, not the last one. I wonder, in your case, what will it load if you disable last two virtual host records? (BTW, it's usually either Listen 80, or Listen specific-ip:80, but I do

Re: [users@httpd] VirtualHost configuration not working?

2015-09-29 Thread felix rubio dalmau
Hi, No, the reason is that site2 holds a cardav server, that is accessed by other of the sites on the same host. The idea behind this is that I can save all the time spent in encryption (the SSL layer) if I know that both sites are local. I am testing this configuration from a client on the VP