studioforty9-dev / Ngrok

Makes it easier to publish a Magento site using ngrok by dynamically switching the Base URL to whatever value is in the $_SERVER['HTTP_HOST'] variable.
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

fix endless loop, skin & js urls, sessions #3

Closed obuchowski closed 11 months ago

obuchowski commented 7 years ago

I run magento on laravel homesteage box. apache2 php 7.0 I noticed that ($_SERVER['HTTP_HOST']) is equal to site.local URL so I changed it to HTTP_X_ORIGINAL_HOST and got an endless redirect loop. Get rid of them using debug_backtrace() checks. With this version I also can't reproduse #1 and #2 issues.