Welcome! Log In Create A New Profile

Advanced

Re: ssl accelerator

May 01, 2009 02:43AM
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/
Subject Author Posted

ssl accelerator

lovewadhwa April 29, 2009 10:08AM

Re: ssl accelerator

lovewadhwa April 30, 2009 07:26AM

Re: ssl accelerator

Igor Sysoev April 30, 2009 08:08AM

Re: ssl accelerator

Joe Bofh April 30, 2009 06:49PM

Re: ssl accelerator

Igor Sysoev May 01, 2009 01:46AM

Re: ssl accelerator

Joe Bofh May 01, 2009 02:38AM

Re: ssl accelerator

Igor Sysoev May 01, 2009 02:43AM

Re: ssl accelerator

Joe Bofh May 01, 2009 04:15AM

Re: ssl accelerator

Igor Sysoev May 01, 2009 04:36AM

Re: ssl accelerator

Joe Bofh May 01, 2009 04:13AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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