How to configure web2py server to http and https

378 views
Skip to first unread message

Vinicius Assef

unread,
Jun 17, 2013, 4:37:45 PM6/17/13
to web2py
I'd like to configure web2py embedded server to work with http and https.

Following this guideline[1] I can make everything work with https, but
my apps don't work with http. When I try to
http://localhost:8000/myapp I get a "Bad Request" error.

What am I missing?

[1] http://www.web2py.com/AlterEgo/default/show/140

--
Vinicius Assef

Niphlod

unread,
Jun 18, 2013, 6:36:26 AM6/18/13
to web...@googlegroups.com
if you need both with the internal webserver you need to pass the --interfaces option .... ip1:port1;ip2:port2:key2:cert2:ca_cert2
something like 127.0.0.1:80;127.0.0.1:443:server.key:server.crt

should work.

Vinicius Assef

unread,
Jun 18, 2013, 8:05:56 AM6/18/13
to web2py
Thanks, Niphlod. It worked. :-)
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages