view modules/website/files/php.conf @ 400:f354100b688a

Switch to Ubuntu-standard PHP FPM socket dir Ubuntu puts /tmp and /run on tmpfs, which gets wiped each reboot. While these directories *can* be nuked, they aren't on other platforms. Using the old paths, Puppet had to recreate the directory each boot. Using the new paths, Ubuntu handles creation within the systemd config. CentOS should just create once, migrate and work.
author IBBoard <dev@ibboard.co.uk>
date Wed, 20 Apr 2022 19:11:39 +0100
parents f22809cba7af
children 731107a67700
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 timeout=300>
</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/php-fpm.sock|fcgi://localhost/"
</FilesMatch>