try_files only seems to hit when a root directive is set in the config.
try_files only works on /home/www$uri files, not on /www/html$uri
files.
Is this intended? How can I make it work when a file called
/www/html/asdf.php is requested by /asdf.php?
On Thu, Jul 29, 2010 at 07:44:54PM -0400, panni wrote:
Hey, thank you for your answer.
try_files only seems to hit when a root directive is set in the config.
try_files only works on /home/www$uri files, not on /www/html$uri
files.
Is this intended? How can I make it work when a file called
/www/html/asdf.php is requested by /asdf.php?
Is this intended? How can I make it work when a
fastcgi_pass …
fastcgi_param SCRIPT_FILENAME
/www/html$uri;
…
}
Is try_files over three possible locations that slow or why are you
suggesting the directive for the literal string?
index index.php;
expires 30d;
}
location ~* .(js|css)$ {
return 404;
}
Thank you. But why would you do this rather than an if clause? If its
faster, or my way a no-go, do you have some sort of compendium of do’s
and don’ts in NGINX?