Quick share (ngrok) shows document root


  • | 836 points

    Hi,

    when I try to share projects via ngrok it shows me the document root (C:/laragon/www instead of C:/laragon/www/tabulator)

    This is the ngrok screen:
    0_1571760044007_upload-8d9f02a0-8099-416a-85a7-40f98fc4160c

    Edit: Just realized that the problem is the "www" prefix in my laragon settings. I'm using this prefix for all my projects because I always redirect websites via 301 to the WWW version of them. Unfortunately that breaks the ngrok feature.

    Any help would be much appreciated, thx :)


  • | 463 points

    I don't know very well. As fair as I know, ngrok use port to share your project. But Laragon can access Laravel Public by default. Hope that's why you get this problem. You can serve Laravel project any other port like 8888, 8000 etc. And share via this port by "ngrok http 8888".


  • | 836 points

    Thx, but why should the port be the problem if it works properly without the WWW prefix - {name}.test - and it does not when I use www.{name}.test ?


Log in to reply
 

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