enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #03469
[Bug 1324828] [NEW] Unable to use unix socket in ProxyPassMatch directive
Public bug reported:
lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04
PHP-FPM listen on unix socket:
listen = /var/run/php5-fpm.sock
Apache configured to use unix socket in ProxyPassMatch directive
according to the apache wiki http://wiki.apache.org/httpd/PHP-FPM
ProxyPassMatch ^/(.*\.php(/.*)?)$
unix:/var/run/php5-fpm.sock|fcgi://127.0.0.1:9000/srv/www/
Apache synatx check failed:
apache2ctl -S
AH00526: Syntax error on line 17 of /etc/apache2/sites-enabled/000-default.conf:
ProxyPass URL must be absolute!
Action '-S' failed.
The Apache error log may have more information.
without unix socket:
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/srv/www/$1
apache2ctl -S
VirtualHost configuration:
*:80 default (/etc/apache2/sites-enabled/000-default.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex proxy: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
Same config works on Archlinux:
PHP-FPM listen on unix socket:
listen = /run/php-fpm/php-fpm.sock
httpd -V
Server version: Apache/2.4.9 (Unix)
Server built: Mar 16 2014 12:48:23
Apache configured to use unix socket in ProxyPassMatch directive
according to the apache wiki http://wiki.apache.org/httpd/PHP-FPM
ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/run/php-fpm/php-
fpm.sock|fcgi://127.0.0.1:9000/srv/http/
Apache syntax check:
httpd -S
VirtualHost configuration:
ServerRoot: "/etc/httpd"
Main DocumentRoot: "/srv/http"
Main ErrorLog: "/var/log/httpd/error_log"
Mutex proxy-balancer-shm: using_defaults
Mutex rewrite-map: using_defaults
Mutex proxy: using_defaults
Mutex default: dir="/run/httpd/" mechanism=default
PidFile: "/run/httpd/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="http" id=33 not_used
Group: name="http" id=33 not_used
Upstream bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=54101
** Affects: apache2 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to apache2 in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1324828
Title:
Unable to use unix socket in ProxyPassMatch directive
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1324828/+subscriptions
Follow ups
References