0% found this document useful (0 votes)
22 views1 page

Day 21 1 Webserver2 5

This document provides instructions for configuring an HTTP server and client. It describes adding a virtual host to the HTTP server configuration file httpd.conf to serve the website on 192.168.0.252. It also explains how to restart the HTTP services and configure the DNS client by adding the DNS server's IP address to the resolv.conf file so the client can resolve domain names.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

Day 21 1 Webserver2 5

This document provides instructions for configuring an HTTP server and client. It describes adding a virtual host to the HTTP server configuration file httpd.conf to serve the website on 192.168.0.252. It also explains how to restart the HTTP services and configure the DNS client by adding the DNS server's IP address to the resolv.conf file so the client can resolve domain names.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

/etc/httpd/conf/httpd.

conf

HTTP Server

Add Addthe thebelow belowlines lines <VirtualHost 192.168.0.252:80> <VirtualHost 192.168.0.252:80> ServerAdmin ServerAdmin [email protected] [email protected] DocumentRoot DocumentRoot /var/www/html /var/www/html ServerName ServerName www.google.com www.google.com DirectoryIndex DirectoryIndex google.html google.html </VirtualHost> </VirtualHost>

To Torestart restartthe theHTTP HTTPservices services [root@comp1 ~]# service httpd restart [root@comp1 ~]# service httpd restart

Configuring DNS on Client

HTTP Client Linux

Open Openconfiguration configurationfor forediting editing [root@comp1 [root@comp1~]# ~]#vi vi /etc/resolv.conf /etc/resolv.conf

Accessing AccessingWebserver Webserver Open Mozilla or Fire Fox browser. Open Mozilla or Fire Fox browser. In Inthe theaddress addressbox boxtype typehttp://www.google.com http://www.google.com or or http://192.168.0.252 http://192.168.0.252

Add Addthe theDNS DNSserver serverIP IPaddress addressin infile file/etc/resolv.conf /etc/resolv.conf nameserver 192.168.0.253 nameserver 192.168.0.253

You might also like