Skip to content

Instantly share code, notes, and snippets.

@qWici
Forked from georgebent/appache_settings.txt
Last active January 11, 2018 08:43
Show Gist options
  • Save qWici/310fd0cd828e1daa6e78c98c1d5b9321 to your computer and use it in GitHub Desktop.
Save qWici/310fd0cd828e1daa6e78c98c1d5b9321 to your computer and use it in GitHub Desktop.
Apache 2 Server Settings
<VirtualHost localhost:80>
ServerName test.dev
ServerAlias www.test.dev
DocumentRoot /home/yura/projects/test.dev
<directory /home/yura/projects/test.dev>
AllowOverride All
Require all granted
</directory>
ErrorLog /home/w33ha/dev/logs/smc.dev/error.log
LogLevel warn
CustomLog /home/w33ha/dev/logs/smc.dev/access.log combined
</VirtualHost>
// add module rewrite
$ sudo a2enmod rewrite
$ service apache2 restart
// add new.site
cd /etc/apache2/sites-available
ls
sudo touch new.site.conf
ls
sudo gedit new.site.conf
sudo a2ensite new.site
sudo mcedit /etc/hosts
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment