Skip to content

Instantly share code, notes, and snippets.

@addingama
Created April 10, 2016 10:56
Show Gist options
  • Save addingama/926dd70f660581e0e65f587515511215 to your computer and use it in GitHub Desktop.
Save addingama/926dd70f660581e0e65f587515511215 to your computer and use it in GitHub Desktop.
Sample vhost for laravel
<VirtualHost *:80>
ServerName domain.com
ServerAlias domain.com
ServerAdmin support@domain.com
DocumentRoot /home/deploy/domain-dir/public
<Directory /home/deploy/domain-dir/public>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
Allow from all
</Directory>
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/domain-error.log
CustomLog ${APACHE_LOG_DIR}/domain-access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment