Thank you again for your quick answer. Igor Sysoev Wrote: ------------------------------------------------------- > 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 >by panni - Nginx Mailing List - English
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? location / { root /home/www; try_files $uri "/www/html$uri" @ksphp;by panni - Nginx Mailing List - English
Sorry, forgot to add that Zend Framework is used here, so any dynamic request would pass "if (!-e $request_filename) {" because it's ending with "/".by panni - Nginx Mailing List - English
Dear forums/mailing list, just a quick question: location / { root /home/folder/www; index index.php; #if (!-e $request_filename) { if ($request_filename !~* ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf)$) { #rewrite ^(.*)$ /index.php?q=$1 last;by panni - Nginx Mailing List - English