Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
palomnik opened this issue Jun 25, 2022 · 3 comments
Open

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

palomnik opened this issue Jun 25, 2022 · 3 comments

Comments

@palomnik
Copy link

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
Copy link
Author

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 palomnik reopened this Jun 25, 2022
@palomnik
Copy link
Author

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
Copy link
Author

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant