Apache can't show my test page on CentOS 7.
Hello.
I install and configure Apache from below link : http://www.server-world.info/en/note..._7&p=httpd&f=1 and I changed : ServerAdmin root@server.world ==> ServerAdmin root@linux.dj ServerName www.server.world:80 ==> ServerName www.linux.dj:80 But when I open my Firefox and enter "www.linux.dj/index.html" it show me page can't find, But when I use "localhost", It show me!!!! What is my problem? Tnx. |
Must I configure DNS first?
|
Apache can't show my test page on CentOS 7.
security settings...Looks like you want to configure ports to allow incoming traffic on 80.
|
You are correct. DNS will be required to solve the host names.
I really hope you do not use the same names as in the example. They are not your domain. If you type the IP address of the webserver from a different computer, it should show you the page. If it does not, your firewall is blocking port 80. Centos 7 does not open it by default. So you should run (as root or user configured to modify firewall) Code:
firewall-cmd --permanent --zone=public --add-service=http Code:
nano /etc/hosts At the top of the tutorial, it says remove welcome page. Don't do this either. It is not needed. |
All times are GMT -5. The time now is 05:50 PM. |