Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "127.0.0.1 first.dev second.dev" >> /etc/hosts
- apt-get install -y apache2
- mkdir /var/www/first
- mkdir /var/www/second
- echo 'First!!!' > /var/www/first/index.html
- echo 'Second!!!' > /var/www/second/index.html
- echo '<VirtualHost *:80>
- ServerName first.dev
- DocumentRoot /var/www/first
- </VirtualHost>
- ' > /etc/apache2/sites-available/first.conf
- echo '<VirtualHost *:80>
- ServerName second.dev
- DocumentRoot /var/www/second
- </VirtualHost>
- ' > /etc/apache2/sites-available/second.conf
- a2ensite first
- a2ensite second
- service apache2 restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement