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

Benjamin Fernandis benjo11111 at gmail.com
Sun Mar 20 19:14:12 MDT 2016


yep, now working

Thanks Jordi

On Fri, Mar 18, 2016 at 10:01 PM, Jordi Massaguer Pla <jmassaguerpla at suse.de
> wrote:

> Then you can try with https://wiki.apache.org/httpd/RedirectSSL
>
>
> On 03/18/2016 12:35 AM, Benjamin Fernandis wrote:
>
> 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
>>
>
>
>
> _______________________________________________
> Containers mailing listContainers at lists.suse.comhttp://lists.suse.com/mailman/listinfo/containers
>
>
>
> _______________________________________________
> 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/20160321/0cfe9573/attachment.htm>


More information about the Containers mailing list