How to use Laragon with localhost.run?


  • | 252 points

    i went to http://localhost.run/ and copied and pasted the ssh command on my Win 10 and it works. But I could only view the Laragon landing page from outside my PC, not my subfolder containing my localhost website. I usually run my website on my PC by entering say mysite.test.

    So, in this case, what should be the URL I should enter remotely? Localhost.run gives URL like https://mysite-123.localhost.run


  • administrators
    | 123643 points

    @worisi24 :
    I assume you are using Apache. Here how:

    1. Open your project Virtual Host file: Men > Apache > sites-enabled
    2. Add this:
    ServerAlias *.xxx.test, mysite-123.localhost.run
    
    1. Remove the 'auto.' prefix in your Virtual host filename (to let Laragon respect your changes)
    2. Restart Apache

Log in to reply
 

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