####CONFIG
server {
root /home/www/shumsky.org.ua;
listen 80;
server_name shumsky.org.ua;
location / {
index index.html index.htm index.php;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
root /home/www/shumsky.org.ua;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $document_root;
include fastcgi_params;
}
}
###SCRIPT
<?php
echo getcwd();
echo '<BR>';
echo $_SERVER["DOCUMENT_ROOT"];
?>
###SCRIPT OUTPUT
/home/www/shumsky.org.ua/system
/home/www/shumsky.org.ua
что я делаю не так?