Hey All, I am still rough around the edges with nginx, but I am getting better :-) I am trying to setup MediaWiki with Friendly URL's. I found this link on there site on how to do so with nginx: https://www.mediawiki.org/wiki/Manual:Short_URL/Page_title_-_nginx,_Root_Access,_PHP_as_a_CGI_module ... BUT you will note all of the IF's. Here is the code without needing to go to the link above:by qops1981 - How to...
ok, I tried this (below), But its still not working: location ^~ /(styles|js|cometchat)/.*\.(jpg|jpeg|gif|png|css|js|ico|xml)$ { access_log off; log_not_found off; expires 31d; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } location ~* \.(jpg|jpeg|gif|png|css|js|icby qops1981 - How to...
ok, so would this override the Location above? location ^~ /(styles|js|cometchat)/\.(jpg|jpeg|gif|png|css|js|ico|xml)$ { access_log off; log_not_found off; expires 31d; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; }by qops1981 - How to...
Hey All, I am new to the forums and have a question that I was not able to find an answer for via googling. I have some conditional expiration dates I would like to set up but I was hoping to avoid some complicated (IF) statement. I will just give the requirements. All jpg|jpeg|gif|png|css|js|ico|xml files should have an expiration of 2 days. All jpg|jpeg|gif|png|js in ^/styles/ & ^by qops1981 - How to...
![]() |
![]() |
![]() |
![]() |
|