This is on Digital Ocean. How would I check out firewall related issues?
On Saturday, March 29, 2014 2:00:08 AM UTC-6, Luc Milland wrote:
>
> could this be firewall related ?
>
> Le vendredi 28 mars 2014 à 18:20 -0700, Kyle Pennell a écrit :
> > First off, thanks so much for taking the time to respond to another
> > beginner. I'm on tutorial number 5 now of trying to figure this out.
> I'm
> > amazed I haven't yet. What a challenge.
> >
> > Changed that file:
> >
> > server {
> > > server_name 107.170.215.138;
> > > access_log off;
> > > location /static/ {
> > > alias /opt/myenv/mezzanine_app;
> > > }
> > > 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"';
> > > }
> > > }
> > >
> > >
> > My static ip was in the allowed hosts:
> >
> > ALLOWED_HOSTS = [
> > > '107.170.215.138',
> > > '107.170.215.138.',
> > > ]
> >
> >
> >
> > Error logs are the same.
> >
> >
> > If you happen to have any random ideas, they'd be very much appreciated.
> >
> > Kyle
> >
> > On Friday, March 28, 2014 2:48:01 PM UTC-6, Matthew Summers wrote:
> > >
> > > On Fri, Mar 28, 2014 at 1:35 PM, Kyle Pennell
> > > <[email protected]<javascript:>>
>
> > > 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;
> > > > }
> > > >
> > > >
> > >
> > > You'll want this one assuming the mezz project layout where your
> > > static dir is directly under your messanine_app dir:
> > >
> > > location /static/ {
> > > alias /opt/myenv/mezzanine_app;
> > > }
> > >
> > >
> > > As far as your error log, it looks like you might need to add the
> > > static ip of your server to ALLOWED_HOSTS in settings. Your app server
> > > is refusing to respond to nginx.
> > >
> > > Cheers,
> > > Matt
> > >
> >
>
>
>
--
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.