Last active
August 29, 2015 14:03
-
-
Save lutangar/6eff211debe25f59e628 to your computer and use it in GitHub Desktop.
Sample Vhost configuration example for apache2.4 (with itk to host under your home, or without to host under /var/www)
This file contains 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 example.io | |
ServerAlias my.example.io | |
ServerAlias example.com | |
DocumentRoot "/home/myuser/workspace/example.io" | |
# Directory | |
<Directory /home/myuser/workspace/example.io> | |
Require all granted | |
AllowOverride All | |
</Directory> | |
<IfModule mpm_itk_module> | |
AssignUserId myuser www-data | |
</IfModule> | |
# Logging | |
ErrorLog ${APACHE_LOG_DIR}/example-error.log | |
CustomLog ${APACHE_LOG_DIR}/example-access.log combined | |
</VirtualHost> |
This file contains 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 example.io | |
ServerAlias my.example.io | |
ServerAlias example.com | |
DocumentRoot "/var/www/example.io" | |
# Directory | |
<Directory /var/www/example.io> | |
Require all granted | |
AllowOverride All | |
</Directory> | |
# Logging | |
ErrorLog ${APACHE_LOG_DIR}/example-error.log | |
CustomLog ${APACHE_LOG_DIR}/example-access.log combined | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To track all the logs of your site :