Expires Headers under https

Maxim Dounin mdounin at mdounin.ru
Fri Jun 8 16:39:49 UTC 2012


Hello!

On Fri, Jun 08, 2012 at 08:48:44AM -0700, Chris Irish wrote:

> Hey all,
>    I'm having a Nginx problem with my Rails app.  When I try setting
> Expires Headers for Static Assets in an https server block they 404.  I've
> tried a couple different ways but can't seem to get it to work.  Here a
> gist of what I've tried.  Any suggestions?
> 
> https://gist.github.com/2896294

Most likely you are hitting this "problem":

http://wiki.nginx.org/Pitfalls#Root_inside_Location_Block

Can't say for sure as you've "ommitted the non relevant config 
parts for clarity".

Maxim Dounin



More information about the nginx mailing list