I am trying to view my local site on another terminal. However, the site does not display.
On the Ngrok terminal: ngrok.exe http 80
On the local server’s httpd-vhosts.conf file :
<VirtualHost *:80>
ServerName test.local
serverAlias aee9-89-85-88-146.eu.ngrok.io
DocumentRoot "c:/wamp64/www/dev/test"
<Directory "c:/wamp64/www/dev/test/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory></VirtualHost>
I specify that the chrome browser displays the dns_probe_finished_nxdomain error. Besides, when I don’t modify the httpd-vhosts.conf file, I do have access to localhost, phpMyAdmin, phpInfo, etc.
Thank you for you precious help
2
Answers
For people who have the same problems as me when they want to use NGrok for a Wordpress site... they can just use Local WP. A kind of Wamp, reserved exclusively for Wordpress sites.
It worked for me. And what's more, there is no need for third-party software. Local WP does both the work of wamp and Ngrok.
Try the following:
ServerName
tolocalhost
so that you can access your site from localhost.ssh -p 443 -R0:localhost:80 a.pinggy.io
.