Skip to content

Instantly share code, notes, and snippets.

@VasilSlavchev
Forked from sh6210/apache virtual host
Created November 5, 2020 14:25
Show Gist options
  • Save VasilSlavchev/f8576b56469f88cab7f63e26cc5005d9 to your computer and use it in GitHub Desktop.
Save VasilSlavchev/f8576b56469f88cab7f63e26cc5005d9 to your computer and use it in GitHub Desktop.
/etc/hosts
/etc/apache2/sites-available/000-default
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName phpmyadmin.dev
ServerAlias www.phpmyadmin.dev
DocumentRoot /var/www/html/phpmyadmin
<Directory "/var/www/html/phpmyadmin">
AllowOverride all
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment