How to run ngrok and apache/nginx on same server?
You can't have both listening on the same port.
You could change the port for ngrok
(e.g. to 8080) and then setup a new virtual host in nginx
to reverse proxy http://tunnel.mysite.com to http://ngrok:8080.
Example nginx config:
server { server_name web.mysite.com; ... }}server { server_name tunnel.mysite.com; location / { proxy_pass http://ngrok_IP:8080; }}