Skip to content

Instantly share code, notes, and snippets.

@mstfydmr
Last active August 2, 2017 16:43
Show Gist options
  • Save mstfydmr/be0d1b48f9371757975e840da5147eb4 to your computer and use it in GitHub Desktop.
Save mstfydmr/be0d1b48f9371757975e840da5147eb4 to your computer and use it in GitHub Desktop.
Apache2 Configiration on Linux
# Virtual Host Config
# /etc/apache2/sites-available/criexe.com.conf
<VirtualHost *:80>
ServerName criexe.com
ServerAdmin mustafa@aydemir.im
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