tsani / jerrington.me

Blog & personal website
http://jerrington.me/
Other
18 stars 4 forks source link

WordPress pages do not render through the reverse ssh tunnel #11

Open palomnik opened 2 years ago

palomnik commented 2 years ago

From:

“Roll your own Ngrok with Nginx, Letsencrypt, and SSH reverse tunnelling”.

I got it working, but WP pages do not render. Normally, with something like localtunnel I have to change the URL In WP and then it works. This I could not get to work.

palomnik commented 2 years ago

I was missing some of the site conf for the nginx proxy server. All the pages load correctly, but I cannot load http://site.com/wp-admin.

palomnik commented 2 years ago

More info - all pages work, but I cannot login.

All pages on https://dev1.jshypertext.com work, except, If I go to https://dev1.jshypertext.com/wp-admin, it returns with a 404, having tried to load:

https://dev1.jshypertext.com/wp-login.php?redirect_to=https%3A%2F%2Fdev1.jshypertext.com%2Fwp-admin%2F&reauth=1

The site is running on a docker container at http://localhost:8008

palomnik commented 2 years ago

This is what is in my site.conf for the proxy location:

location / { proxy_pass http://localhost:3000/; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_redirect off; }