Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion " pylons + nginx " error 404 not found for all styles, scripts, images

Received: by 10.42.65.138 with SMTP id l10mr7789655ici.26.1353217139732;
        Sat, 17 Nov 2012 21:38:59 -0800 (PST)
X-BeenThere: pylons-discuss@googlegroups.com
Received: by 10.50.15.168 with SMTP id y8ls2203327igc.42.canary; Sat, 17 Nov
 2012 21:38:52 -0800 (PST)
Received: by 10.43.115.73 with SMTP id fd9mr7668372icc.2.1353217132177;
        Sat, 17 Nov 2012 21:38:52 -0800 (PST)
Received: by 10.43.115.73 with SMTP id fd9mr7668371icc.2.1353217132148;
        Sat, 17 Nov 2012 21:38:52 -0800 (PST)
Return-Path: <clsdan...@gmail.com>
Received: from mail-ia0-f169.google.com (mail-ia0-f169.google.com [209.85.210.169])
        by gmr-mx.google.com with ESMTPS id us14si683968igb.3.2012.11.17.21.38.52
        (version=TLSv1/SSLv3 cipher=OTHER);
        Sat, 17 Nov 2012 21:38:52 -0800 (PST)
Received-SPF: pass (google.com: domain of clsdan...@gmail.com designates 209.85.210.169 as permitted sender) client-ip=209.85.210.169;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of clsdan...@gmail.com designates 209.85.210.169 as permitted sender) smtp.mail=clsdan...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-ia0-f169.google.com with SMTP id r4so3248944iaj.0
        for <pylons-discuss@googlegroups.com>; Sat, 17 Nov 2012 21:38:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=j+aSsN8WwTJnhFCuFdM3uooff2EtPCTUCIgWSPLcyzA=;
        b=RDeo98CV13IZWIDIjWY25G7RRfdxdIviPLnKXbpQx2JVy/AxeawUUnsSGkCGUGyrQ3
         CbHM8W/KKx6X2YrGFr45ehpV3UdovGYkyV1FdiVUq+GrCv2h1UgdJYzkrmWBLYpxuUTy
         dAY18dU9g95NmUs1k3jda2dLm5xx/euc+lrsK6BRmwjLsbySD+gcKp0uTYOk3AxRnGyV
         hq3BiyyWsNTgrlEFqCPhZZoTUDWJBeAHVHMaV4k+y1LuDQgCFWX8K9j0FLyTytaXS3qW
         l0zr8nkoGlhs8C7YB3dBzdz/qp1IDGkwtLklKabvDnJMzzzk+qDCEQt3lyvuXyGtF7OQ
         DOeQ==
MIME-Version: 1.0
Received: by 10.50.33.169 with SMTP id s9mr3559289igi.19.1353217131988; Sat,
 17 Nov 2012 21:38:51 -0800 (PST)
Received: by 10.42.231.212 with HTTP; Sat, 17 Nov 2012 21:38:51 -0800 (PST)
In-Reply-To: <004301cdc53a$e4a89180$adf9b4...@vvidiacom.com>
References: <4d86071a-cd3b-4e98-88d3-3930f1e50e05@googlegroups.com>
	<CAOSz_wgyrwj3scrYrcMyHE8ps-qXT1KR6hAQh4TzPoPWRoA...@mail.gmail.com>
	<1445075113-1353175498-cardhu_decombobulator_blackberry.rim.net-19076713...@b16.c8.bise7.blackberry>
	<A44F9A7A-3E18-4106-88E8-8C1B7916E...@doppelpop.de>
	<004301cdc53a$e4a89180$adf9b4...@vvidiacom.com>
Date: Sat, 17 Nov 2012 22:38:51 -0700
Message-ID: <CAEF3qbmYyyng=219cSpymx_RFsm3VUrKAVDY68wdZqVwN0V...@mail.gmail.com>
Subject: Re: " pylons + nginx " error 404 not found for all styles, scripts, images
From: Carlos Daniel Ruvalcaba Valenzuela <clsdan...@gmail.com>
To: pylons-discuss@googlegroups.com
Content-Type: multipart/alternative; boundary=f46d04462cb674c83504cebe6ace

--f46d04462cb674c83504cebe6ace
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

The answer is simple, your current setup is not serving any css, js or any
other static files, set nginx to serve your static files folder. For
example, add inside your server section:

location /static {
                alias /path/to/my/static/files;
                expires 1d;
}

On Sat, Nov 17, 2012 at 8:14 PM, Pinakee Biswas <pina...@vvidiacom.com>wrot=
e:

