Created
March 19, 2019 20:45
-
-
Save ponich/2baba4dee25cefc21edf1cc53561903d to your computer and use it in GitHub Desktop.
Apache Virtual Host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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