I’ve set up and provisioned 2 servers, one for staging and another one for production environment. I’ve also ran the deploy script for the staging environment.
Now, I’m trying to access my site via ssh tunnel:
$ ssh -L4545:localhost:80 -p 22 admin@<server-IP>
but when I visit: http://localhost:4545 there is nothing ( “This page isn’t working”).
Nginx seems to be working:
# netstat -tulpn | grep --color :80 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 22853/nginx: master tcp6 0 0 :::80 :::* LISTEN 22853/nginx: master # netstat -tulpn | grep --color :443 tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 22853/nginx: master tcp6 0 0 :::443 :::* LISTEN 22853/nginx: master
Any idea why it doesn’t work? How can I access my WP site via ssh tunnel?
How is Trellis handling the staging environment? I mean, shouldn’t it be somehow protected by default and not open to the public?
Do I have to use “Bedrock Site protect” in order to protect it?