Web Applications Development: ITSE3302 Dr. Moamar G. Elyazgi
Web Applications Development: ITSE3302 Dr. Moamar G. Elyazgi
Web Applications Development: ITSE3302 Dr. Moamar G. Elyazgi
ITSE3302
1
Contents
2
Module 2
Server Installation
3
Basic Web Server Concepts
Staticfile service
Security and authentication
Dynamic Conten
4
Basic Web Server Concepts
5
Basic Web Server Concepts
A basic web server has a very straightforward schema
of operation that executes the following loop infinitely:
1) It waits for requests on the assigned TCP port (The
recommendation port for HTTP is 80)
2) It receives a request.
5) It returns to step 2.
6
Static File Service
All web servers must at least be able to serve the
static files located on a specific part of the disc.
One essential requirement is to be able to specify
which part of the disc will be served.
Most web servers also allow us to add other directories
to be served, specifying the point of the virtual "file
system" on the server where they will be located.
Some web servers also allow us to specify security
directives (for instance, the addresses, users, etc. for
which a directory will be visible). Others allow us to
specify which files will be considered the directory
7 index.
Static File Service
/home/apache/html /
/home/company/docs /docs
/home/joseph/report /report-2003
8
Static File Service
/index.html /home/apache/html/index.html
/docs/manuals/product.pdf /home/company/docs/manuals/product.pdf/
/company/who.html /home/apache/html/company/who.html
/report-2003/index.html /home/joseph/report/index.html
9
Security and Authentication
13
Apache Server
14
The birth of Apache
Apache is a robust, free software web server implemented
through a collaborative effort that offers equivalent features
and functionality to commercial servers.
In February 1995, the most popular Internet web server was
a public domain server developed at NCSA (National Center
for Supercomputing Applications of the University of Illinois).
On 1 December 1995, Apache 1.0 appeared, which
included documentation and a number of improvements in
the form of embedded modules. Shortly afterwards, Apache
surpassed the NCSA server as the most widely used on the
Internet, a position that it has maintained to this day.
15