Question

Virtual Hosts question regarding root site

Posted July 27, 2014 1.6k views

I have a 1Gig droplet that I setup with the one-touch WordPress creation, using Ubuntu 14.04…question is, can I setup Virtual Hosts according to the tutorial on here while leaving the current WP site in the root? Or, do I have to start a new droplet and port that WP website into a Virtual Host of it’s own?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

You definitely can add virtualhosts to the One Click WordPress droplet. You might have to move WordPress from /var/www so the virtualhosts don’t conflict:

mv /var/www /var/www-wordpress
mkdir /var/www
mv /var/www-wordpress /var/www/wordpress

and update /etc/apache2/apache2.conf and set DocumentRoot to /var/www/wordpress instead of /var/www. Finally, restart Apache2:

service apache2 restart
Submit an Answer