Welcome! Log In Create A New Profile

Advanced

Correct way to serve static files ?

October 19, 2009 01:11PM
I've been looking over lots of nginx configurations and the way to serve static files differed slightly, so which is the correct way as i've seen the following syntax

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

vs

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

what's the difference between the 2 ?

thanks

George
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: 75
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