(assuming the ip address of your machine is 192.168.106.120 or you can use localhost)
telnet 192.168.106.120 80
Then type "abc" and Enter
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>a to / not supported.<br />
</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at localhost.localdomain Port 80</address>
</body></html>
Connection closed by foreign host.
Try using telnet again but this time type "GET" then Enter
Different output?
Now open a browser and put 192.168.106.120 as the address
Should see a lot of info (including below)
"...
If you are the website administrator:
You may now add content to the directory /var/www/html/..."
Now go into /var/www/html and create index.html containing this line
Hello from CentOS
Then refresh the page on the browser
(also telnet and see)
Now open a browser and put 192.168.106.120 as the address
Should see a lot of info (including below)
"...
If you are the website administrator:
You may now add content to the directory /var/www/html/..."
Now go into /var/www/html and create index.html containing this line
Hello from CentOS
Then refresh the page on the browser
(also telnet and see)
No comments:
Post a Comment