uh, fastcgi problem on $document_root$fastcgi_script_name; one root for abc ,one root for blog Maxim Dounin,thanks for your help.by lnxa - Nginx Mailing List - English
server { listen 80; server_name www.abc.com; #root /data0/www/abc; #index index.htm index.html index.php; location / { root /data0/www/abc; index index.htm index.html index.php; } location /blog/ { alias /data0/www/blog/; } #php fastcgi location ~ \.php$ { root /data0/www/abc; fastcgi_pass 127.0.0.1:by lnxa - Nginx Mailing List - English
fastcgi.conf fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 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; fby lnxa - Nginx Mailing List - English
this configure can't visit www.abc.com/blog/index.php error 404 but can visit www.abc.com/blog/info.txt I don't know how to do? please tell me! thanks. server { listen 80; server_name www.abc.com; root /data0/www/abc; index index.htm index.html index.php; location /blog/ { root /data0/www; } #php fastcgi location ~ .*\.php?$ {by lnxa - Nginx Mailing List - English
It is great! thanks! why if($host!='www.abc.com') not work?by lnxa - Nginx Mailing List - English
if($host!='www.abc.com'){ rewrite ^/(.*)$ http://www.abc.com/$1 permanent; } why has this error : unknown directive "if($host!='www.abc.com')" in /etc/nginx/nginx.conf:110 configuration file /etc/nginx/nginx.conf test failedby lnxa - Nginx Mailing List - English
reload display error : unknown directive "if($host=="atans.cn")" in /etc/nginx/nginx.conf:110 configuration file /etc/nginx/nginx.conf test failedby lnxa - Nginx Mailing List - English
abc.com/nginx.text rewrite www.abc.com/nginx.text service_name abc.com www.atans.com if ($host = 'abc.com' ) { rewrite ^/(.*)$ http://www.abc.com/$1 permanent; } Is this rewrite rule right?by lnxa - Nginx Mailing List - English
<?xml version="1.0" ?> <configuration> All relative paths in this config are relative to php's install prefix <section name="global_options"> Pid file <value name="pid_file">/var/run/php-fpm.pid</value> Error log file <value name="error_log">/var/log/php-fpm.log</value> Log level &lby lnxa - Php-fpm Mailing List - English
my vps server is 128 ram only! mike! max_requests, max_children how to set?by lnxa - Php-fpm Mailing List - English
# ulimit -n 1024 if php-fpm.conf set <value name="rlimit_files">4096</value> ,php-fpm.log will display error fpm_unix_init_child(), line 168: setrlimit(RLIMIT_NOFILE) failed: Invalid argument (22)" #vi /etc/security/limits.conf add * soft nofile 4096 * hard nofile 4096 # vi /etc/sysctl.conf add fs.file-max=4096 reboot will bby lnxa - Php-fpm Mailing List - English
<value name="max_requests">102400</value> <value name="max_children">5</value> thanksby lnxa - Php-fpm Mailing List - English
centos 5.3 nginx-0.8.31-1.el5 php-fpm-5.2.11 # /etc/init.d/php-fpm start php-fpm.log messages Jan 08 10:55:22.912284 fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024 Jan 08 10:55:22.913126 fpm_event_init_main(), line 88: libevent: using epoll Jan 08 10:55:22.913404 fpm_init(), line 50: fpm is running, pid 2730 Jan 08 10:55:22.918493 fpm_children_make(), liby lnxa - Php-fpm Mailing List - English