Я установил базовую версию Ubuntu 18.04,
Я делаю какой-нибудь домашний проект на докере и сопоставляю порт 8000 на мой порт 80 док-станции
Но если я сделал 127.0.0.1:8000, он автоматически перенаправит меня на мой порт 80 Ubuntu Apache
Если в моем докере проекта для домашних животных я поместил wordpress не на index, а на wordpress /, введите:
127.0.0.1:8000/wordpress/ он работает правильно и показывает докер WordPress.
Но когда я набираю 127.0.0.1:8000, он автоматически перенаправляет меня на 127.0.0.1, я пробую с Firefox и Chrome.
Как это отключить?
С уважением
For apache2
, check the configuration file located at /etc/apache2/sites-available/000-default.conf
.
It's possible that in the first line of that file, the port is specified as
. Changing the port from 80
to your desired port number should give you the result you want.
If you have ever made any other tweaks to the configurations of apache2
or localhost
, you may need to review those changes as well.