Skip to content

Instantly share code, notes, and snippets.

@joshuamabina
Last active September 20, 2016 18:58
Show Gist options
  • Save joshuamabina/54d24da1b636e5b5c38f6f57c3cef527 to your computer and use it in GitHub Desktop.
Save joshuamabina/54d24da1b636e5b5c38f6f57c3cef527 to your computer and use it in GitHub Desktop.
Awesome apache config file starter.
<VirtualHost *:80>
Define APP_NAME app
Define PROJECT_ROOT /var/www/${APP_NAME}
ServerName ${APP_NAME}.local
DocumentRoot ${PROJECT_ROOT}/public/index.php
<Directory "${PROJECT_ROOT}/public">
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog ${PROJECT_ROOT}/error.log
CustomLog ${PROJECT_ROOT}/access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment