Support the ongoing development of Laravel.io →
Installation Configuration Requests

In the app I am making, my client must be able to add domains at whim without any downtime. Similar to how squarespace or wix work. Is there a way I can point domains towards a subdomain on my site in a dynamic manner without having to restart nginx or add virtual hosts manually?

Thank you

Last updated 3 years ago.
0

TerrePorter said:

I had this bookmarked to try out, you might take a look at it.

http://publications.jbfavre.org/web/nginx-vhosts-automatiques-avec-SSL-et-authentification-version2.en

Thanks, I just found this: http://stackoverflow.com/questions/8199231/how-to-setup-mass-dynamic-virtual-hosts-in-nginx

The one with 31 upvotes looks like the best option.

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.

© 2025 Laravel.io - All rights reserved.