httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54101] New: Socket backend support for mod_proxy
Date Mon, 05 Nov 2012 16:10:23 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54101

          Priority: P2
            Bug ID: 54101
          Assignee: bugs@httpd.apache.org
           Summary: Socket backend support for mod_proxy
          Severity: enhancement
    Classification: Unclassified
                OS: Linux
          Reporter: framelio@gmail.com
          Hardware: All
            Status: NEW
           Version: 2.4.3
         Component: mod_proxy
           Product: Apache httpd-2

Created attachment 29549
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29549&action=edit
Patch for socket support on mod_proxy

Currently mod_proxy and mod_proxy_fcgi doesn't support for a UNIX socket
backend.

Speaking about FCGI protocol and PHP, generally many PHP-FPM server
configurations are using a socket backend instead of the standard TCP
connection.

NGINXx supports it and the mod_fastcgi too with the config:
FastCgiExternalServer /cgi-bin/php-path -socket /path/to/socket/php-fpm.sock

A proposed patch and solution can be found here:
http://www.gossamer-threads.com/lists/apache/dev/416627

The example config format proposed is the following:

ProxyPass fcgi://socket=%2ftmp%2fphp-fpm.sock/local/htdocs/ 

I tested the patch on the version 2.4.3 and it works, even if the patch file
should be slightly adapted to the latest changed in the Apache HTTPD code.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message