Re: Redirect http to https

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don't use pcre in redirect.

For what you ask you just need a simple:
Redirect / https://yourdomain/ in the nonssl virtual host.

If you insist on using pcre with redirect for some particular reason you have not mentioned yet, use RedirectMatch.

Regards


El jue., 29 de enero de 2015 1:06, Chris Arnold <carnold@xxxxxxxxxxxxxxxxxxx> escribió:

On Jan 28, 2015, at 6:31 PM, Yehuda Katz <yehuda@xxxxxxxxxx> wrote:

Make sure you put these in the correct VHOST. They need to be in the :80 vhost, not the :443 vhost.

I usually use the Redirect directive (http://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirect) instead.

Yea, I tried that, like this in the :80 vhost:

Redirect permanent ^/share(.*) https://share.domain.tld/share [R=301,L]

Then in a browser type share.domain.tld and you land on http://domain.tld site though the URL in the browser has https://share.domain.tld

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux