Web servers
-
Upload
mostafa-alinaghi-pour -
Category
Technology
-
view
625 -
download
1
description
Transcript of Web servers
IN THENAME OFGOD
WEB SERVERSMOHSEN BEIGIMOSTAFA ALINAGHI POURSALMAN NAMAVAR
WHAT IS WEB SERVER?
WEB BROWSER WEB SERVER
NETWORK
FirefoxChrome
SafariOpera
ApacheIIS
NginxGWS
Requestion some thing form web serverMoving request from client to serverGenerating answer for client and sending answerMoving servers answerPresenting servers answer to client
HISTORY … First time by sir Tim Berners-Lee In CERN (European Organization for Nuclear Research) He wrote two programs:
• a browser called WorldWideWeb• a web server known as CERN httpd
WEB SERVERS DUTY Generating web content for client (HTML , JavaScript ,media file and etc) Running server side script (NSAPI , CGI)
Processing client request Web services
MOST KNOWN WEB SERVERS
Apache 151,516,152 web site hosted 59.35 percent
IIS 56,723,544 web site hosted 22.22 percent
Nginx 16,910,205 web site hosted 6.62 percent
GWS 14,933,865 web site hosted 5.85 percent
IIS Features Graphical user interface for server management Compatible with Microsoft products Good performance monitoring features Powerful supports from microsoft Secured at first
IIS Disadvantages It’s not cross platform Crash over request gain Source code is proprietary Hard URL manipulation Low speed Incompatible with php and mySql
Apache Features Best performance for webserver It’s open source Allows remote administration It’s cross-platform (best performance on Linux) It’s free to download and use Large user community support Core functionality extended by compiled modules Powerful URL manipulation (mod_rewrite)
Apache Disadvantages Console mode Needs more technical knowledge Bad configurations cause bad attack Lack of .net support (mono project)
URL MANIPULATIONSearch engines URL friendly
Real URL Http://www.example.com/showPost.php?id=45&year=2010&month=5&day=14
SEF URL Http://www.example.com/2010/5/14/45
Change extension
Real URL Http://www.example.com/save.php
Changed URL Http://www.example.com/save.html
RedirectingFirst URL Http://example.com
Redirected URL Http://www.example.net
READ MORE: ‘mod_rewrite’ module
HOW TO START USING …
Install apache , mySql , php and etc manually
Using apache friendsXAMPPWAMP
CACHE SERVERS
WEB SERVER WEB SERVER WEB SERVER
ClientClientClientClient
jQuery Library sampleFrom my serverFirst time load: 6.2 s Second time: 2.1 sFrom google server First time load: 0.7 s Second time: 0.3 s
READ MORE : ‘cache control’
cPanel
cPanel Preferences
cPanel Mail
cPanel Files
cPanel Logs
cPanel Domains
cPanel Databases