Web Mid
Web Mid
• A static web page displays the same information for all users, from all contexts or subject making
customization impossible.
• Thus, Static web pages are suitable for the contents that never or rarely need to be updated.
MS EXCEL.xls, xlsx
.htm
.html
Microsoft Silverlight
Pages are associated with each other by a menu of links or "Navigation Menu"
Changes to the main Navigation Menu will require an edit to every web page that contains this menu.
Web development software can automate Navigation Menu maintenance, but pages will still need to be
re-published for changes to take effect.
✔ Static Web Page Files are published by physical transfer from the development PC to a Web Hosting
Computer
Dynamic Website
A server-side dynamic web page is a web page whose construction is controlled by an application server
processing server-side scripts. They can be customised according to the need of the user!
Dynamic Websites
Employ Dynamic pages that exist as files with extensions based on the type of programming used.
Pages are Dynamic in that they can draw ever changing Content from external information sources
Pages can provide Create, Retrieve, Update, and Delete functions for company records
Registration and Login, personal profile maintenance, and authenticated/secure access to protected or
premium content
Information that is already maintained within company I.T. Systems such as Databases, Spreadsheets,
and text files can be leveraged as Web Content.
A web content management (WCM) system is a CMS designed to simplify the publication of Web
content to Web sites, in particular allowing content creators to submit content without requiring
technical knowledge of HTML or the uploading of files.
When new web pages are added, Page Navigation Menus are maintained automatically
Many Common Interactive and Dynamic Features may be provided such as: forms, articles, blogs,
ecommerce, event calendars, forums, etc.
Pages may have a modular design featuring panels/areas for information of certain types on select
pages
Static website
It is highly secure than dynamic sites because it behave as a half duplex approach so only one way
communication is possible i.e.., server to client.
It is directly run on browser and does not require other server application language static website can be
created form html and css.
Dynamic website
Dynamic sites deal with database and generate the contents dynamically using database quires.
Dynamic website are less secure because it behave as full duplex approach so both side communication
is possible so user can change the server data.
It run the application on server and the output will display on webpage so this is require server
application language like PHP, ASP.NET.JSP etc.
Web Server Definition
■ A Web server is a program that generates and transmits responses to client requests for Web
resources.
➤ The server simply retrieves the file associated with the URL and returns the contents to the client.
➤ The server may invoke a script that communicates with other servers or a back-end database to
construct the response message.
➤ A Web site consists of a collection of Web pages associated with a particular hostname.
➤ Read and parse the HTTP request message for example GET the resource/foo.htm
➤ Translate the URL to a file name for example the resource be located in the base directory such as
/www, where the URL http://www.bar.com/foo/index.html corresponds to the file of
www/foo/index.html
➤ Generate and transmit the response that includes header to show the status information
Access Control
■ A Web server may limit which users can access certain resources. Access control requires a
combination of authentication and authorization.
AUTHENTICATION
Most client-server systems authenticate a user by asking for a name and password.
Web server must perform authentication for every request for a resource that has access restrictions.
The server returns an HTTP response that indicates that the request requires authorization.
AUTHORIZATION
To control access to Web resources, the server must employ an authorization policy.
A policy typically expressed in terms of an access control list that enumerates the users who are granted
or denied access to the resources.
In addition to checking the user name, the server may allow or deny access to the resource based on
other information associated with the HTTP request, such as the host name or IP address of the
requesting client.
Authenticating HTTP requests can impose a heavy load on the Web server.
This feature differentiates the Web from earlier file transfer services on the Internet.
➤ Server-side include
➤ Server script
Server-Side Include
A server-side include instructs the Web server to customize a static resource based on directives in an
HTML-like file.
Server Script
➤ A separate process
Server Script
■ The server can interact with the script in several different ways:
■ Decoupling the scripts from the Web server requires a well-defined interface for passing data
between the two pieces of software.
■ Common Gateway Interface (CGI) defines interfaces for a variety of operating system platforms.
■ Cookies are typically created, used, and modified by scripts invoked to generate dynamic responses,
rather than by the Web server.
■ A script can use a cookie as a user identifier in interacting with a back-end database.
■Storing history information in the cookie may obviate the need to retain information about the user in
a back-end database.
■ A Web server may retain some information to reduce the overhead of handling future requests by:
■ In server-side caching, data from the disk is cached in main memory at the server.
➤ Static files
➤ Dynamically generated responses
■ the server would need to ensure that the cached result is consistent with the primary copy of the
information.
■ The server could store the information generated in the process such as:
■ The server could cache certain information across requests for different resources:
➤ Current date/time
➤ Client name
Server Architecture
■ Some techniques for allocating system resources among competing client requests are :
■ An event-driven server
➤ Allows the server to serialize operations that modify the same data
A process-driven server
>> The master process creates, or forks, a separate process for each new connection
➤ Terminates the process after parsing the client request and transmitting the response
➤ The strengths of the event-driven and process- driven models are combined
➤ Each process would become an event-driven server that alternates between a small collection of
requests
Server Hosting