Skip to content

Instantly share code, notes, and snippets.

@kastaneda
Created November 27, 2019 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kastaneda/4e028a961ee97f542f942afa638ae94b to your computer and use it in GitHub Desktop.
Save kastaneda/4e028a961ee97f542f942afa638ae94b to your computer and use it in GitHub Desktop.
Local Apache
# /etc/apache2/sites-available/000-default.conf
<IfModule mod_vhost_alias.c>
<VirtualHost *:80>
# Mass virtual hosting
ServerAlias *
UseCanonicalName Off
VirtualDocumentRoot "/var/www/vhosts/%0"
# Logs
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log vcommon
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
apt install apache2 php7.2-fpm
a2enmod vhost_alias
a2enmod proxy_fcgi
a2enconf php7.2-fpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment