Welcome! Log In Create A New Profile

Advanced

Re: Correct way to serve static files ?

October 20, 2009 09:18AM
On Mon, Oct 19, 2009 at 07:12:14PM -0400, George wrote:

> thanks Daniel much appreciated :)
>
> I had my configs with first line so guess it was a lucky copy and paste. But i've seen a handful of configs online exactly like the second line hmmm.

Current PCRE library handles equally these regexes

location ~* \.(jpg|jpeg|gif|css|png|js|ico)$ {

and

location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico)$ {

It parses a line from its start, but not from '$' anchor.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Correct way to serve static files ?

George October 19, 2009 01:11PM

Re: Correct way to serve static files ?

Daniel Dourvaris October 19, 2009 04:04PM

Re: Correct way to serve static files ?

George October 19, 2009 07:12PM

Re: Correct way to serve static files ?

Igor Sysoev October 20, 2009 09:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready