Hallo Everybody,
I have a working default config,
catching /index.html and /index.php fine
(incl. passing php request to an upstream backend runing php-fpm)
now i want the server to serve requests to 'anydomain.com/phpmyadmin/index.php'
or even just 'anydomain.com/phpmyadmin/'
from /usr/share/phpmyadmin
for static content this should be easy with something like this:
location /phpmyadmin/ {
alias /usr/share/phpmyadmin/;
}
and for php?
i tried with a regular expression:
location ~ ^/phpmyadmin/(.*)(\.php)$ {
#fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php_fpm_backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin/$fastcgi_script_name;
include fastcgi_params;
...
}
without success...
it seems as if the static location block catches all and presents the raw php source to me now...
while i thought that my regex which should match requests to domain.com/phpmyadmin/index.php exactly
what would be the best practice to serve stuff like this? alias? rewrites? regex? try files?
thanks a lot for any help!
mart