Hello Everyone,

Maybe this is a silly question, but I run web2py using the following 
command:

python3 web2py.py -i 0.0.0.0 -p 8080 --nogui -a 'Password'

Everything goes well. My application is working . My application includes 
an authentication part,
and so far it is running on HTTP, so browsers warns me about I'm using an 
insecure conexion . I was ignoring those messages so far..

However,  i would like to activate the SSL conexion in the Rocket server.
I tried to execute web2py using the following command:

python3 web2py.py -c web2py.crt -k web2py.key -i 0.0.0.0 -p 8080 --nogui -a 
'Password'

It runs, but when I try to connect to the server (my app) using my browser:
xx.xx.xx.xx:8080/myapp

The browser (Chrome) tells me that it is not possible to connect to the 
site.
And the server part shows a list of errors, I'm including some of them:
<<<<
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/home/vsosa/Applications/web2py/gluon/rocket.py", line 1268, in run
    conn = Connection(*conn)
  File "/home/vsosa/Applications/web2py/gluon/rocket.py", line 105, in 
__init__
    self.socket.settimeout(SOCKET_TIMEOUT)
OSError: [Errno 9] Bad file descriptor

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/home/vsosa/Applications/web2py/gluon/rocket.py", line 1268, in run
    conn = Connection(*conn)
  File "/home/vsosa/Applications/web2py/gluon/rocket.py", line 105, in 
__init__
    self.socket.settimeout(SOCKET_TIMEOUT)
OSError: [Errno 9] Bad file descriptor

<<<

am I missing something?
is this the right way to execute web2py on Rocket using SSL:

python3 web2py.py -c web2py.crt -k web2py.key -i 0.0.0.0 -p 8080 --nogui -a 
'Password'

Thank you in advance.

Best regards,
VĂ­ctor




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/0933c7b0-0de9-4179-b23f-dfc64bbe9c1c%40googlegroups.com.

Reply via email to