Error - Failed connect to ip:80; Connection refused
I'm new to Linux, planing to get rhcsa certificate. I installed Rehdat 8 in my computer. I installed KVM for virtualization. I installed apache server and able to see file using browser.
I created a vm through KVM manager (GUI) and installed centos 7. Now I'm trying to install another vm using centos 7 and use anaconda file (ks.cfg). However I'm getting error "0curl: (7) Failed connect to 192.168..:80; Connection refused".
The ks.cfg file was from the vm that I install using GUI. I copied the ks.cfg file from the guest vm to main server and saved in /var/www/html/inst/. When I go to browser and type "http://192.168../inst" I can see the ks.cfg file. The file permission is read only for other.
I went to vm and used curl command to access server, got the same error. I opened port 80, firewall is active and enabled. I don't have any idea what I'm doing wrong. Any idea what is the issue? Attaching screenshot that might help to understand. I'm not sure it is the right forum or section. Thank you for your help