Server access behind Mobile network using ngrok or pagekite

You are right. It may be working on my server because I turned off the redirect by adding a conf file with virtualhost *:80 to /etc/httpd/conf.d/

https://httpd.apache.org/docs/current/vhosts/examples.html

EDIT:

I also used this virtual host patch for Nextcloud: