AIM: To study and implement the configuration of APACHE web browser.
STEPS:-
1. Start Fedora 10
2. Open Terminal and begin the following procedure. Login as ROOT
3. Enter into html directory by typing cd /var/www/html which is the Home
Directory of Apache server.
4. Simultaneously, you can open another terminal for this purpose. Login as
ROOT. Enter into httpd/conf directory by typing cd /etc/httpd/conf
5. Now, Open vi httpd.conf file and check out the following details like:
a. DocumentRoot : This shows the root/home directory of apache server
documents. (var/www/html)
b. DirectoryIndex: This shows the list of files that apache will serve if a
directory is requested. (index.html)
6. For checking the process Inside the RAM , type ps –el |grep httpd
Type /etc/init.d/httpd start for starting all the HTTPD process in RAM.
7. And again by typing ps –el |grep httpd, we can see some number of
processes. In our case, we see 9 lines. We can see in the below figure, we
are having 8 child process and 1 parent process. In this m we can change
the number of server processes to start. For example, StartServers 23
Means there will be 24 processes including 23 child process and 1 parent
process.
8. Now, Make another directory in /var/www/html and name it as google.
Create a HTML file , add any message in it and name it as index.html
9. Again Make another directory in /var/www/html and name it as yahoo.
Create a HTML file , add any message in it and name it as index.html
10. In other terminal, open httpd.conf file and edit the file shown in below
figure. In <VirtualHost> tag, make the following changes.
11. For copying lines, we can press number of lines to copy and press ‘yy’ and
for pasting lines, we can simply press ‘p’. This copying and pasting of lines
can be done only in ESC mode.
12. Type vi /etc/hosts for uses a resolver library to obtain the IP address
corresponding to a host name. And also to enter the server name of your
website such as google.com or yahoo.com
13. After the Editing , save the changes made by restarting the httpd server
using command /etc/init.d/httpd restart
14. Run your website, by typing elinks google.com or elinks yahoo.com
Top Related