HTTPD Change Port - Hsanokklis/2023-2024-Tech-journal GitHub Wiki
Changing the Port Apache is listening on via the config file
- Go to
# vi /etc/httpd/conf/httpd.conf
- change from port 80 to port 8008
systemctl restart httpd
Adding 8008 to TCP on the firewall
I removed 80/tcp just for good measure
Web page working on port 8008
I had to specify the port when looking it up in the browser because the browser will automatically default to port 80 because it doesn't know what port you are looking to use.