Welcome! Log In Create A New Profile

Advanced

Re: nginx и ssl

November 11, 2010 12:20PM
On Thu, Nov 11, 2010 at 07:15:03PM +0200, greenh wrote:

> Всем привет.
> Подскажите плз, в какую сторону смотреть.
> Увидел у себя в логах сегодня множество вот таких строк:
>
> 2010/11/10 15:02:10 [crit] 93670#0: ngx_slab_alloc() failed: no memory in
> SSL session shared cache "SSL"
>
> вот конфиг
>
> server {
> listen 1.2.3.4:443;
> ssl on;
> ssl_protocols SSLv3 TLSv1;
> ssl_prefer_server_ciphers on;
> ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5;
> ssl_certificate /usr/local/etc/apache22/server.crt;
> ssl_certificate_key /usr/local/etc/apache22/server.key;
> ssl_session_cache shared:SSL:10m;

Увеличить ssl_session_cache, например, 30m.

> ssl_session_timeout 10m;
> server_name client.site.ru;
> root /home/site/client.site.ru;
> error_log /home/site/logs/client.site.ru-error_log info;
>
> location /stat
> {
> return 404;
> }
>
> location / {
> root /home/site/client.site.ru/web;
> index index.htm index.php index.html;
> rewrite ^/backend.php/(.*)$ /backend.php last;
> rewrite ^/backend_dev.php/(.*)$ /backend_dev.php last;
> rewrite ^/frontend_dev.php/(.*)$ /frontend_dev.php last;
> rewrite ^(.*)$ /index.php last;

О УЖАС!!!

> }
>
> location ~ .php$ {fastcgi_pass unix:/home/site/run/fastcgi.sock;
> fastcgi_index index.php;
> fastcgi_param PHPRC "/home/site/php";
> fastcgi_param SCRIPT_FILENAME /home/site/
> client.site.ru/web$fastcgi_script_name;
> include fastcgi_params;
> source_charset utf-8;
> charset utf-8;
> }
> location ~* ^.+\.(jpg|gif|ico|js|css|swf|png)$ {root /home/site/
> client.site.ru/web;}
> location ~ /\.ht {deny all;}
> location ~ /\.sv {deny all;}
> }


--
Игорь Сысоев
http://sysoev.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx и ssl

greenh November 11, 2010 12:16PM

Re: nginx и ssl

Igor Sysoev November 11, 2010 12:20PM

Re: nginx и ssl

greenh November 11, 2010 12:44PM

Re: nginx и ssl

Igor Sysoev November 11, 2010 01:00PM

Re: nginx и ssl

greenh November 11, 2010 01:32PM

Re: nginx и ssl

Igor Sysoev November 11, 2010 11:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready