Ngrok+Laragon serving Root Document instead Project

  • | 378 points


    I select Ngrok->Share ->ole. In console it appears:
    Forwarding ->

    But what appears in the browser is the root of Laragon:
    C:\laragon\www instead C:\laragon\www\ole as I would expect

    Can anyone please tell me what is wrong here?

    Thank you.

  • administrators
    | 110144 points

    @ivomir : What is your Laragon's version?
    You should use .test domain to avoid any unwanted issues.

  • | 378 points

    I just fixed my problem. Instead of using www.{name}.dev as hostname. I am now using {name}.dev and it's working. I don't really understand why. Is there a way to make www. and non www. hostname pointing to localhost without manually editing hosts?

    I still have a problem with:
    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

    This works without ngrok but with ngrok I get too many redirects... weird... Shouldn't this condition only trigger if the request is not https?

    But if I comment this condition everything seems to work fine :)

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.