Apache server allows access from local network
Matthew Meehan optional
I've installed fedora server but can't seem to get web requests through it. I can ping it, and as far as I can tell, apache is functioning fine on the computer.
I listen on httpd.conf as
Listen *:80
and the server name is
ServerName 192.168.1.133:80
The reason is that it complains about it in the console, but it doesn't seem to work with or without the line
[root@localhost conf]# cat /etc/redhat-release
Fedora release 21 (Twenty One)
[root@localhost conf]# netstat -ntulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1384/smbd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1384/smbd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 826/sshd
tcp6 0 0 :::443 :::* LISTEN 1044/httpd
tcp6 0 0 :::445 :::* LISTEN 1384/smbd
tcp6 0 0 :::9090 :::* LISTEN 1/systemd
tcp6 0 0 :::139 :::* LISTEN 1384/smbd
tcp6 0 0 :::80 :::* LISTEN 1044/httpd
tcp6 0 0 :::22 :::* LISTEN 826/sshd
udp 0 0 0.0.0.0:68 0.0.0.0:* 945/dhclient
udp 0 0 192.168.1.255:137 0.0.0.0:* 1441/nmbd
udp 0 0 192.168.1.113:137 0.0.0.0:* 1441/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 1441/nmbd
udp 0 0 192.168.1.255:138 0.0.0.0:* 1441/nmbd
udp 0 0 192.168.1.113:138 0.0.0.0:* 1441/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 1441/nmbd
udp 0 0 0.0.0.0:52142 0.0.0.0:* 945/dhclient
udp6 0 0 :::41117 :::* 945/dhclient
Chris Davidson
Apache requests are blocked on the firewall. Run the following command to allow all requests through the firewall. firewall-cmd --zone=public --add-port=80/tcp firewall-cmd --reload
It should also be possible to use the following command instead of allowing port 80; use the following command instead. firewall-cmd --add-service=http firewall-cmd --reload