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 !