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

skin folder not loading #1

Open to8gal opened 7 years ago

to8gal commented 7 years ago

I´ve downloaded your extension in the hope to see Magento with ngrok, anyway as without the extension the css or js are not being loaded, any clue why? cache has been empied and all classic magento routine done.

colinmurphy commented 7 years ago

Hi to8gal,

Can you post the URL you get for the CSS or a JS file and the URL what you expect to see.

If you are using Apache I sometimes need to change the RewriteBase path in the .htaccess as ngrok resolves to to my Sites directory (e.g. localhost) so if for example if I have a site in a directory called "site1" I need to view I change the RewriteBase to "/site1" from "/".

to8gal commented 7 years ago

Hello,

in Ngrok I made a http rewrite for shop.site.local where site is the name of my domain, and I get it for css and js, but it should be the ngrok instead, so I get something like shop.site.local/skin/frontend/... instead I should get something.eu.ngrok.io/skin/frontend/...

obuchowski commented 7 years ago

Hi @to8gal, I fixed it there for myself https://github.com/EObukhovsky/Ngrok/commit/0d07d8e423029a0a2d8ee3b8b921fdc9e246b375 it also fixes issue #2