Skip to content

Instantly share code, notes, and snippets.

@HostOnNet
Created February 16, 2016 19:24
Show Gist options
  • Select an option

  • Save HostOnNet/86d610dc19b14a2e83d8 to your computer and use it in GitHub Desktop.

Select an option

Save HostOnNet/86d610dc19b14a2e83d8 to your computer and use it in GitHub Desktop.
<VirtualHost 127.0.0.1:80>
ServerName yourdomain.dev
ServerAdmin you@yourdomain.dev
DocumentRoot /home/USER/www/yourdomain.dev
CustomLog ${APACHE_LOG_DIR}/yourdomain.dev.log combined
<Directory "/home/USER/www/yourdomain.dev">
Options All
AllowOverride All
Require all granted
Order allow,deny
allow from all
</Directory>
</VirtualHost>
This is virtual host entry, you need to edit
/etc/apache2/apache2.conf file and add it.
Can be done with command
```
sudo gedit /etc/apache2/apache2.conf
or
sudo vi /etc/apache2/apache2.conf
```
Then restart apache
```
service apache2 restart
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment