*Nginx Error Log:* 2014/03/28 12:16:12 [error] 13768#0: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 61.135.190.70, server: 107.170.215.138:8001, request: "GET
*Now to try to figure out what these are saying:* 2014/03/28 07:12:58 [error] 13768#0: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 220.181.51.146, server: 107.170.215.138:8001, request: "GET$ 2014/03/28 07:28:45 [error] 13768#0: *10 connect() failed (111: Connection refused) while connecting to upstream, client: 220.181.51.147, server: 107.170.215.138:8001, request: "GE$ 2014/03/28 07:32:54 [error] 13768#0: *12 connect() failed (111: Connection refused) while connecting to upstream, client: 220.181.51.140, server: 107.170.215.138:8001, request: "GE$ 2014/03/28 07:45:33 [error] 13768#0: *14 connect() failed (111: Connection refused) while connecting to upstream, client: 220.181.51.147, server: 107.170.215.138:8001, request: "GE$ 2014/03/28 07:49:52 [error] 13768#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 81.171.52.4, server: 107.170.215.138:8001, request: "GET h$ 2014/03/28 07:52:08 [error] 13768#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: 189.114.248.181, server: 107.170.215.138:8001, request: "H$ 2014/03/28 07:53:24 [error] 13768#0: *21 connect() failed (111: Connection refused) while connecting to upstream, client: 61.135.190.70, server: 107.170.215.138:8001, request: "GET$ 2014/03/28 08:11:36 [error] 13768#0: *23 connect() failed (111: Connection refused) while connecting to upstream, client: 61.135.190.198, server: 107.170.215.138:8001, request: "GE$ 2014/03/28 11:58:37 [error] 13768#0: *25 connect() failed (111: Connection refused) while connecting to upstream, client: 61.135.190.70, server: 107.170.215.138:8001, request: "GET$ 2014/03/28 12:16:12 [error] 13768#0: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 61.135.190.70, server: 107.170.215.138:8001, request: "GET$ $t: "GET / HTTP/1.0", upstream: "http://127.0.0.1:8001/", host: "107.170.215.138", referrer: "http://www.baidu.com/s?wd=www" 2014/03/28 12:50:56 [error] 13768#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 18.242.7.117, server: 107.170.215.138:8001, request: "HEAD$ 2014/03/28 14:06:02 [error] 13768#0: *33 connect() failed (111: Connection refused) while connecting to upstream, client: 202.53.8.82, server: 107.170.215.138:8001, request: "GET $t: "GET / HTTP/1.0", upstream: "http://127.0.0.1:8001/", host: "107.170.215.138", referrer: "http://www.baidu.com/s?wd=www" On Friday, March 28, 2014 12:41:57 PM UTC-6, Kyle Pennell wrote: > > Tried each combo and none worked...hmmm... > > On Friday, March 28, 2014 12:35:39 PM UTC-6, Kyle Pennell wrote: >> >> Thanks for responding. >> >> Double checking I understand: >> >> location /static/ { >> alias /opt/myenv/mezzanine_app/static/; >> } >> >> Should be: >> >> location /static/ { >> alias /opt/myenv/mezzanine_app/static; >> } >> >> Or? >> >> location /static/ { >> alias /opt/myenv/mezzanine_app; >> } >> >> >> On Thursday, March 27, 2014 8:45:04 PM UTC-6, Matthew Summers wrote: >>> >>> Remove the trailing slash on your location alias directive. >>> >>> On Thu, Mar 27, 2014 at 6:32 PM, Kyle Pennell <[email protected]> >>> wrote: >>> > Ah! Will try pulling that out. Thanks for the help, Stephen. >>> > >>> > >>> > On Thu, Mar 27, 2014 at 5:28 PM, Stephen McDonald <[email protected]> >>> wrote: >>> >> >>> >> >>> >> >>> >> >>> >> On Fri, Mar 28, 2014 at 8:46 AM, Kyle Pennell <[email protected]> >>> wrote: >>> >>> >>> >>> Triple checked my settings and can't find why my static files aren't >>> >>> loading. >>> >>> >>> >>> Nginx and Gunicorn are installed and working. >>> >>> Symbolic Link between sites-available and sites-enabled is made >>> >>> >>> >>> ── sites-available >>> >>> │ ├── mezzanine_app >>> >>> │ └── myproject >>> >>> ├── sites-enabled >>> >>> │ ├── ahalearning -> ../sites-available/ahalearning >>> >>> │ ├── mezzanine_app -> ../sites-available/mezzanine_app >>> >>> │ └── myproject -> ../sites-available/myproject >>> >>> >>> >>> >>> >>> Collectstatic has been run and static files are in place: >>> >>> >>> >>> ├── deploy >>> >>> │ ├── crontab >>> >>> │ ├── gunicorn.conf.py >>> >>> │ ├── live_settings.py >>> >>> │ ├── nginx.conf >>> >>> │ └── supervisor.conf >>> >>> ├── dev.db >>> >>> ├── fabfile.py >>> >>> ├── __init__.py >>> >>> ├── __init__.pyc >>> >>> ├── local_settings.py >>> >>> ├── local_settings.pyc >>> >>> ├── manage.py >>> >>> ├── requirements.txt >>> >>> ├── settings.py >>> >>> ├── settings.pyc >>> >>> ├── static >>> >>> │ ├── admin >>> >>> │ ├── css >>> >>> │ ├── filebrowser >>> >>> │ ├── fonts >>> >>> │ ├── grappelli >>> >>> │ ├── img >>> >>> │ ├── js >>> >>> │ ├── media >>> >>> │ ├── mezzanine >>> >>> │ ├── robots.txt >>> >>> │ └── test >>> >>> ├── urls.py >>> >>> ├── urls.pyc >>> >>> └── wsgi.py >>> >>> >>> >>> >>> >>> STATIC_ROOT in settings.py points to the right folder >>> >>> (opt/myenv/mezzanine_app/static/) >>> >>> >>> >>> >>> >>> My nginx server settings point to the right files: >>> >>> /etc/nginx/sites-available >>> >>> >>> >>> >>> >>> server { >>> >>> server_name 107.170.215.138; >>> >>> >>> >>> access_log off; >>> >>> >>> >>> location /static/ { >>> >>> alias /opt/myenv/mezzanine_app/static/; >>> >>> } >>> >> >>> >> >>> >> I think this will look for the directory >>> >> "/opt/myenv/mezzanine_app/static/static/" >>> >> >>> >> >>> >>> >>> >>> >>> >>> location / { >>> >>> proxy_pass http://127.0.0.1:8001; >>> >>> proxy_set_header X-Forwarded-Host $server_name; >>> >>> proxy_set_header X-Real-IP $remote_addr; >>> >>> add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR >>> ONL UNI >>> >>> COM NAV"'; >>> >>> } >>> >>> } >>> >>> >>> >>> Nginx and Gunicorn fire up without problems. >>> >>> >>> >>> >>> >>> >>> >>> Any idea what I might be missing? >>> >>> >>> >>> Why are my static files 404'ing? >>> >>> >>> >>> >>> >>> -- >>> >>> You received this message because you are subscribed to the Google >>> Groups >>> >>> "Mezzanine Users" group. >>> >>> To unsubscribe from this group and stop receiving emails from it, >>> send an >>> >>> email to [email protected]. >>> >>> >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >>> >> >>> >> >>> >> >>> >> -- >>> >> Stephen McDonald >>> >> http://jupo.org >>> >> >>> >> -- >>> >> You received this message because you are subscribed to a topic in >>> the >>> >> Google Groups "Mezzanine Users" group. >>> >> To unsubscribe from this topic, visit >>> >> >>> https://groups.google.com/d/topic/mezzanine-users/CrUlR8jjUw0/unsubscribe. >>> >>> >> To unsubscribe from this group and all its topics, send an email to >>> >> [email protected]. >>> >> >>> >> For more options, visit https://groups.google.com/d/optout. >>> > >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "Mezzanine Users" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an >>> > email to [email protected]. >>> > For more options, visit https://groups.google.com/d/optout. >>> >>> >>> >>> -- >>> M. Summers >>> >>> "...there are no rules here -- we're trying to accomplish something." >>> - Thomas A. Edison >>> >> -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
