Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Jim S
No, I'd just remove all of that completely. This is my production nginx.conf file. Also note the last 2 lines... user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Maurice Waka
removed, tried, restarted everything but errors still remains. Modified it as you had suggested but the latest error: nginx: [emerg] unknown directive "web2py" in /etc/nginx/nginx.conf:87 On Tue, Jul 16, 2019 at 4:28 PM Jim Steil wrote: > I would remove that and retry it. > > On Tue, Jul 16,

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Jim Steil
I would remove that and retry it. On Tue, Jul 16, 2019 at 8:16 AM Maurice Waka wrote: > Nope. Web2py example > > On Tue, 16 Jul 2019, 14:38 Jim Steil wrote: > >> Did you take that server directive out of the nginx.conf file? >> >> Jim >> >> >> On Tue, Jul 16, 2019, 3:01 AM Maurice Waka wrote:

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Maurice Waka
Nope. Web2py example On Tue, 16 Jul 2019, 14:38 Jim Steil wrote: > Did you take that server directive out of the nginx.conf file? > > Jim > > > On Tue, Jul 16, 2019, 3:01 AM Maurice Waka wrote: > >> Used the link as you directed >> >> posted this: >> # file /etc/nginx/sites-available/web2py >>

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Jim Steil
Did you take that server directive out of the nginx.conf file? Jim On Tue, Jul 16, 2019, 3:01 AM Maurice Waka wrote: > Used the link as you directed > > posted this: > # file /etc/nginx/sites-available/web2py > server { > listen 80; > server_name 165.22.57.107; >

Re: [web2py] Re: How to solve the Nginx error on digitalocean

2019-07-16 Thread Maurice Waka
Used the link as you directed posted this: # file /etc/nginx/sites-available/web2py server { listen 80; server_name 165.22.57.107; #to enable correct use of response.static_version #location ~* /(\w+)/static(?:/_[\d]+.[\d]+.[\d]+)?/(.*)$ { #

[web2py] Re: How to solve the Nginx error on digitalocean

2019-07-15 Thread Jim S
I don't think server can be a root element in this file. Do you have it under another element? I'd try it like this: web2py { server { listen 443; server_name server_domain_or_IP; root html; index index.html index.htm; ssl on;