Skip to content

Instantly share code, notes, and snippets.

@woodyjhonson
Forked from ponich/vhost.conf
Created June 9, 2019 17:05
Show Gist options
  • Save woodyjhonson/3a09251e7fb0b5edfedefdf6e659f1a3 to your computer and use it in GitHub Desktop.
Save woodyjhonson/3a09251e7fb0b5edfedefdf6e659f1a3 to your computer and use it in GitHub Desktop.
Apache Virtual Host
<VirtualHost *:80>
ServerName hostname.com
ServerAdmin email@gmail.com
ServerAlias www.hostname.com
DocumentRoot /var/www/hostname.com/public_html
<Directory /var/www/hostname.com/public_html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog "/var/www/hostname.com/logs/access.log" vcommon
ErrorLog "/var/www/hostname.com/logs/error.log"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment