Setting custom response headers

ehudros2 nginx-forum at
Tue Jun 16 12:07:18 MSD 2009

Hi every, I'm back :)
It seems I need the header to be set in a different format, and look like an expires date.
it currently gives:
User-Expires	Mon Apr 12 03:52:54 2010

When the desired outcome should be: 
Mon, 12 Apr 2010 03:52:54 GMT

Is there a way I can format the date to the expires date format? I'm guessing it should be done in the perl function you suggested, but I have no knowledge in perl and searching for perl date formatting just flooded me with information I did not know how to use :)

Posted at Nginx Forum:,2598,2942#msg-2942

More information about the nginx mailing list