I saw also that there is a new feature in web2py to do just that in models/db.py :
## if SSL/HTTPS is properly configured and you want all HTTP requests to ## be redirected to HTTPS, uncomment the line below: # request.requires_https() Richard On Tue, Mar 6, 2012 at 11:37 AM, Richard Vézina <[email protected] > wrote: > Solve it like that : > > NameVirtualHost *:80 > NameVirtualHost *:443 > > <VirtualHost *:80> > WSGIDaemonProcess web2py user=www-data group=www-data > WSGIProcessGroup web2py > WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py > > *Redirect permanent / https://mysite.mydomain.org/* > </VirtualHost> > ... > > :) > > Richard > > On Mon, Mar 5, 2012 at 6:42 PM, Richard <[email protected]>wrote: > >> Hello, >> >> Is there someone that could help with configuring apache and >> possibly nginx for serving only https? >> >> Appreciate. >> >> Richard >> > >

