Thank you for great comments and thank you to Mike too for additional
precious inputs. I discovered the low port number story while trying
to understand the issue.
Acually it was masking another problem that I found while setting the
port at 4443. Hopefully I could solve it.
The error was the following:
File "... python2.6/SocketServer.py", line 257, in handle_request
timeout = self.socket.gettimeout()
AttributeError: TSafeConnection instance has no attribute 'gettimeout'
20:04:58,828 INFO [paste.httpserver.ThreadPool] [Dummy-2] Shutting
down threadpool
20:04:58,828 INFO [paste.httpserver.ThreadPool] [Dummy-2] All workers
stopped
After some googling I discovered a patch was missing into my
application on the ...lib/python2.6/site-packages/paste/httpserver.py
file
details of the patch at http://trac.pythonpaste.org/pythonpaste/ticket/314
Thank you to both again
Actually this is my first pylons application and I didn't yet come to
the production settings.
>From your comments I understand that to cope with mixed http and https
(and perahps also generally speaking) it would be better setting the
production serving environment with apache/mod_wsgi rather than
PROXYING requests from apache to the paste server.
I'll see the configurations and tricks needed for setting it up.
However have you tried already any server/application setting to
dispatch both "normal http pages" and "critical secure https pages" ?
Any additional input on this point would be much appreciated.
Also a curiosity : is anyone making use of the @https decorator ? (or
should I simply forget about it)
Daniel
On May 27, 8:11 pm, cd34 <[email protected]> wrote:
> In order to bind to port 80 or 443, you need to start paster as
> root. You could run https on port 8443 (or any arbitrary port >
> 1023) if you don't have root privileges.
>
> Depending on your application, it may be better to run it behind
> apache2/mod_wsgi, nginx/uwsgi or one of several other configurations
> rather than deploying paste direct -- in which case those webservers
> would handle the http/https portion, leaving your application to
> decide to redirect the surfer.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.