FastCGI problem
Yordan Georgiev
y.georgiev at gmail.com
Thu Mar 20 02:01:25 MSK 2008
user web;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
if ($host ~* "([^\/]+)\.([^\.\/]+\.[^\.\/]+)" ) {
set $prefix /$2/$1/root;
rewrite (.*) $prefix$1;
}
location / {
root /www;
index index.php;
}
location ~ .php$ {
root /www;
fastcgi_pass unix:/tmp/cgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www$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;
}
}
}
http://slut.gigavolt-bg.net/index.php -> ok
http://slut.gigavolt-bg.net/ -> http://slut.gigavolt-bg.net/
--
Please excuse my bad english...
С уважение,
Й. Георгиев.
WEB: http://gigavolt-bg.net/
Blog: http://live.gigavolt-bg.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080320/726ae0ff/attachment.html>
More information about the nginx
mailing list