gecche / laravel-multidomain

A Laravel extension for using a laravel application on a multi domain setting
MIT License
838 stars 105 forks source link

404 in my second domain #90

Closed pixsolution closed 1 year ago

pixsolution commented 1 year ago

Hello, I did the installation, everything worked fine for me, I added the domain, its migrations, but when I open the url in the browser, that new domain opens 404, I am with Laravel 9 and in xampp, what can it be? Is there something additional to what is indicated in the doc? I add that new domain to the host file found in C:\Windows\System32\drivers\etc and in httpd-vhosts found in C:\xampp\apache\conf\extra like this I do with all my websites and These steps work fine for me and the central domain (domain1) continues to work fine after installing your package. Let me show you how do I added my domains on those files:

/host 127.0.0.1 domain1.local 127.0.0.1 domain2.local

/httpd-vhosts <VirtualHost *> DocumentRoot "C:/xampp/htdocs/domain1/public" ServerName domain1.local <Directory "C:/xampp/htdocs/domain1/public"> Options All AllowOverride All Require all granted

<VirtualHost *> DocumentRoot "C:/xampp/htdocs/domain1/public" ServerName domain2.local <Directory "C:/xampp/htdocs/domain1/public"> Options All AllowOverride All Require all granted

In my project/config/filesystems 'default' => env('FILESYSTEM_DISK', 'public'),

What do you think is wrong?

pixsolution commented 1 year ago

Excuse me, it's already working, I'll close the issue