Re: [web2py] Re: Calling extra script at startup from nginx

2013-09-04 Thread lbd
Hi Niphlod, I had to modify the script by removing: sudo -u This would work if the user I required to run it did not require a sudo password, but I prefer all sudo actions to be authenticated. Thank you again. ed On Tuesday, 3 September 2013 08:01:33 UTC+2, lbd wrote: > > Tha

[web2py] Calling extra script at startup from nginx

2013-09-02 Thread lbd
Hi guys, I have my prod deployment of Ubuntu running nginx and in turn web2py. Also thanks to Niphlod I have all HTTP req's rewritten to https I have an rq implementation in our code and would like to call web2py-rq.py or run sudo rqworker on the box. In my pre prod environment (no nginx) I

[web2py] Re: nginx web2py http to https rewrite

2013-08-29 Thread lbd
> server { >listen 80; >return 301 https://$host$request_uri; > } > > On Thursday, August 29, 2013 10:15:43 AM UTC+2, lbd wrote: >> >> Hi all, I recently setup a site using the nginx web2py ubuntu script. >> What I want to do is redirect all http traf

[web2py] Re: nginx web2py http to https rewrite

2013-08-29 Thread lbd
nt the server not to work on http but only in https, then you > should have only one directive in the server block listeing to the 80 port: > server { >listen 80; >return 301 https://$host$request_uri; > } > > On Thursday, August 29, 2013 10:15:43 AM UTC+2, lbd wrot

[web2py] nginx web2py http to https rewrite

2013-08-29 Thread lbd
Hi all, I recently setup a site using the nginx web2py ubuntu script. What I want to do is redirect all http traffic to https. In order to do this I tried modifying the /etc/nginx/sites-available/web2py script with a simple rewrite rule: server { listen 80; server_name