Hi Gordon,

Here is an old example of mine:

https://github.com/miohtama/LibertyMusicStore/blob/b717bdb47bfe40c806f90e8177a1b598fdbb6c93/bin/uwsgi.prod.ini

Thanks,
Mikko

On 16 January 2016 at 19:11, gordon <[email protected]> wrote:

> Hello,
>
> I am trying to get uwsgi to redirect http traffic on port 80 to https on
> port 443.  It seems like the "http-to-https" option is designed to make
> this happen without any additional configuration which is ideal.  However,
> I cannot seem to get it working... I have tried the following:
>
> uwsgi --strict --http-to-https=:80 --https=:443,foo.crt,foo.key --master
> --enable-threads --processes=4, --threads=2 --module
> project.wsgi:application
>
> and
>
> uwsgi --strict --http=:80 --http-to-https --https=:443,foo.crt,foo.key
> --master --enable-threads --processes=4, --threads=2 --module
> project.wsgi:application
>
> Can anyone please tell me how to use --http-to-https with an example or
> let me know it isn't meant for what I am attempting to do.
>
> Just for completeness, my app works fine with the following (minus
> redirecting http to https):
>
> uwsgi --strict --http=:80 --https=:443,foo.crt,foo.key --master
> --enable-threads --processes=4, --threads=2 --module
> project.wsgi:application
>
> Thanks,
> Gordon
>
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
>


-- 
Mikko Ohtamaa
http://opensourcehacker.com
http://twitter.com/moo9000
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to