nginx configuration needed for:
there is a script ([login to view URL]) located on server root.
access to this script should be possible via http://host/name/options
where options have to passed to [login to view URL] then.
problem now is, that when accessing http://host/name, it works,
but when accessing http://host/name/options, it downloads php file
instead of processing it
server {
listen 80;
server_name [login to view URL];
root /var/www/default;
index [login to view URL];
location /name {
try_files $uri $uri/ /[login to view URL] /[login to view URL] /[login to view URL];
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/[login to view URL];
fastcgi_index [login to view URL];
include fastcgi_params;
}
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
access_log off;
log_not_found off;
expires max;
}
}