File: //etc/templates/apache.conf
<VirtualHost *:80>
ServerName DOMAIN_NAME
ServerAlias www.DOMAIN_NAME
DocumentRoot /home/DOMAIN_NAME/public_html
ErrorLog ${APACHE_LOG_DIR}/DOMAIN_NAME.error.log
CustomLog ${APACHE_LOG_DIR}/DOMAIN_NAME.access.log combined
DirectoryIndex index.php index.html index.htm
<Directory /home/DOMAIN_NAME/public_html>
AllowOverride all
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/USER.sock|fcgi://localhost/"
</FilesMatch>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet