Servers-for-Hackers / the-book

Servers for Hackers eBook Issues
63 stars 5 forks source link

Page 111: Apache with FastCGI (unix socket) #86

Closed ltanase77 closed 6 years ago

ltanase77 commented 6 years ago

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/"

fideloper commented 6 years ago

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

fideloper commented 6 years ago

Updated for next release