Показать сообщение отдельно

  #16  
Старый 31.03.2009, 20:56
php_master
Новичок
Регистрация: 06.03.2010
Сообщений: 8
С нами: 8517442

Репутация: 5
По умолчанию

Цитата:

Можно пример конфига для spawn или fpm

Код:


Код:
user  nginx;
worker_processes  1;

error_log  /var/log/nginx/error.log debug;
#error_log  /var/log/nginx/error.log  notice;
#error_log  /var/log/nginx/error.log  info;

#pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '"$status" $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       80;
        server_name  wp;

        #charset koi8-r;

        #access_log  /var/log/nginx/host.access.log  main;

        location / {
            root   /srv/www/wp/htdocs/;
            index  index.html index.php;
        }

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /srv/www/htdocs/;
        }

	if (!-e $request_filename) {
		rewrite pages(.*)$ pages.php?$1 last;
		break;
	}

        location ~ \.php$ {
            root           html;
            fastcgi_pass   unix:/tmp/php-fpm.sock;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /srv/www/wp/htdocs/$fastcgi_script_name;
            include        fastcgi_params;
        }
    }
}
Цитата:

И еще как с виртуальными хостами дело?

Нормально.
 
Ответить с цитированием