> /usr/local/nginx/sbin/nginx -V
> nginx version: nginx/0.7.11
> built by gcc 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
> configure arguments: --conf-path=/etc/nginx/nginx.conf
> --http-log-path=/var/log/nginx/access_log
> --error-log-path=/var/log/nginx/error_log --pid-path=/var/run/nginx.pid
> --http-client-body-temp-path=/var/tmp/nginx/client
> --http-proxy-temp-path=/var/tmp/nginx/proxy
> --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --with-pcre=../pcre-7.7
> --with-zlib=../zlib-1.2.3 --without-select_module --without-http_ssi_module
> --without-http_userid_module --without-http_auth_basic_module
> --without-http_geo_module --without-http_map_module
> --without-http_referer_module --without-http_memcached_module
> --without-http_empty_gif_module --without-http_browser_module
> --without-http_upstream_ip_hash_module --without-mail_pop3_module
> --without-mail_imap_module --without-mail_smtp_module
> --with-http_stub_status_module
>
>
> Конфиг:
>
> server {
> listen 80;
> server_name
mysql.domain.ru;
> set $srv_root /var/www/phpMyAdmin;
>
> root $srv_root;
>
> location / {
> index index.html index.php;
> }
>
> location ~* \.php$ {
> fastcgi_pass unix:/var/run/php.sock;
> fastcgi_index index.php;
> fastcgi_connect_timeout 30;
> fastcgi_send_timeout 300;
>
> fastcgi_read_timeout 300;
> fastcgi_buffer_size 32k;
> fastcgi_buffers 4 32k;
> fastcgi_busy_buffers_size 32k;
> fastcgi_store on;
> fastcgi_store_access user:rw group:rw all:r;
>
> fastcgi_temp_file_write_size 32k;
>
> fastcgi_intercept_errors on;
>
> fastcgi_param DOCUMENT_ROOT $srv_root/;
> fastcgi_param SCRIPT_FILENAME $srv_root$fastcgi_script_name;
> fastcgi_param PATH_TRANSLATED $srv_root$fastcgi_script_name;
> fastcgi_param SCRIPT_NAME $fastcgi_script_name;
> fastcgi_param QUERY_STRING $query_string;
> fastcgi_param REDIRECT_STATUS 200;
>
> fastcgi_param CONTENT_TYPE $content_type;
> fastcgi_param CONTENT_LENGTH $content_length;
>
> fastcgi_param SERVER_ADDR $server_addr;
> fastcgi_param SERVER_PORT $server_port;
> fastcgi_param SERVER_PROTOCOL $server_protocol;
> fastcgi_param SERVER_SOFTWARE "nginx";
> fastcgi_param GATEWAY_INTERFACE "CGI/1.1";
> fastcgi_param SERVER_NAME $server_name;
> fastcgi_param REQUEST_URI $request_uri;
> fastcgi_param REQUEST_METHOD $request_method;
> fastcgi_param REMOTE_USER $remote_user;
> fastcgi_param REMOTE_ADDR $remote_addr;
> fastcgi_param REMOTE_PORT $remote_port;
> }
>
> location ~*
> ^.+.(zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|mp3|wmv|avi|swf)$
> {
> root $srv_root/;
> expires 30d;
> }
> }