'Wildcard Subdomain on Homestead
I'm building a Laravel application on Homestead, which manages the creation of subdomain company accounts. Basic sitemap as follows:
Primary Domain
Home (http://laravel.app)
- About (http://laravel.app/about)
- Contact (http://laravel.app/contact)
- Terms (http://laravel.app/terms)
Subdomains
Company A (http://company-a.laravel.app)
- Dashboard (http://company-a.laravel.app/dashboard)
Ideally, I'd like to have a position where I can create subdomains on the fly, without having to edit /etc/hosts or Homestead.yaml every time a new account is created. I understand this is quite a common question, but I wouldn't be here unless I'd already tried everything I can find.
The closest is got was using dnsmasq, following the steps here: Configure homestead for subdomain routing - however this only results in a 403 permission error on both laravel.app and subdomain.laravel.app
Chances are I'm almost there and it's just a permissions error to resolve. But how???
Has anyone been in this position before? And if so, please share with us how you did it.
I can post more info if required!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
