Servers-for-Hackers/the-book

Page 111: Apache with FastCGI (unix socket)

Closed this issue · 2 comments

Hi,
Chapter: Webservers
Section: Apache - Apache and Web Application - Apache with FastCGI (page 111 of pdf version)

When explaining using FilesMatch Handler with Unix socket, the line:
SetHandler "proxy:unix:/var/run/php5-fpm.sock|fcgi:"
is missing at the end //localhost/ as per Apache documentation https://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html.

I have tried using the line in the book but gives a file not found error. It worked fine once I have added the //localhost/ at the end of the line, as follows: SetHandler "proxy:unix:/var/run/php5-fpm.sock|fcgi://localhost/"

Thanks, I'll get that updated! I wonder if that's something I missed in the update to Apache 2.4.

Updated for next release