-
-
Save qWici/310fd0cd828e1daa6e78c98c1d5b9321 to your computer and use it in GitHub Desktop.
Apache 2 Server Settings
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 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 |
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
// 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