Skip to content

Instantly share code, notes, and snippets.

@andrewdelprete
Created April 3, 2014 22:31
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 andrewdelprete/9964193 to your computer and use it in GitHub Desktop.
Save andrewdelprete/9964193 to your computer and use it in GitHub Desktop.
Apache Conf - 1 Site to 1 Directory
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName api.192.168.33.10.xip.io
DocumentRoot /vagrant/PrayerApp/laravel/public
<Directory /vagrant/PrayerApp/laravel/public>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/192.168.33.10.xip.io-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/api.192.168.33.10.xip.io-access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName site.192.168.33.10.xip.io
DocumentRoot /vagrant/PrayerApp-site
<Directory /vagrant/PrayerApp-site>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/192.168.33.10.xip.io-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/site.192.168.33.10.xip.io-access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment