[BlueOnyx:26633] Edit Nginx

Colin Jack colin at mainline.co.uk
Tue Dec 5 13:50:24 -05 2023


We are wanting to Expire Headers to web sites on one of our 5210R servers running Nginx.
Apparently this is done by editing the conf file for nginx but all the conf files say don’t do this! 😊

e.g.
You need to add the following code:
1
2
3
4
5
6
7
location ~* \.(jpg|jpeg|gif|png|svg)$ {
  expires 365d;
}

location ~* \.(pdf|css|html|js|swf)$ {
  expires 3d;
}

Is this possible on BX servers?
Maybe adding in /etc/nginx/conf?

Thanks

Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20231205/f3c25414/attachment.html>


More information about the Blueonyx mailing list