V
V
Vadim Stepanenko2021-10-11 14:37:17
Docker
Vadim Stepanenko, 2021-10-11 14:37:17

How to make docker lamp friends with https?

Hey! I didn’t work with docker before, I needed to raise the lamp environment with https. The environment is needed for local development

I took the decor config from here: https://github.com/odan/slim4-skeleton
And I'm trying to connect https through this container: https://github.com/SteveLTN/https-portal

Please tell me:
1. In the lamp config, the webserver container has ports "8080:80". I understand correctly that Apache is running on port 80 inside the container, but it goes "out" on port 8080?
2. Based on the first question, the ports of the https-portal should be '8080:8080' (that is, we connect the webserver that listens on port 8080 and output on the same port?)
3. Why is port 433 specified in the https-portal? What is it for?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-10-11
@karabanov

1. Yes.
2. No need to change. It should be 80:80 otherwise you will have to explicitly specify the port in the address bar of the browser
3. 443 is the default port for https. If you specify https:// in front of the domain name in the address bar of the browser, the browser will open a connection (well, it will try anyway) to port 443

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question