view modules/website/files/php.conf @ 427:3744cd0807cb

Move PHP socket to /run/ My assumptions in f354100b688a were wrong and CentOS _will_ sometimes clean up /run, so we can't use sub-directories and altering the script is too much trouble when it assumes the dir will exist because its default one is packaged in the RPM
author IBBoard <dev@ibboard.co.uk>
date Sat, 15 Oct 2022 15:38:08 +0100
parents 731107a67700
children 83fbddb56de1
line wrap: on
line source

#
# The following lines prevent .user.ini files from being viewed by Web clients.
#
<Files ".user.ini">
	Require all denied
</Files>
<Proxy "fcgi://localhost/" enablereuse=on max=50 smax=25 ttl=60>
</Proxy>
<FilesMatch "\.php$">
	# Don't wrap in an <IfModule> because we'd rather it failed
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule . /error.php [L]

	SetHandler "proxy:unix:/run/php-fpm.sock|fcgi://localhost/"
</FilesMatch>