You are not logged in.
Hey,
I successfully hosted my blog with nginx and php-fpm. Now I want to setup the openid provider simpleid in /simpleid.
The problem is, that the simpleid installation is located in a different folder (the internal area which is accessible via a vpn domain).
Now php-fpm won't render the files located there. This could be a permission problem because /var/www/intern/simpleid belongs to a different user then /var/www/example.org (public blog).
server {
        server_name www.example.org example.org;
        access_log /var/log/nginx/example.org.access.log;
        error_log  /var/log/nginx/example.org.error.log info;
	root /var/www/example.org;
	index index.php;
	
	location ^~ /simpleid {
		root /var/www/intern/simpleid;
		index index.php index.html index.htm;
	}
	location ~ \.php$ {
		set $php_root /var/www/example.org;
		if ($request_uri ~ /simpleid) {
			set $php_root /var/www/indern/simpleid;
		}
		include fastcgi_params;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
		fastcgi_pass unix:/var/run/example.org_php.sock;
	
	}
        location  / {
		if (!-e $request_filename)
		{
			rewrite ^(.+)$ /index.php?q=$1 last;
		}
        }
}What is the best way to accomplish this?
Best regards and thanks in advance for any help,
Jonas 
Offline