How to use Laragon with localhost.run?
-
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
-
@worisi24 :
I assume you are using Apache. Here how:- Open your project Virtual Host file: Men > Apache > sites-enabled
- Add this:
ServerAlias *.xxx.test, mysite-123.localhost.run
- Remove the 'auto.' prefix in your Virtual host filename (to let Laragon respect your changes)
- Restart Apache