I have a little problem. I have a wordpress installation in
/var/www/xyz/wordpress
and now I want to have a piwik installation in the path
/var/www/xyz/piwik
My current nginx configuration looks like this:
server {
...
root /var/www/xyz/wordpress;
index index.html index.php;
location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}
location /piwik/ {
root /var/www/xyz/piwik;
}
location ~ ^(.+?\.php)(/.*)?$ {
try_files $1 =404;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
Unfortunately, it does not work. Any ideas / tips to configure nginx?