Welcome! Log In Create A New Profile

Advanced

if (-f $request_filename) VS location ~* ^.+(css|gif|htm)

Fernando Perez
July 07, 2010 10:44AM
Hi,

Which is best between:

location / {
root /var/www/mysite;

if (-f $request_filename) {
break;
}
}

AND

location ~* ^.+(css|gif|html|jpeg|jpg|js|ogv|png|swf) {
root /var/www/mysite;
}
--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

if (-f $request_filename) VS location ~* ^.+(css|gif|htm)

Fernando Perez July 07, 2010 10:44AM

Re: if (-f $request_filename) VS location ~* ^.+(css|gif|htm)

Igor Sysoev July 07, 2010 10:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
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