Support the ongoing development of Laravel.io →
Configuration
Last updated 1 year ago.
0
Solution

Create the subdomain in Forge. Once it has been made, go in and edit it. Once I there, down in the bottom right you will see an edit drop down. You can choose to edit the nginx config file. Do that and a popup will appe with that particular domains nginx config details. Close to the top, you will see the path on the server to where it is pointing. You can just change that path to what you want.

Hopefully that will help, if not let me know. Sorry I can be more specific, it's from memory.

Cheers

Edit: why do you want to do that anyway? Two staging servers with the same code and db? Doesn't seem to make sense if I am honest. Are you wanting separate DBs?

Last updated 8 years ago.
0

Ahh, that make sense. Thanks.

Basically, what's going on is that I have a back office application for a client running on a subdomain. They now want to make just a few of the routes in the application publicly available, but they want it to appear under a different subdomain that will make more sense to an end user.

I only mentioned that there is a staging version on that same server in case I needed to go the wildcard subdomain route. I wasn't sure if that extra existing subdomain would have an implication there.

Let me know if you think there is a better way to go about what I'm doing and thanks for the help!

0

How did you managed this? Did you find a better way?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.