ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx É ssl



éÄÅÑ ÐÏÎÑÔÎÁ. á ÞÅÍ ÐÌÏÈÁ ÉÈ ËÏÎÆÉÇÕÒÁÃÉÑ? ÐÏÔÅÒÅÊ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔÉ?

2010/11/11 Igor Sysoev <igor@xxxxxxxxx>
On Thu, Nov 11, 2010 at 07:35:16PM +0200, greenh wrote:

> 2010/11/11 Igor Sysoev <igor@xxxxxxxxx>
>
> > 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;
> >
> > ï õöáó!!!
>
> šóÔÁÎÄÁÒÔÎÁÑ ÒÅËÏÍÅÎÄÁÃÉÑ ÄÌÑ symfony. ÷ÚÑÔÁ ÉÚ ÉÈ ÄÏËÉ. Symfony ÔÁÍ ÕÖÅ
> ÎÅÔ, ËÏÎÆÉÇ ÏÓÔÁÌÓÑ, Ñ ÐÒÉ×ÅÌ É ÜÔÏÔ ËÕÓÏË ÔÏÌØËÏ ÄÌÑ ÐÏÌÎÏÔÙ ËÁÒÔÉÎÙ.
> ëÓÔÁ, ÏÂßÑÓÎÉÔÅ ÐÌÚ, ÐÏÞÅÍÕ ÕÖÁÓ?

ë ÓÏÖÁÌÅÎÉÀ, ×ÓÅ ÜÔÉ ÒÅËÏÍÅÎÄÁÃÉÉ ÐÉÛÕÔÓÑ ÌÀÄØÍÉ Ó htaccess-ÍÏÚÇÁÍÉ -
ÏÎÉ ÎÅ ÐÏÎÉÍÁÀÔ, ËÁË ÍÏÖÎÏ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÂÅÚ rewrite rule'×:
ËÏÇÄÁ × ÒÕËÁÈ ÍÏÌÏÔÏË, ×Ó£ ×ÏËÒÕÇ ËÁÖÅÔÓÑ Ç×ÏÚÄÑÍÉ.

location / {
š š šfastcgi_pass š unix:/home/site/run/fastcgi.sock;
š š šfastcgi_param šSCRIPT_FILENAME
š š š š š š š š š š /home/site/client.site.ru/web/index.php;
š š šfastcgi_param šPHPRC "/home/site/php";
š š šinclude fastcgi_params;
}

location /backend.php/ {
š š šfastcgi_pass š unix:/home/site/run/fastcgi.sock;
š š šfastcgi_param šSCRIPT_FILENAME
š š š š š š š š š š /home/site/client.site.ru/web/backend.php;
š š šfastcgi_param šPHPRC "/home/site/php";
š š šinclude fastcgi_params;
}

location /backend_dev.php/ {
š š šfastcgi_pass š unix:/home/site/run/fastcgi.sock;
š š šfastcgi_param šSCRIPT_FILENAME
š š š š š š š š š š /home/site/client.site.ru/web/backend_dev.php;
š š šfastcgi_param šPHPRC "/home/site/php";
š š šinclude fastcgi_params;
}

location /frontend_dev.php/ {
š š šfastcgi_pass š unix:/home/site/run/fastcgi.sock;
š š šfastcgi_param šSCRIPT_FILENAME
š š š š š š š š š š /home/site/client.site.ru/web/frontend_dev.php;
š š šfastcgi_param šPHPRC "/home/site/php";
š š šinclude fastcgi_params;
}

> > > š š š š }
> > >
> > > 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;}
> > > }
> >
> >
> >

> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru


--
éÇÏÒØ óÙÓÏÅ×
http://sysoev.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.