I am using godaddy DNS. All my records are set up there. How do I point those A records to DigitalOcean. If I understand correctly, creating DNS records at DigitalOcean will interfere with all my other records, right?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
In Apache you can copy the default file, and edit the new VHOST to handle your requests. Or you can simply create a new VHOST and just add whats needed. If you don’t want to use the default config, go to #2;
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/yourdomain.com.conf
#2Now edit the new vhost (or create a new one):
sudo nano /etc/apache2/sites-available/yourdomain.com.conf
And you should use a simple, but efficient config like this:
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/yourdomain.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
I am not sure were the default directory of Wordpress is, since I never use the one-click application wizard. Just check where it is, and make sure you use the proper one at DocumentRoot
Now enable your VHOST and everything should work fine:
sudo a2ensite yourdomain.com.conf
EDIT
Just run a droplet with the wordpress app installed to test, the default directory is /var/www/html. So inside your VHOST, use:
DocumentRoot /var/www/html
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.