| From | Sent On | Attachments |
|---|---|---|
| kalinski | Apr 5, 2011 8:51 am | |
| Paxxil | Apr 5, 2011 11:03 am | |
| kalinski | Apr 5, 2011 12:00 pm | |
| Francis Daly | Apr 5, 2011 1:16 pm | |
| kalinski | Apr 6, 2011 2:02 am |
| Subject: | domain.com/phpmyadmin/index.php how-to? | |
|---|---|---|
| From: | kalinski (ngin...@nginx.us) | |
| Date: | Apr 5, 2011 8:51:26 am | |
| List: | ru.sysoev.nginx | |
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
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,188514,188514#msg-188514
_______________________________________________ nginx mailing list ngi...@nginx.org http://nginx.org/mailman/listinfo/nginx





