Re: Best way to redirect all traffic to secure website.

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

 



On Mon, Feb 20, 2017 at 8:17 PM, Spork Schivago <sporkschivago@xxxxxxxxx> wrote:
>
> <VirtualHost *:80>
>     ServerName www.mydomain.com
>     Redirect "/" "https://www.mydomain.com/";
> </VirtualHost>
>
> <VirtualHost *:80>
>     ServerName subdomain1.mydomain.com
>     Redirect "/" "https://subdomain1.mydomain.com:2083/";
>     ...
> </VirtualHost>
>
>
> Then, if I go to something like
> http://subdomain1.mydomain.com/test/example.html, would it take me to
> https://subdomain1.mydomain.com:2083/test/example.html?

I think so, you probably should try it first, but I don't see why it
wouldn't work.
"Redirect permanent / ..." might be interesting too if that's a
"definitive" redirect, so that browsers use "https:" directly for next
requests...


Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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