0% found this document useful (0 votes)
112 views15 pages

Apache Web Server Guide

The document discusses the Apache web server. [1] Apache is an open-source web server software used to host websites and web applications. [2] It was originally released in 1995 and played a key role in the growth of the World Wide Web. [3] The document covers how to install and configure Apache on Linux, set up virtual hosting for multiple websites on a single server, and the different types of hosting like IP-based and name-based virtual hosting.

Uploaded by

ankita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
112 views15 pages

Apache Web Server Guide

The document discusses the Apache web server. [1] Apache is an open-source web server software used to host websites and web applications. [2] It was originally released in 1995 and played a key role in the growth of the World Wide Web. [3] The document covers how to install and configure Apache on Linux, set up virtual hosting for multiple websites on a single server, and the different types of hosting like IP-based and name-based virtual hosting.

Uploaded by

ankita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

APACHE WEB SERVER

By:

ANKITA SHARMA
Topics:

 Apache web server


 History
 Working of Apache
 Installation and configuration
 Virtual hosting
 Types of hosting
What is Apache web server?

 Web Server
A server on the Internet that hosts websites.

 Open source
Free

 Support server-side languages


PHP, Python, Perl, etc.

 Customization allowed
Customization is allowed.
History

 Released in 1995
 Notable for playing a key role in the initial growth of the
World Wide Web.
 The name ‘Apache’ was chosen from respect for the
Native American Indian tribe of Apache, well-known for their
superior skills in warfare strategy
Working of apache web server
Install Apache : Linux Platform

On Red Hat or rpm based systems:

 You can install Apache via the default Package Manager


available on all Red Hat based distributions like CentOs, Red
Hat and Fedora.

[root@localhost~]# yum install httpd


Enabling httpd service

[root@rvm~]# systemctl enable httpd

To start a server
 [root@rvm1~]# systemctl start httpd
Creation of a basic website

 [root@rvm1~]# cd /var/www/html/
 [root@rvm1~html]# ls
• (html directory will be empty).
 [root@rvm1~]# vim index.html
• (vi editor will be displayed type and write in the
text to it).
• (Again use the ls command to see the .html page on to
root directory).
• (Open any of the browser and type the page address to
display
content).
Modes of apache server
Prefork mode

• Apache is a non-threaded, pre-forking web server.


• It uses multiple child process with one thread and
• Each process handles one connection at a time
• It consumes more resources than the threaded .

Worker mode

• It uses multiple child process contains a multiple


thread and handles one request at a time.
• Consumes less memory space.
• Each thread handles one connection at a time
Virtual hosting

 Virtual Host term refers to the method of running more


than one website on a single system.

e.g such as host1.domain.com, host2.domain.com, or


www.domain1.com, www.domain2.com etc.,
E.g multiple websites hosted on a single server(Apache)
Types of hosting

IP address based hosting :

Different IP for every website.

Name based virtual hosting :

Multiple websites using single websites.


IP based hosting

 Meaning that you have a different IP address for every


websites

 Seperate IP for each domain

 Have unique IP address


Name-based hosting
 Meaning that you have multiple names running on each IP
address.
 All hostname are same.
THANK YOU !

You might also like