Welcome! Log In Create A New Profile

Advanced

Re: "X-Accel-Redirect" and Wordpress MU solution

November 28, 2009 03:10AM
> you can configure the expires via
> http://wiki.nginx.org/NginxHttpHeadersModule#expires

I did it and it worked.

But then I moved following 3 lines above "X-Accel-Redirect" code block in wordpress' blogs.php

[code]@header( "Last-Modified: $last_modified GMT" );
@header( 'ETag: ' . $etag );
@header( 'Expires: ' . gmdate('D, d M Y H:i:s', time() + 100000000) . ' GMT' ); [/code]

and it worked too. I received following response.

[code]HTTP/1.1 200 OK
Server: nginx/0.7.62
Date: Sat, 28 Nov 2009 08:00:11 GMT
Content-Type: image/jpeg
Content-Length: 27429
[b]Last-Modified: Sun, 22 Nov 2009 20:58:54 GMT[/b]
Connection: keep-alive
[b]Expires: Mon, 28 Jan 2013 17:46:51 GMT[/b]
Accept-Ranges: bytes[/code]

[i](Note: "Last Modified" line was present before above change)[/i]

I also found this particular thread very useful - http://marc.info/?l=nginx&m=120127279110733&w=2
and based on that only change nginx needs in its core is to add "Etag" header in ignore-list of "X-Accel-Redirect" code.

I may be wrong as this is my 6th day (only) on nginx and I never gone this far with my X (Apache) ;-)

--
Rahul Bansal
EasyEngine - https://github.com/rtCamp/easyengine
Subject Author Posted

"X-Accel-Redirect" and Wordpress MU solution

rahul286 November 27, 2009 03:26AM

Re: "X-Accel-Redirect" and Wordpress MU solution

Igor Sysoev November 27, 2009 03:46AM

Re: "X-Accel-Redirect" and Wordpress MU solution

Jeff Waugh November 27, 2009 04:18AM

Re: "X-Accel-Redirect" and Wordpress MU solution

rahul286 November 27, 2009 01:05PM

Re: "X-Accel-Redirect" and Wordpress MU solution

Rob Schultz November 27, 2009 02:22PM

Re: "X-Accel-Redirect" and Wordpress MU solution

rahul286 November 28, 2009 03:10AM

Re: "X-Accel-Redirect" and Wordpress MU solution

rahul286 November 28, 2009 03:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready