Wednesday, October 3, 2018

/usr/share/nginx/html

I am trying to deploy my wagtail/dajngo app to ngnix with Gunicorn.




usr/share/nginx/html


include /etc/nginx/conf.d/*.conf;

    server {
listen       80 default_server;
        listen       [::]:80 default_server;
        server_name  _;
        root         /usr/share/nginx/html;

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        location / {
        }

error_page 404 /404.html;
            location = /40x.html {
        }

error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }
I can not just my ngnix settings.
But still what do I need to change?

and how to get the proxy_pass http://unix:/var/www/myproject.sock; ?
Do i need to make this?


Tim

No comments:

Post a Comment