October 30, 2011 06:29AM
Как в trac запостить баг не разобрался, не нашол обещаного логина и ссылочки для создания тикита. Поэтому пишу сюда.

Такой баг: параметры определеные в fastcgi_param PHP_VALUE для одного виртуального сервера влияют на парамтеры PHP во всех остальных виртульных серверах. Притом могут меняться на значения по умолчанию (в php.ini) от рандома. Проверяется по рефрешу странички с кодом <?php echo phponfo() ?>. В ней смотрим на параметр session.gc_divisor (т.к. его лече найти, и иза него наибольший напряг, т.к. вследствии этого сбрасывается сесия и юзера вылогинивает, ОЧЕНЬ напрягает).



конфиг вирт. сервера с определеным PHP_VALUE.
server {
listen 80;
listen 443;
server_name roundcube.ejoom.com www.mail.ejoom.com mail.ejoom.com email.ejoom.com;
access_log /var/log/nginx/roundcube.log;
root /var/lib/roundcube;

ssl on;
ssl_certificate cert.pem;
ssl_certificate_key cert.key;

ssl_session_timeout 40m;

ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLV2:+EXP;
ssl_prefer_server_ciphers on;

# if (!-e $request_filename) {
# rewrite (.*) /index.php?/$1 last;
# }
location = /favicon.ico {
rewrite ^ /skins/default/images/favicon.ico last;
}

location /program/js/tiny_mce/ {
alias /usr/share/tinymce/www/;
}
location ~ ^(/config)|(/temp)|(/logs)(/.*)?$ {
deny all;
}

# enforce NO www
if ($host ~* ^www\.(.*)) {
set $host_without_www $1;
rewrite ^/(.*)$ $scheme://$host_without_www/$1 permanent;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param PHP_VALUE "
upload_max_filesize=5M
post_max_size=6M
memory_limit=64M

zlib.output_compression=Off
zend.ze1_compatibility_mode=Off
magic_quotes_gpc=Off
magic_quotes_runtime=Off
suhosin.session.encrypt=Off

session.auto_start=0
session.gc_maxlifetime=21600
session.gc_divisor=500
session.gc_probability=1
mbstring.func_overload=0
";
}

location ~ /\.ht {
deny all;
}
}

nginx: nginx version: nginx/1.0.8
nginx: TLS SNI support enabled
nginx: configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.0.8/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.0.8/debian/modules/nginx-upstream-fair

Linux ejoom.com 2.6.35-23-generic-pae #41~lucid1-Ubuntu SMP Thu Dec 2 23:51:29 UTC 2010 i686 GNU/Linux

Ну конечно форматирование в файле читабельнее. Жаль прикрепить нельзя (.
Определение в другом витр. серв. PHP_VALUE = "" ничего не миняет.
Subject Author Posted

[Bug] Параметр fastcgi_param PHP_VALUE влияет на остальные сервера

vnagara October 30, 2011 06:29AM

Re: [Bug] Параметр fastcgi_param PHP_VALUE влияет на остальные сервера

vnagara November 01, 2011 12:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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