Support the ongoing development of Laravel.io →
posted 8 years ago
Requests
Last updated 2 years ago.
0
Solution

Got it! I defined an APP_MAIN_DOMAIN in the .env file which then read in the routes.php as a domain group for some routes. I have no clue why that happened, but right after \Dotenv\Loader::setEnvironmentVariable() is called with "APP_MAIN_DOMAIN" the other domain just throws 404 errors. To me more precisely, it's on line 339 when putenv("$name=$value"); is called.

I'm a bit curious about putenv() now. Does that mean php puts the function's parameter in shared memory or something? I am using PHP 5.6.14.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

rimace rimace Joined 8 Jun 2014

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.

© 2024 Laravel.io - All rights reserved.