Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To enable a new apache2 dev site on ubuntu virtualbox hosted on Windows 10:
- Go to the available sites:
- $ cd /etc/apache2/sites-available
- Determine which you want to enable and use this format:
- $ ls
- sandbox.conf sandbox2.conf mydevsite.conf
- $ a2ensite sandbox sandox2 mydevsite
- Enabling site sandbox.
- Enabling site sandbox2.
- Enabling site generalsandbox.
- To activate the new configuration, you need to run:
- systemctl reload apache2
- Restart apache2:
- $ systemctl reload apache2
- <you'll be asked for a password.>
- Go to your windows host file on Windows:
- Open Sublime Text Editor as an Administrator.
- Open file C:\Windows\System32\drivers\etc\hosts
- Using the exposed IP address of your virtualbox, type in the hosts.
- 192.168.1.15 sandbox sandbox2 mydevsite
Advertisement
Add Comment
Please, Sign In to add comment