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]<javascript:>> 
> 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]<javascript:>> 
> wrote: 
> >> 
> >> 
> >> 
> >> 
> >> On Fri, Mar 28, 2014 at 8:46 AM, Kyle Pennell 
> >> <[email protected]<javascript:>> 
> 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] <javascript:>. 
> >>> 
> >>> 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] <javascript:>. 
> >> 
> >> 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] <javascript:>. 
> > 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.

Reply via email to