> Hi Andi,****
>
> ** **
>
> Thanks for the response.****
>
> ** **
>
> PFA the nginx configuration file.****
>
> ** **
>
> Please let us know if any other info would be needed.****
>
> ** **
>
> Looking forward to your response and help=85****
>
> ** **
>
> Thanks,****
>
> Pinakee****
>
> ** **
>
> ** **
>
> *From:* pylons-discuss@googlegroups.com [mailto:
> pylons-discuss@googlegroups.com] *On Behalf Of *Andi
> *Sent:* 17 November 2012 23:46
> *To:* pylons-discuss@googlegroups.com
> *Cc:* Andi Balke
>
> *Subject:* Re: " pylons + nginx " error 404 not found for all styles,
> scripts, images****
>
> ** **
>
> sorry, but your description is zero helpful. ****
>
> ** **
>
> if you can reproduce the problem locally set logging to debug and see the
> rewrites.****
>
> ** **
>
> or send the config :)****
>
> ** **
>
> andi
>
> (sent right out of my head)****
>
>
> On 17.11.2012, at 19:04, pina...@vvidiacom.com wrote:****
>
> Hi Leon,
>
> We are using paster with pylons.
> Nginx acts as a proxy (proxy pass and reverse proxy).
>
> The configuration file for nginx is as per the directives for reverse
> proxy.
>
> This has earlier worked with apache but now we are facing issues with
> nginx as mentioned in vijay's mail.
>
> Regards,
> Pinakee****
>
> Sent on my BlackBerry=AE from Vodafone****
> ------------------------------
>
> *From: *Le=F3n Domingo <leon.domi...@ender.es> ****
>
> *Sender: *pylons-discuss@googlegroups.com ****
>
> *Date: *Sat, 17 Nov 2012 15:52:11 +0100****
>
> *To: *<pylons-discuss@googlegroups.com>****
>
> *ReplyTo: *pylons-discuss@googlegroups.com ****
>
> *Subject: *Re: " pylons + nginx " error 404 not found for all styles,
> scripts, images****
>
> ** **
>
> Hi Vijay,
> Your NGINX configuration file will give us more information.
>
> How do you communicate nginx with pyramid? Gunicorn? That's my choice for
> deployment (NGINX+gunicorn)
>
> Regards,
> Le=F3n Domingo
>
> Ender - Factor=EDa de Software
> leon.domi...@ender.es <jestre...@ender.es>
> Avda. Cerro del =C1guila, 7. S23 - 2=AA Planta
> 28703 S.S. de los Reyes (MADRID)
> Tlf. 902 01 44 01
>
> <http://www.ender.es/>   <http://www.facebook.com/home.php?#%21/pages/San=
-Sebastian-de-los-Reyes-Spain/Ender-Factoria-de-Software/142213119143359?re=
f=3Dts>
>
> ****
>
> On 17 November 2012 14:00, vijay <vi...@vvidiacom.com> wrote:****
>
>
> Hello,
>
> I am changing my pylons application environment from apache to nginx.
>
> I am able to start the pylons with nginx, but while displaying page its
> not able to access any of the css, script, image files.
>
> If anyone knows why this is happening. It will be a great help for us.
>
>
> Thanks,
>
> Vijay****
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-discuss/-/vo9Jkj42QPMJ.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=3Den.****
>
> ** **
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=3Den.****
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=3Den.****
>
>  --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=3Den.
>

--f46d04462cb674c83504cebe6ace
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

The answer is simple, your current setup is not serving any css, js or any =
other static files, set nginx to serve your static files folder. For exampl=
e, add inside your server section:<div><br></div><div><div>location /static=
 {</div>
<div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 alias /path/to/my/static/files;</div><=
div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 expires 1d;</div><div>}</div><br><div c=
lass=3D"gmail_quote">On Sat, Nov 17, 2012 at 8:14 PM, Pinakee Biswas <span =
dir=3D"ltr">&lt;<a href=3D"mailto:pina...@vvidiacom.com" target=3D"_blank">=
pina...@vvidiacom.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div lang=3D"EN-IN" link=3D"blue" vlink=3D"p=
urple"><div><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-fam=
ily:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi Andi,<u></=
u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks for the respons=
e.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">PFA the nginx configur=
ation file.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Please let us know if =
any other info would be needed.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Looking forward to you=
r response and help=85<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks,<u></u><u></u><=
/span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d">Pinakee<u></u><u></u></sp=
an></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&=
quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u><=
/span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><div><div style=3D"border:none;border-top:solid #b5c4df 1.0pt;padding:3.=
0pt 0cm 0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:10.0pt;fo=
nt-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span =
lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,&qu=
ot;sans-serif&quot;"> <a href=3D"mailto:pylons-discuss@googlegroups.com" ta=
rget=3D"_blank">pylons-discuss@googlegroups.com</a> [mailto:<a href=3D"mail=
to:pylons-discuss@googlegroups.com" target=3D"_blank">pylons-discuss@google=
groups.com</a>] <b>On Behalf Of </b>Andi<br>
<b>Sent:</b> 17 November 2012 23:46<br><b>To:</b> <a href=3D"mailto:pylons-=
discuss@googlegroups.com" target=3D"_blank">pylons-discuss@googlegroups.com=
</a><br><b>Cc:</b> Andi Balke</span></p><div><div class=3D"h5"><br><b>Subje=
ct:</b> Re: &quot; pylons + nginx &quot; error 404 not found for all styles=
, scripts, images<u></u><u></u></div>
</div><p></p></div></div><div><div class=3D"h5"><p class=3D"MsoNormal"><u><=
/u>=A0<u></u></p><div><p class=3D"MsoNormal">sorry, but your description is=
 zero helpful.=A0<u></u><u></u></p></div><div><p class=3D"MsoNormal"><u></u=
