Skip to content

Instantly share code, notes, and snippets.

@abponcio
Created January 10, 2019 07:10
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 abponcio/a506fc6792a95c09194f2e0b7b4d8c1e to your computer and use it in GitHub Desktop.
Save abponcio/a506fc6792a95c09194f2e0b7b4d8c1e to your computer and use it in GitHub Desktop.
Apache configuration Cheat sheet
#Set Hosts to be used
<Directory "/hosts">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
# Set Tools to be used
<Directory "/tools">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
# VHOST Alias
#Symlink the current folder to public
<VirtualHost *:80>
ServerAlias *
UseCanonicalName Off
ServerAdmin anthonybryleponcio@gmail.com
VirtualDocumentRoot /hosts/%0/current
VirtualScriptAlias /hosts/%0/current
</VirtualHost>
Alias /mysql "/tools/phpmyadmin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment