By Cameron A.
I’m using serverpilot if that helps and my directory structure is
/apps/thekitribe/public/(root directory)
I was hoping my additional domain, say abc.com was hosted at
/apps/thekitribe/public/abc/
I’ve messed around with the networking tab here on DO and edited some conf files on server pilot all of which I’ve just un-done because the guides i’m reading (not DO specific) are leading me in all various directions.
Do I need to setup a “virtual host” with apache? Isn’t DO a VPS? Big moment of confusion for me. ;-)
What I have now: (both thexeno.com and kitribe.com both point to same numerical domain–top level.)
I’d like thexeno.com to remain top level and then kitribe.com to be in perhaps the /apps/thekitribe/public/kitribe folder.
Sorry if I’m over-complicating this but I’m probably more confused then I should be at the moment lol.
Cam
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!
Hi, you can use this same guide whether your additional domain is a registered domain or a subdomain:
https://serverpilot.io/community/articles/how-to-serve-a-subdomain-from-a-subdirectory.html
You definitely shouldn’t customize any config files for this. In other words, you don’t need to use root at all. SSH in as the app’s system user and create the symlink as described in the ServerPilot documentation. That is, create a second app under the same system user, delete this new app’s “public” directory and in its place make a symlink to the directory in the other app you want it to use as the new app’s web root directory, and add your domain to the new app in ServerPilot.
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.