vendredi 15 mai 2020

Wildcard Subdomain using Homestead Laravel 5 Apace Ubuntu 18.04

I need subdomains like homestead.{userName}.domenName.

{userName} this is a name of current user.

my etc.hosts :

127.0.0.1   localhost
127.0.0.1   anydomain.com 
127.0.1.1   user-pc
192.168.10.10   homestead.domain
192.168.10.10   subdomain.homestead.domain

my homestead.yaml :

folders:
   - map: ~/Dev/progectName
     to: /home/vagrant/progectName

sites:
   - map: homestead.progectName
     to: /home/vagrant/progectName/public
   - map: subdomain.homestead.progectName
     to: /home/vagrant/progectName/public

When trying to connect to a domain, the browser returns an error:

"We cannot connect to the homestead.userName.progectName server." But homsetead.progectName work correctly.

How to configure Apace and Homestead to work with subdomain?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire