0 Members and 1 Guest are viewing this topic.
### MR -- just enough remove # below for enable nginx cache #fastcgi_cache fcache; fastcgi_cache_valid 200 1h; fastcgi_cache_valid 301 1h; fastcgi_cache_valid 302 1h; fastcgi_cache_valid any 1m; ## MR - increasing upload size to 64M (declare inside 'location /' not work client_max_body_size 64M; client_body_buffer_size 128k; fastcgi_connect_timeout 180s; fastcgi_send_timeout 180s; fastcgi_read_timeout 180s; fastcgi_buffer_size 128k; fastcgi_buffers 8 128k; ### MR -- must be using nginx with including ngx_purge_cache ### must be using special nginx (nginx with ngx_purge_cache include location ~ /purge(/.*) { ### MR -- just enough remove # below for enable purge_cache #proxy_cache_purge pcache "$scheme://$host$1$request_method"; allow 127.0.0.1; deny all; } ### MR -- for userdir (access with http://ip/~user location ~ ^/~([^/]+)/(.+.php)$ { if (!-f /home/$1/public_html/$2) { rewrite ^ 404; } alias '/home/$1/public_html/$2'; #fastcgi_pass 127.0.0.1:$fpmport; fastcgi_pass unix:/home/php-fpm/sock/$user.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } ### MR -- for userdir (access with http://ip/~user location ~ ^/~(.+?)(/.*)?$ { alias '/home/$1/public_html$2'; autoindex on; } location ~ .php$ { #include fastcgi_params; #fastcgi_pass 127.0.0.1:$fpmport; fastcgi_pass unix:/home/php-fpm/sock/$user.sock; fastcgi_index index.php; fastcgi_param REDIRECT_STATUS 200; fastcgi_split_path_info ^(.+.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $rootdir$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; fastcgi_param PHP_ADMIN_VALUE 'sendmail_path=/usr/sbin/sendmail -t -i'; fastcgi_param PHP_ADMIN_VALUE 'sendmail_from=$domain'; } location / { limit_conn addr 25; try_files $uri $uri/ /index.php; }
I'm getting same 502 gateway error. A. Kloxo-MR: 6.5.0.f-2014020301B. OS: CentOS release 6.5 (Final) x86_64C. Apps: 1. MySQL: mysql-5.5.34-1.el6.x86_64 2. PHP: --uninstalled-- 3. Httpd: --uninstalled-- 4. Lighttpd: --uninstalled-- 5. Nginx: nginx-1.5.10-2.el6.x86_64 6. Qmail: qmail-toaster-1.03-1.3.35.mr.el6.x86_64 - with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64 7. Dns: bind-9.9.5-1.el6.x86_64D. Php-type (for Httpd/proxy): mod_php_ruid2E. Memory: total used free shared buffers cached Mem: 4096 371 3724 0 0 171 -/+ buffers/cache: 199 3896 Swap: 1024 0 1024Quote from: befree22 on 2014-03-05, 15:04:15I'm getting same 502 gateway error. A. Kloxo-MR: 6.5.0.f-2014020301B. OS: CentOS release 6.5 (Final) x86_64C. Apps: 1. MySQL: mysql-5.5.34-1.el6.x86_64 2. PHP: --uninstalled-- 3. Httpd: --uninstalled-- 4. Lighttpd: --uninstalled-- 5. Nginx: nginx-1.5.10-2.el6.x86_64 6. Qmail: qmail-toaster-1.03-1.3.35.mr.el6.x86_64 - with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64 7. Dns: bind-9.9.5-1.el6.x86_64D. Php-type (for Httpd/proxy): mod_php_ruid2E. Memory: total used free shared buffers cached Mem: 4096 371 3724 0 0 171 -/+ buffers/cache: 199 3896 Swap: 1024 0 1024If using nginx or lighttpd or hiawatha (exist in 6.5.1) alone (that mean not their proxy), try switch to apache first and then change php-type to php-fpm_worker/_event. After that, you can change back to nginx.It's because Kloxo-MR confuse about related to php. You see in sysinfo, Kloxo-MR not inform your php version.That it.
I'm getting same 502 gateway error. A. Kloxo-MR: 6.5.0.f-2014020301B. OS: CentOS release 6.5 (Final) x86_64C. Apps: 1. MySQL: mysql-5.5.34-1.el6.x86_64 2. PHP: --uninstalled-- 3. Httpd: --uninstalled-- 4. Lighttpd: --uninstalled-- 5. Nginx: nginx-1.5.10-2.el6.x86_64 6. Qmail: qmail-toaster-1.03-1.3.35.mr.el6.x86_64 - with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64 7. Dns: bind-9.9.5-1.el6.x86_64D. Php-type (for Httpd/proxy): mod_php_ruid2E. Memory: total used free shared buffers cached Mem: 4096 371 3724 0 0 171 -/+ buffers/cache: 199 3896 Swap: 1024 0 1024
Page created in 0.083 seconds with 22 queries.