Download presentation
Presentation is loading. Please wait.
Published byEarl Carr Modified over 9 years ago
1
Web Server AEKAPOP@BUU.AC.TH
2
Content What is web server Web Server working concept ◦ Static document ◦ Dynamic document ◦ Client side Processing Easy Web Server Programing
3
Content Web Server installation ◦ Web Server Structure Web Server configuration ◦ Virtual Web hosting ◦ Server Side Include ◦ Comment Gateway Interface ◦ CGI VS FastCGI Question & Answer
4
What is Web Server
5
History of web server 1989 Tim Berners-Lee employee ofTim Berners-Lee CERN (European Organization for Nuclear Research) Work on HTTP (Hypertext Transfer Protocol) ◦ HTTP V 0.9 (1991) ◦ HTTP WG 1995 ◦ HTTP V 1.1 (1996) RFC 1945 ◦ HTTP V 1.1 (1999) RFC 2616
6
Web Server Working Concept Client – Server Network Concept Resource Type On Server ◦ Static document ◦ Dynamic document Client side Processing
7
Static Document Resource
8
Dynamic Document Resource
9
Client Processing
10
Popular Web Server Apache Web Server Microsoft Internet Information Services Nginx (engine-x)
11
All Web Server Market Share from NetCraft
12
Active Web Server Market Share from NetCraft
13
Active Web Server 2014 -2015 from NetCraft
14
Easy Web Server Programming with Node.js var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(1337, '127.0.0.1'); console.log('Server running at http://127.0.0.1:1337/');http://127.0.0.1:1337/') node example.js
15
How to Apache Web Server Installation Web Server Only # yum install httpd Web Server with php # yum install httpd php php-common
16
Configuration VirtualHost NameVirtualHost *:80 DocumentRoot /www/docs/www.web1.com ServerName www.web1.com DocumentRoot /www/docs/www.web2.com ServerName www.web2.com DirectoryIndex index.htm
19
Perl CGI Test # yum install perl # vi /var/www/cgi-bin/echo.pl #!/usr/bin/perl use strict; use warnings; print qq(Content-type: text/plain\n\n); print ”Hello CGI\n";
20
Question & Answer
21
LAB 03 Install Apache Web Server with PHP Programming Hello World CGI Create Virtual Web Hosting And index.html ◦ www.mysite-57160000.com www.mysite-57160000.com ◦ www.yoursite-57160000.com www.yoursite-57160000.com
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.