*in windows run_rocket_web2py.bat*
@echo off

set command=C:\Python27\python.exe web2py.py
set certificate=abadijaya.crt
set key=abadijaya.key
set interfaces=0.0.0.0:80;0.0.0.0:443:abadijaya.key:abadijaya.crt
set port=443

start %command% -c %certificate% -k %key% --interfaces=%interfaces% -p 
%port%

*in *.nix run_rocket_web2py.sh*
sudo python ~/site/web2py/web2py.py --nogui --no-banner -c web2py.crt -k 
web2py.key --interfaces=0.0.0.0:443:web2py.key:web2py.crt;0.0.0.0:80 -p 443

in windows can running rocket web2py source with both http & https while in 
the same command only run either http or https in nix (linux & max), just 
change the order, the left side is executed
*e.g.*
--interfaces=0.0.0.0:443:web2py.key:web2py.crt;0.0.0.0:80 
*result* : can access https not http
--interfaces=0.0.0.0:80;0.0.0.0:443:web2py.key:web2py.crt 
*result* : can access http not https

any idea how to run rocket web2py that support both https (443) and http 
(80) in *.nix environment?

thanks and best regards,
stifan

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to