We have our Wordpress site running fine, but (as per the tutorial) its installed in /var/www/
say i wanted to have another site on the same server with a subdomain, how would get that set-up?
this is mainly for future referance, in case it might be important to change something now should that time come.
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!
You would add a subdomain in to your DNS through our Domains manager and then create another virtual host entry in your Apache config or nginx config (server name) and then provide it with a separate document root.
Option 2, enable multisite function (according wordpress official docs -http://codex.wordpress.org/Configuring_Wildcard_Subdomains) : <br> <br>Apache - In the httpd.conf file, or in the include file containing the VirtualHost section for your web account, add a line like this: <br> <br>ServerAlias .example.com <br> <br>Also create a wildcard DNS record like: <br> <br>.mysite.com A 111.111.111.111 <br> <br>Important note: You will need to add this line of code to your wp-config.php to enable multisite function : <br> <br>define(‘WP_ALLOW_MULTISITE’, true);
i see, thanks for the help, so i don’t need to modify anything with my file structure? <br> <br>With previous hosting i’m used to bending to all these rules, the amount of freedom here is amazing :D
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.