[Containers] Auto redirect http to https for portus web inteface

Benjamin Fernandis benjo11111 at gmail.com
Thu Mar 17 17:35:34 MDT 2016


Hi, I setup portus by rpm onn opensuse, I m thinking it comes with inbuilt
apache + mode_pessenger.

On Fri, Mar 18, 2016 at 11:39 AM, Aleksa Sarai <asarai at suse.com> wrote:

>
> How we can do auto-redirect http to https for portus web interface.
>>
>> As when we do http, it gives some error but with https it works fine.
>>
>
> Is your Portus server behind Nginx? If so, you can just add the following
> directive:
>
> server {
>         listen 80;
>         server_name <same as your SSL setup>;
>
>         return 301 https://$host$request_url;
> }
>
> You can swap 301 (permanent) for 302 (temporary).
>
> --
> Aleksa Sarai
> Docker Core Specialist
> SUSE Australia
> https://www.cyphar.com/
> _______________________________________________
> Containers mailing list
> Containers at lists.suse.com
> http://lists.suse.com/mailman/listinfo/containers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.suse.com/pipermail/containers/attachments/20160318/89350a5f/attachment.htm>


More information about the Containers mailing list