Last active
August 2, 2017 16:43
-
-
Save mstfydmr/be0d1b48f9371757975e840da5147eb4 to your computer and use it in GitHub Desktop.
Apache2 Configiration on Linux
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
# Virtual Host Config | |
# /etc/apache2/sites-available/criexe.com.conf | |
<VirtualHost *:80> | |
ServerName criexe.com | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/criexe.com | |
<Directory "/var/www/criexe.com"> | |
Require all granted | |
AllowOverride All | |
</Directory> | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
</VirtualHost> | |
# Mods | |
a2enmod headers | |
a2enmod rewrite | |
# Enabling Site | |
a2ensite criexe.com.conf | |
systemctl reload apache2 | |
# Install All | |
sudo su & apt-get update & apt-get install apache2 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment