Skip to content

Instantly share code, notes, and snippets.

@ponich
Created March 19, 2019 20:45
Show Gist options
  • Save ponich/2baba4dee25cefc21edf1cc53561903d to your computer and use it in GitHub Desktop.
Save ponich/2baba4dee25cefc21edf1cc53561903d to your computer and use it in GitHub Desktop.
Apache Virtual Host
<VirtualHost *:80>
ServerName hostname.com
ServerAdmin [email protected]
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