ssl accelerator

Igor Sysoev is at rambler-co.ru
Fri May 1 10:43:51 MSD 2009


On Fri, May 01, 2009 at 08:38:25AM +0200, Joe Bofh wrote:

> Hmm, that's kinda hard to do with this block.
> 
>     location / {
>       root /var/www/crm;
>       access_log off;
> 
>       index index.php index.html;
>       fastcgi_param  SCRIPT_FILENAME  /var/www/crm/index.php;
> 
>       if (-f $request_filename) {
>         expires 1d;
>         break;
>       }
> 
>       try_files $uri $uri/ /index.php?q=$uri;
>     }
> 
> 
> I don't see a way to take out the if block which should serve with 
> specific conditions if the file exists.

     location / {
       root /var/www/crm;
       access_log off;
 
       index index.php index.html;
       expires 1d;
 
       try_files $uri $uri/ /index.php?q=$uri;
     }

     location ~ \.php$ {
       access_log off;
 
       fastcgi_param  SCRIPT_FILENAME  /var/www/crm/index.php;
       fastcgi_pass   ...
     }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list