>=A0<u></u></p>
</div><div><p class=3D"MsoNormal">if you can reproduce the problem locally =
set logging to debug and see the rewrites.<u></u><u></u></p></div><div><p c=
lass=3D"MsoNormal"><u></u>=A0<u></u></p></div><div><p class=3D"MsoNormal">o=
r send the config :)<u></u><u></u></p>
</div><div><p class=3D"MsoNormal"><u></u>=A0<u></u></p></div><div><p class=
=3D"MsoNormal">andi<br><br>(sent right out of my head)<u></u><u></u></p></d=
iv><div><p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><br>On 17.11.=
2012, at 19:04, <a href=3D"mailto:pina...@vvidiacom.com" target=3D"_blank">=
pina...@vvidiacom.com</a> wrote:<u></u><u></u></p>
</div><blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt"><div><p cl=
ass=3D"MsoNormal">Hi Leon,<br><br>We are using paster with pylons.<br>Nginx=
 acts as a proxy (proxy pass and reverse proxy).<br><br>The configuration f=
ile for nginx is as per the directives for reverse proxy.<br>
<br>This has earlier worked with apache but now we are facing issues with n=
ginx as mentioned in vijay&#39;s mail.<br><br>Regards,<br>Pinakee<u></u><u>=
</u></p><div><p class=3D"MsoNormal">Sent on my BlackBerry=AE from Vodafone<=
u></u><u></u></p>
</div><div class=3D"MsoNormal" align=3D"center" style=3D"text-align:center"=
><hr size=3D"2" width=3D"100%" align=3D"center"></div><div><p class=3D"MsoN=
ormal"><b>From: </b>Le=F3n Domingo &lt;<a href=3D"mailto:leon.domingo@ender=
.es" target=3D"_blank">leon.domi...@ender.es</a>&gt; <u></u><u></u></p>
</div><div><p class=3D"MsoNormal"><b>Sender: </b><a href=3D"mailto:pylons-d=
iscuss@googlegroups.com" target=3D"_blank">pylons-discuss@googlegroups.com<=
/a> <u></u><u></u></p></div><div><p class=3D"MsoNormal"><b>Date: </b>Sat, 1=
7 Nov 2012 15:52:11 +0100<u></u><u></u></p>
</div><div><p class=3D"MsoNormal"><b>To: </b>&lt;<a href=3D"mailto:pylons-d=
iscuss@googlegroups.com" target=3D"_blank">pylons-discuss@googlegroups.com<=
/a>&gt;<u></u><u></u></p></div><div><p class=3D"MsoNormal"><b>ReplyTo: </b>=
<a href=3D"mailto:pylons-discuss@googlegroups.com" target=3D"_blank">pylons=
-discuss@googlegroups.com</a> <u></u><u></u></p>
</div><div><p class=3D"MsoNormal"><b>Subject: </b>Re: &quot; pylons + nginx=
 &quot; error 404 not found for all styles, scripts, images<u></u><u></u></=
p></div><div><p class=3D"MsoNormal"><u></u>=A0<u></u></p></div><p class=3D"=
MsoNormal" style=3D"margin-bottom:12.0pt">
Hi Vijay,<br>Your NGINX configuration file will give us more information.<b=
r><br>How do you communicate nginx with pyramid? Gunicorn? That&#39;s my ch=
oice for deployment (NGINX+gunicorn)<br><br>Regards,<br>Le=F3n Domingo<br>
<br>Ender - Factor=EDa de Software<br><a href=3D"mailto:jestre...@ender.es"=
 target=3D"_blank">leon.domi...@ender.es</a><br>Avda. Cerro del =C1guila, 7=
