JennySwift's avatar

multiple repositories on one domain

Hi, I am using Forge and would like to have multiple repositories on one domain. For example:

www.my_apps.com/app1
www.my_apps.com/app2
www.my_apps.com/app3

The reason I want them all on one domain is to save money-so I only have to pay for one domain.

Is this possible, please? I’ve Googled and it seems others use a separate domain for each repository. I would have thought other people would, like me, prefer to just pay for one domain?

I suppose maybe I could combine all my repositories into one to make it work, but that would seem messy, because my apps could be unrelated to each other and so it doesn’t feel like they should all go in the same repository. And also, I'd want a different database for each app, so maybe that wouldn't work.

I thought maybe I could change the path in the Nginx configuration to make it work, but I tried that and it didn’t work, and I don’t really know what Nginx configuration is anyway.

0 likes
3 replies
alenabdula's avatar
Level 13

I use sub-domains with Forge like this.

  • At Digital Ocean add CNAME api with value example.com
  • Go to Forge, Sites >> Add Site and enter api.example.com
  • Visit http://api.example.com and you'll see default PHP Info page.

Now repeat for all the rest.

2 likes
JennySwift's avatar

Awesome! Thank you so much alenabdula! That worked. :)

OmarMakled's avatar

thank you first of i went throw JennySwift asking some question and ended up here

Please or to participate in this conversation.