Skip to content

Instantly share code, notes, and snippets.

@eslam-mahmoud
Last active November 20, 2018 01:50
Show Gist options
  • Save eslam-mahmoud/b7fba319b148acd40767fbb965e77cbb to your computer and use it in GitHub Desktop.
Save eslam-mahmoud/b7fba319b148acd40767fbb965e77cbb to your computer and use it in GitHub Desktop.
Apache VirtualHost
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents/appname"
ServerName appname.local
ServerAlias www.appname.local
ErrorLog "/private/var/log/apache2/appname.local.error"
CustomLog "/private/var/log/apache2/appname.local.custom" common
<Directory /Library/WebServer/Documents/appname/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
AccessFileName .htaccess
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment