Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Nginx #51

Open
thxmike opened this issue Aug 23, 2017 · 1 comment
Open

Installation Nginx #51

thxmike opened this issue Aug 23, 2017 · 1 comment

Comments

@thxmike
Copy link

thxmike commented Aug 23, 2017

I am a little confused by the installation instructions for NGINX. At this point all I see are connection refused messages.

First question in regards to, "Create a uwsgi.ini file in the directory with the application"
Does "The Directory with the Application" mean where you downloaded the repo? Or some other directory?

Second in regards to, "And add the following to that file (you can tweak these settings as required)"
Does this mean I should be changing the path? "/python/path/site-packages/dnote-1.0.1-py2.7.egg/dnote"

Third in regards to "add the following to your sites config (again, you can tweak thsi as needed):"
Which site config should I be modifying? The one located in "/etc/nginx/sites-available/default"

Finally, here is what my access.log is stating
"GET /dnote HTTP/1.1" 502 181 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
127.0.0.1 - - [23/Aug/2017:14:32:50 -0500] "\x1Ea\x02\x00\x0C\x00QUERY_STRING\x00\x00\x0E\x00REQUEST_METHOD\x03\x00GET\x0C\x00CONTENT_TYPE\x00\x00\x0E\x00CONTENT_LENGTH\x00\x00\x0B\x00REQUEST_URI\x06\x00/dnote\x09\x00PATH_INFO\x07\x00/dnote/" 400 181 "-" "-"

and here is my error.log:
[error] 3538#0: *1 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /dnote HTTP/1.1", upstream: "uwsgi://127.0.0.1:8081", host: "127.0.0.1:8081"

Here is my sites-available default config:

  server {
        listen 8081;
        listen 127.0.0.1:8081;

        root /usr/share/nginx/html;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name localhost;

        location = /dnote { rewrite ^ /dnote/; }
        location /dnote/ { try_files $uri @dnote; }
        location @dnote {
                include uwsgi_params;
                uwsgi_param SCRIPT_NAME /dnote;
                uwsgi_modifier1 30;
                uwsgi_pass 127.0.0.1:8081;
        }

}
@thxmike
Copy link
Author

thxmike commented Sep 6, 2017

Unfortunately, I am unable to get the NGINX instructions to work. I have tried different settings and configurations to no avail. I would suggest providing better instructions to assist people in using this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant