N
N
nektobit2017-04-25 17:36:14
PHP
nektobit, 2017-04-25 17:36:14

How to set up ngrok + openserver on win 10?

When I run ngrok http 80 I see this log:

ngrok by @inconshreveable

Session Status                online
Version                       2.2.4
Region                        United States (us)
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://fd43500c.ngrok.io -> localhost:80
Forwarding                    https://fd43500c.ngrok.io -> localhost:80

Connections                   ttl     opn     rt1     rt5     p50     p90
                              1       0       0.00    0.00    17.13   17.13

HTTP Requests
-------------

GET /                          304 Not Modified
GET /favicon.ico               404 Not Found
GET /                          200 OK

Judging by the log, everything is ok, and really, if you go to localhost:80, we see a perky message from Open Server "It works!". But when I try to go to fd43500c.ngrok.io I see a blank page. Moreover, if you add after the address ngrok.io/something, there will be an error from Apache 404. Who faced it?
I will also consider alternatives to ngrok if someone has started with Open Server

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2017-04-25
@nektobit

So it seems that you need to specify the --host-header parameter so that the server receives the Host header for the correct processing of the request:
ngrok http --host-header=dev.site.ru 80

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question