Created
February 16, 2016 19:24
-
-
Save HostOnNet/86d610dc19b14a2e83d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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