# Expires Headers under https

**URL:** <https://www.ruby-forum.com/t/expires-headers-under-https/220421>\
**Category:** NGINX\
**Created:** [June 8, 2012, 5:49pm UTC](https://www.ruby-forum.com/t/expires-headers-under-https/220421 "2012-06-08T17:49:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [June 8, 2012, 5:49pm UTC](https://www.ruby-forum.com/t/expires-headers-under-https/220421/1 "2012-06-08T17:49:09Z")

</div>

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](https://gist.github.com/2896294)

Much appreciated

–  
Chris I.  
Burst Software  
Rails Web D.

w: [www.christopherirish.com](http://www.christopherirish.com)  
[http://www.christopherirish.com](http://www.christopherirish.com)e: removed\_email\_address@domain.invalid  
c: 623-523-2221

---

<div class="post-metadata">

**Author:** ![isabull](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/f14d63/32.png) [@isabull](https://www.ruby-forum.com/u/isabull)\
**Post date:** [June 8, 2012, 6:40pm UTC](https://www.ruby-forum.com/t/expires-headers-under-https/220421/2 "2012-06-08T18:40:36Z")

</div>

Hello!

On Fri, Jun 08, 2012 at 08:48:44AM -0700, Chris I. 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](https://gist.github.com/2896294)

Most likely you are hitting this “problem”:

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

Can’t say for sure as you’ve “ommitted the non relevant config  
parts for clarity”.

Maxim D.