. S23 - 2=AA Planta<br>28703 S.S. de los Reyes (MADRID)<br>Tlf. 902 01 44 0=
1<br><br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;"><a href=3D"http://www.ender.es/" target=3D"_blank"><span style=
=3D"text-decoration:none"><img border=3D"0"></span></a>=A0=A0=A0<a href=3D"=
http://www.facebook.com/home.php?#%21/pages/San-Sebastian-de-los-Reyes-Spai=
n/Ender-Factoria-de-Software/142213119143359?ref=3Dts" target=3D"_blank"><s=
pan style=3D"text-decoration:none"><img border=3D"0"></span></a></span><br>
<br><u></u><u></u></p><div><p class=3D"MsoNormal">On 17 November 2012 14:00=
, vijay &lt;<a href=3D"mailto:vi...@vvidiacom.com" target=3D"_blank">vijay@=
vvidiacom.com</a>&gt; wrote:<u></u><u></u></p><p class=3D"MsoNormal"><br>He=
llo,<br>
<br>I am changing my pylons application environment from apache to nginx.<b=
r><br>I am able to start the pylons with nginx, but while displaying page i=
ts not able to access any of the css, script, image files.<br><br>If anyone=
 knows why this is happening. It will be a great help for us.<br>
<br><br>Thanks,<br><br>Vijay<span><span style=3D"color:#888888"><u></u><u><=
/u></span></span></p><p class=3D"MsoNormal"><span><span style=3D"color:#888=
888">-- </span></span><span style=3D"color:#888888"><br><span>You received =
this message because you are subscribed to the Google Groups &quot;pylons-d=
iscuss&quot; group.</span><br>
<span>To view this discussion on the web visit <a href=3D"https://groups.go=
ogle.com/d/msg/pylons-discuss/-/vo9Jkj42QPMJ" target=3D"_blank">https://gro=
ups.google.com/d/msg/pylons-discuss/-/vo9Jkj42QPMJ</a>.</span><br><span>To =
post to this group, send email to <a href=3D"mailto:pylons-discuss@googlegr=
oups.com" target=3D"_blank">pylons-discuss@googlegroups.com</a>.</span><br>
<span>To unsubscribe from this group, send email to <a href=3D"mailto:pylon=
s-discuss%2Bunsubscribe@googlegroups.com" target=3D"_blank">pylons-discuss+=
unsubscribe@googlegroups.com</a>.</span><br><span>For more options, visit t=
his group at <a href=3D"http://groups.google.com/group/pylons-discuss?hl=3D=
en" target=3D"_blank">http://groups.google.com/group/pylons-discuss?hl=3Den=
</a>.</span></span><u></u><u></u></p>
</div><p class=3D"MsoNormal"><u></u>=A0<u></u></p><p class=3D"MsoNormal">--=
 <br>You received this message because you are subscribed to the Google Gro=
ups &quot;pylons-discuss&quot; group.<br>To post to this group, send email =
to <a href=3D"mailto:pylons-discuss@googlegroups.com" target=3D"_blank">pyl=
ons-discuss@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:pylons-disc=
uss+unsubscribe@googlegroups.com" target=3D"_blank">pylons-discuss+unsubscr=
ibe@googlegroups.com</a>.<br>For more options, visit this group at <a href=
=3D"http://groups.google.com/group/pylons-discuss?hl=3Den" target=3D"_blank=
">http://groups.google.com/group/pylons-discuss?hl=3Den</a>.<u></u><u></u><=
/p>
<p class=3D"MsoNormal">-- <br>You received this message because you are sub=
scribed to the Google Groups &quot;pylons-discuss&quot; group.<br>To post t=
o this group, send email to <a href=3D"mailto:pylons-disc...@googlegroups.c=
om" target=3D"_blank">pylons-discuss@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:pylons-disc=
uss+unsubscribe@googlegroups.com" target=3D"_blank">pylons-discuss+unsubscr=
ibe@googlegroups.com</a>.<br>For more options, visit this group at <a href=
=3D"http://groups.google.com/group/pylons-discuss?hl=3Den" target=3D"_blank=
">http://groups.google.com/group/pylons-discuss?hl=3Den</a>.<u></u><u></u><=
/p>
</div></blockquote></div></div></div></div><div class=3D"HOEnZb"><div class=
=3D"h5">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;pylons-discuss&quot; group.<br>
To post to this group, send email to <a href=3D"mailto:pylons-discuss@googl=
egroups.com" target=3D"_blank">pylons-discuss@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:pylons-disc=
uss%2Bunsubscribe@googlegroups.com" target=3D"_blank">pylons-discuss+unsubs=
cribe@googlegroups.com</a>.<br>

For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/pylons-discuss?hl=3Den" target=3D"_blank">http://groups.google.com/gro=
up/pylons-discuss?hl=3Den</a>.<br>


</div></div></blockquote></div><br></div>

--f46d04462cb674c83504cebe6ace--