Welcome! Log In Create A New Profile


domain.com/phpmyadmin/index.php how-to?

April 05, 2011 11:52AM
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!
Subject Author Posted

domain.com/phpmyadmin/index.php how-to?

kalinski April 05, 2011 11:52AM

Re: domain.com/phpmyadmin/index.php how-to?

Paxxil April 05, 2011 02:03PM

Re: domain.com/phpmyadmin/index.php how-to?

kalinski April 05, 2011 03:01PM

Re: domain.com/phpmyadmin/index.php how-to?

Francis Daly April 05, 2011 04:18PM

Re: domain.com/phpmyadmin/index.php how-to?

kalinski April 06, 2011 05:02AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready