I've got the set up working. BUT everytime I try to access the /install directory there appears to be a loop in Nginx .
I'm pasting my current config .
Does anyone have a suggestion/solution ?
Thanks
[quote]server {
listen 80;
server_name MyDomain.net www.MyDomain.net;
error_log /home/MyDomain/nginx/logs/MyDomain.net.error.log;
access_log /home/MyDomain/nginx/logs/MyDomain.net.access.log;
root /home/MyDomain/MyDomain.net;
index index.php index.html;
fastcgi_index index.php;
######################### general rewrite ###################################
# serve static files directly
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt|htm)$ {
access_log off;
expires 30d;
}
location / {
try_files $uri $uri/ @se;
}
location @se {
root /home/MyDomain/MyDomain.net;
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(/)(/.*)$;
fastcgi_param SCRIPT_FILENAME /home/MyDomain/MyDomain.net$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ~ ^/(.+)_(.+)/(.+)/$ {
fastcgi_pass 127.0.0.1:9000;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/MyDomain/MyDomain.net$fastcgi_script_name;
fastcgi_param SCRIPT_NAME /index.php;
fastcgi_param PATH_INFO /action1/$1/action2/$2/action3/$3;
}
location ~ index\.php {
root /home/MyDomain/MyDomain.net;
rewrite .* /index.php?rewrite=1 break;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/MyDomain/MyDomain.net$fastcgi_script_name;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT /home/MyDomain/MyDomain.net;
fastcgi_pass_request_body off;
client_body_in_file_only clean;
fastcgi_param REQUEST_BODY_FILE $request_body_file;
}
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/MyDomain/MyDomain.net$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
fastcgi_param DOCUMENT_ROOT /home/MyDomain/MyDomain.net;
fastcgi_pass_request_body off;
client_body_in_file_only clean;
fastcgi_param REQUEST_BODY_FILE $request_body_file;
}
location /install/ {
root /home/MyDomain/MyDomain.net/install;
index index.php;
if (!-e $request_filename) { rewrite ^(.*)$ /install/index.php?rewrite=1; }
}
if (!-e $request_filename) { rewrite ^(.*)$ /index.php?rewrite=1; }
}[/quote]