Home > other >  [novice turn to the web server] a computer to do the web server, direct access to another computer,
[novice turn to the web server] a computer to do the web server, direct access to another computer,

Time:10-16

Just want to learn new website related content, have 3 or 4 spare computer, want to build a simple environment for learning, but hasn't been successful, have come to ask for help!

Server:
Centos7 + Apache.
Ip: 192.168.0.24 mask 255.255.255.0 netgate: 192.168.0.1 DNS is not set

Client:
Windows 7
IP: 192.168.0.88 MSK 255.255.255.0 netgate: 192.168.0.1 DNS is not set

1. Connection, cable connected directly or through a home wireless router to connect, in both cases two machines can ping;

2. Basic didn't change your apache configuration, the machine enter localhost or 127.0.0.1 can access the server page;
Listen to 80
ServerName 192.168.0.24

3. But the client to access is not, either http://192.168.0.24/index.html or http://192.168.0.24:80/index.html

I don't know what went wrong? Give advice or comments please!

CodePudding user response:

Yes, thank you.

CodePudding user response:

1, the server and client in the same local area network (LAN), to ensure the client to the server in the network is connected, this is no problem,
2, start the service the tomcat
3, in the client browser enter http://192.168.0.24/see if I can access the tomcat home page, if can't access, look at the second step which match the wrong
4, if you can access the service the tomcat, check the access link is correct:
If the page is under the webContent: access path name http://ip:port/application/page name
If the page in a folder under the webcontent: http://ip:port/application access path name/folder name 1/2/folder name.../page name
Don't on the web page in the webContent, - under the inf
  • Related