Skip to content

Instantly share code, notes, and snippets.

@v1talii-dev
Last active September 1, 2016 15:05
Show Gist options
  • Save v1talii-dev/9a718b6d7d3136ad31e50056031280fd to your computer and use it in GitHub Desktop.
Save v1talii-dev/9a718b6d7d3136ad31e50056031280fd to your computer and use it in GitHub Desktop.
Server: localhost apache configurate

Create new config /etc/apache2/sites-available/test.dev.conf

<VirtualHost *:80>
	ServerName test.dev
	ServerAdmin webmaster@localhost
	DocumentRoot /var/www/test.dev
	Options Indexes FollowSymLinks MultiViews
	ErrorLog /error.log
	CustomLog /access.log combined
</VirtualHost>

Add local site in /etc/hosts

127.0.0.1 test.dev

Configure apache

sudo a2ensite test.dev.conf
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment