I
I
Ivan2020-07-28 11:41:04
linux
Ivan, 2020-07-28 11:41:04

How to allow port 8080 for virtual host on CentOS?

I already tried to allow this port with

firewall-cmd --permanent --add-port=8080/tcp
and tried adding this to the SELinux rules

semanage port -a -t http_port_t -p tcp 8080

semanage port -m -t http_port_t -p tcp 8080

But that didn't help either. What need to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-07-29
@ivan_minin

If you are using Apache, then you may have forgotten to add port 8080 to the list of listening ports in this config

/etc/apache2/ports.conf

Try to register port 8080 there and restart the web server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question