Alias which works like in other web servers
Ezra Zygmuntowicz
ezmobius at gmail.com
Sun Aug 5 01:18:44 MSD 2007
On Aug 4, 2007, at 2:04 PM, marc at corky.net wrote:
> I already had this working like this. But unfortunately every
> single request, for any file (jpg, swf...etc) gets passed to
> fastcgi, too...
>
>
Try adding this conditional to each location block *above* the
fastcgipass stuff:
location / {
root /var/www/site;
if (-f $request_filename) {
break;
}
fastcgi_pass ...
fastcgi_index index.php;
fastcgi_param SCRIPT_NAME $document_root
$fastcgi_script_name;
...
}
Cheers-
-- Ezra Zygmuntowicz
-- Founder & Ruby Hacker
-- ez at engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)
More information about the nginx
mailing list