Unable to access site using BrowserSync proxy

  • | 137 points

    I've been trying to use BrowserSync to speed up development, and am able to access the site regularly at localhost/mysite but I've been unable to access it through a BrowserSync proxy. Here's my NPM command:

    browser-sync start --proxy localhost/mysite

    alt text

    If I try accessing the BrowserSync proxy, Chrome attempts to load the page for a while, before displaying this error:

    alt text

    It's the same if I try the external link too. Anyone got any ideas?

    Laragon version + port info, if needed:

    alt text


  • | 60 points

    Laragon is creating automatic virtual host.
    For me the problem was that browsersync was proxying wrong url.

    You can try to run command with virtual host.
    browser-sync start --proxy mysite.test

Log in to reply

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