M
M
mlashin2020-12-11 09:22:50
Nginx
mlashin, 2020-12-11 09:22:50

How to open a web server on a local machine?

Docker-compose (nginx, mariadb, phpmyadmin) is running on the remote server. How do I set up an ssh connection to open a web server on the local machine, so that when I type 127.0.0.1:80 in the search box, the nginx welcome message opens, and when I enter the appropriate port, I can work with the database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2020-12-11
@deepblack

You need SSH Port Forwarding or SSH Tunneling
. It looks like this:
ssh -L 80:localhost:8000 remote_server_name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question