I can not connect to https waitress wsgi server

user2897065

I have tried the tutorial of python pyramid framework but, https connection, no matter how able to waitress. http://docs.pylonsproject.org/projects/pyramid/en/latest/tutorials/wiki2/installation.html

If you look at the documents of waitress, there is an item called 'url_scheme' in pasteDeploy format. I tried to add the following to development.ini:

# # #
# Wsgi server configuration
# # #

[server: main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
url_scheme = https

But, it seems to be listening for http connections be performed pserve command.

$ serve development.ini - reload
Starting subprocess with file monitor
Starting server in PID 2757.
serving on http://0.0.0.0:6543

There is no response when accessed by browser in this state. Application I'm trying to create is expecting a https access, but do you think there is a package needed for something else. Or Do I fundamentally wrong somewhere? I would appreciate the advice of experts.

Environment in fedora19, python 3.3.2. the following packages that are included in the virtualenv:

Chameleon == 2.12
Mako == 0.9.0
MarkupSafe == 0.18
PasteDeploy == 1.5.0
Pygments == 1.6
SQLAlchemy == 0.8.2
WebOb == 1.2.3
coverage == 3.7
nose == 1.3.0
pyramid == 1.4.5
pyramid-debugtoolbar == 1.0.8
pyramid-mako == 0.2
pyramid-tm == 0.7
repoze.lru == 0.6
transaction == 1.4.1
translationstring == 1.1
tutorial == 0.0
venusian == 1.0a8
waitress == 0.8.7
zope.deprecation == 4.0.2
zope.interface == 4.0.5
zope.sqlalchemy == 0.7.3

Please tell us the location of the document would be helpful to me means. Thank you very much!

Michael Merickel

Waitress does not actually support decoding https requests. The only way to support https is by putting waitress behind a reverse proxy such as nginx. You then allow nginx to decrypt the request and pass it on to waitress. The problem here is that waitress now thinks it's serving an http request because thats what it sees from nginx. The url_scheme setting is for telling waitress that all requests coming into waitress are actually https, which it can then forward on to the application, which uses that fact to help your application generate urls using the https scheme instead of http.

Hopefully that makes sense but either way it should be clear to you that your https setup is not going to work when no where in your pastes have you actually created a certificate or a private key.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

I can not connect to https waitress wsgi server

From Dev

I can't connect to a https site server by Caddy using curl

From Dev

can not connect to pymssql from python wsgi with mod_wsgi

From Dev

Why i can not to connect sql server with android?

From Dev

How can I connect to the internet in Ubuntu server?

From Dev

How can I connect an android with a local server?

From Dev

How can I connect to the internet in Ubuntu server?

From Dev

Can I avoid a CONNECT request with cURL when using HTTPS and a proxy?

From Dev

Why can't I connect to this site via HTTPS?

From Dev

Why i can connect to every https website using http

From Dev

Gracefully stopping Waitress web server

From Dev

I can connect to Yahoo smtp server but not gmail server

From Dev

I can connect to Yahoo smtp server but not gmail server

From Dev

Erlang needs to connect to https server?

From Dev

How can I host my CSS/JS on an HTTPS server

From Dev

How can i enable HTTPS over a Snap server?

From Dev

How can I run a https server on Heroku with docker?

From Dev

How can a I redirect an HTTPS request to a HTTP server?

From Dev

Can I connect to external server and change my display page

From Dev

How can I connect to a Google Compute Engine virtual server with a GUI?

From Dev

How can I connect to a remote socket server with "namespace" and parameters?

From Dev

Why can't I connect to server via actual public IP?

From Dev

PrincipalContext - I Can't connect to a local openldap server

From Dev

I can't connect to test a local server started with TcpListener

From Dev

How can I connect two Android device by socket without server

From Dev

How can I connect remotely to a WebSphere Server running on localhost?

From Dev

how can i connect with different SFTP server dynamically?

From Dev

Where are my postgres *.conf files if I can't connect to server?

From Dev

How can I clean up Connect to Server's recent servers?

Related Related

  1. 1

    I can not connect to https waitress wsgi server

  2. 2

    I can't connect to a https site server by Caddy using curl

  3. 3

    can not connect to pymssql from python wsgi with mod_wsgi

  4. 4

    Why i can not to connect sql server with android?

  5. 5

    How can I connect to the internet in Ubuntu server?

  6. 6

    How can I connect an android with a local server?

  7. 7

    How can I connect to the internet in Ubuntu server?

  8. 8

    Can I avoid a CONNECT request with cURL when using HTTPS and a proxy?

  9. 9

    Why can't I connect to this site via HTTPS?

  10. 10

    Why i can connect to every https website using http

  11. 11

    Gracefully stopping Waitress web server

  12. 12

    I can connect to Yahoo smtp server but not gmail server

  13. 13

    I can connect to Yahoo smtp server but not gmail server

  14. 14

    Erlang needs to connect to https server?

  15. 15

    How can I host my CSS/JS on an HTTPS server

  16. 16

    How can i enable HTTPS over a Snap server?

  17. 17

    How can I run a https server on Heroku with docker?

  18. 18

    How can a I redirect an HTTPS request to a HTTP server?

  19. 19

    Can I connect to external server and change my display page

  20. 20

    How can I connect to a Google Compute Engine virtual server with a GUI?

  21. 21

    How can I connect to a remote socket server with "namespace" and parameters?

  22. 22

    Why can't I connect to server via actual public IP?

  23. 23

    PrincipalContext - I Can't connect to a local openldap server

  24. 24

    I can't connect to test a local server started with TcpListener

  25. 25

    How can I connect two Android device by socket without server

  26. 26

    How can I connect remotely to a WebSphere Server running on localhost?

  27. 27

    how can i connect with different SFTP server dynamically?

  28. 28

    Where are my postgres *.conf files if I can't connect to server?

  29. 29

    How can I clean up Connect to Server's recent servers?

HotTag

Archive