Support the ongoing development of Laravel.io →
Requests Views Architecture

Hi,

We are working on an ecommerce application and we will be having a large number of sub domains(more than 1000 subdomains).

For example: store-name.mydomain.com

We will be using sub domain routing( http://laravel.com/docs/4.2/routing#sub-domain-routing ) feature of laravel.

My question is do I need to take care any DNS settings?

And are there any constraints on the number of sub domains for a domain?

Thanks,

Last updated 3 years ago.
0

You posted this so long ago a probably you already solved it :( but the answer is: you need to use wildcard domain in your hosts file and since laravel routing takes care of reading the subdomain and all, you shouldn't have any problem with any number of subdomains you like.

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.