Web Fendamentals

Hiren Mistry
Hiren MistrySr. PHP developer at UNO App india em UNO App india
Server Fundamentals 1
Building and Managing Web Sites
with Microsoft Technologies
Web Server Fundamentals
Server Fundamentals 2
Server Fundamentals
• Software that answers requests for files,
printing, communications, etc.
• Server software normally accessed by many
different users via a network.
• Server software normally run on a
dedicated computer (“box”).
• The “Box” is often called a server as well.
• Server boxes typically more powerful than
workstations.
Server Fundamentals 3
Web Server Fundamentals
A webserver is software that does the following:
• Server receives requests from browser/client for
resources
– A resource is any chunk of information that can be
identified by a URL like HMTL or image files, scripts,
streaming media, etc.
• Server retrieves and/or processes the resource
• Server sends the resource back to the client
• Server logs the transaction
• Responses/requests occur using the HTTP
protocol, typically on port 80
Server Fundamentals 4
Sample HTTP Exchange
To retrieve the resource at
http://www.host.com/path/file.html
Browser sends request to host www.host.com, port 80:
GET /path/file.html HTTP/1.0
From: someuser@valtara.com
User-Agent: Mozilla/4.01
The server sends a response back to the client:
HTTP/1.0 200 OK
Date: Fri, 31 Dec 1999 23:59:59 GMT
Content-Type: text/html
Content-Length: 1354
<html><body><h1>Happy New Millenium!</h1>
(more file contents)
</body>
</html>
Server Fundamentals 5
Response Status Line
• Includes three parts separated by spaces
– the HTTP version
– a response status code that gives the result of the
request
– An English reason phrase describing the status code.
• Typical status lines are:
HTTP/1.0 200 OK or
HTTP/1.0 404 Not Found
Server Fundamentals 6
Common Response Status Codes
• 200 OK - Request succeeded, resulting resource is
returned in the message body
• 404 Not Found --The requested resource doesn't exist.
• 301 Moved Permanently
• 302 Moved Temporarily
• 303 See Other (HTTP 1.1 only) Resource has moved to
another URL (given by the Location: response header),
and should be automatically retrieved by the client.
• 500 Server Error -- Unexpected server error. Common
caused by a server-side script that has bad syntax, fails, or
otherwise can't run correctly.
Server Fundamentals 7
Response “Content-Type”
• Response header includes “Content-Type” to tell
client/browser how to handle the resource (display
a browser or launch an application/plug-in)
• Based on MIME types for email attachments
• Broad types: text, image, audio, video, application
• Many different subtypes, always new ones.
• E.g., Content-Type: text/html
• Most webservers software have a list of common
types – must define new subtypes on webserver
Server Fundamentals 8
Web Server Fundamentals
• Webservers process response/requests, log
activity, and handle scripts.
• Personal Web Server a good example.
• BUT -- Life gets complicated when…
– Additional services are desired (FTP,
Listservers, NNTP, Streaming Media, etc.)
– Server-side dynamic content can quickly
overwhelm a server “box”
Server Fundamentals 9
Establishing a Web Presence
• Different paths for different needs:
– Develop a small local webserver (PWS).
– Use space provided by your ISP.
– Lease space with a web hosting service.
– Lease a server with a web hosting service.
– Create and manage your own webserver.
– Create and manage a webserver farm.
Server Fundamentals 10
Key Considerations (1)
• Web site goals and architecture
– Static vs. dynamic content
– Internet vs. Intranet vs. Extranet
– Domain name required?
– Special technologies needed for some resources (e.g.,
streaming media, secure e-commerce)?
• Resources (Time, money, and expertise)
A balance between:
– How much can you spend (including personnel)?
– How much time and expertise do/can you have?
Server Fundamentals 11
Key Considerations (2)
• Site Usage
– How much traffic initially and in future?
– Secure access required for some/all of content?
• Control and Accountability
– What level of service/support is acceptable?
– Who gets the blame?
• Technology
– Are specific platforms/technologies required (e.g., Unix
vs. NT, FrontPage Server Extensions)?
Server Fundamentals 12
Develop a small webserver
• Use Personal Web Server or other
free/inexpensive webserver software locally.
• Can use nearly any type of computer.
• Typically used only for very small Intranets (10-
50 users) or development purposes.
• Low or no cost.
• Limited number of connections possible.
• Limited capabilities and reliability.
Server Fundamentals 13
Using your ISP
• Many ISPs offer space on their webservers (e.g.,
http://www.mother.com/~callen/ )
• Typically access pages via FTP.
• Minimal or no cost.
• Most ISPs provide few capabilities (limited
dynamic content, no FrontPage Extensions, etc.)
• Limited reliability and support – not a primary
business activity for ISPs.
• No domain name gives less professional
impression.
Server Fundamentals 14
Using a “free” service
• Other sites offer free web sites
• Typically must include advertisements or
other promotions in your web pages
• Limited disk space
• Example:
– Geocities (www.geocities.com)
• Check out http://www.freewebspace.net/
Server Fundamentals 15
Web hosting services – Leasing space
• Many companies specialize in providing equipment and
services to “host” your web site.
• They set up multiple “virtual webservers” on their
webservers.
• Server and maintenance costs spread among many users.
• Most services will handle registering your domain.
• Typical monthly costs (comparison difficult):
– Bare bones $10-20
– FrontPage Extensions, ASP, etc. $25-35
– Small/medium e-commerce site, $35-65
Server Fundamentals 16
Web hosting services - Advantages
• Low entry cost
• Service monitors your virtual server: 24 hours,
365 days/yr.
• Most offer multiple links to the Internet backbone.
• Most services claim/offer high uptime (98%+).
• Service manages hardware and server
maintenance.
Server Fundamentals 17
Web hosting services – Disadvantages
• Sharing server causes less reliable response times.
• Quality, support, and professionalism vary widely.
• Very competitive -- some go under.
• Very difficult to compare prices.
• Hassles moving from one service to another.
Server Fundamentals 18
Web hosting services - Leased servers
• Typically have expensive multiple, redundant
connections to Internet.
• Control of your server through Root or
Administrator access. Typically connect using PC
Anywhere or similar software.
• Services typically offer uninterruptible power
supply and generator back-ups.
• Typical monthly costs:
• $200-1000 depending on machine and features.
Server Fundamentals 19
Web hosting services – Shopping hints
• Define everything you must have before
you shop (FP Extensions, ASP, Index
Server, CGI, etc.)
• Use Hosting Service pages to identify good
prospects:
– http://www.hostsearch.com/
– http://www.webhosters.com/
Server Fundamentals 20
Web hosting services – Shopping hints
• Compare services/prices carefully.
– You get what you pay for – if it sounds too good to be
true, it is!
– Look for at 20MB of disk space for growth.
– Be careful of bandwidth – look for 1GB monthly
minimum.
– Ask for specific on SSL implementations.
– Domain registration should be free (although InterNIC
will charge you $70 for two years registration)
• Ask for a list of sites they are currently hosting.
– Check periodically for availability/response.
– E-mail webmaster for a quick comment of the service
Server Fundamentals 21
STOP AND THINK HARD!
• Before you think about managing your own
webserver, explore all outsourcing options.
• Managing your own webserver is resource
intensive.
• Don’t do it unless you need very high
control/accountability, extreme reliability,
or special technologies.
• Outsourcing is getting better and better…
Server Fundamentals 22
What you need for your webserver
• Staff
– Knowledgeable and/or trainable staff in web
management
• Connectivity
– A dependable connection to the Internet.
• Server
– A server box(s) for your webserver software and web
content.
• Webserver software
– Software to handle HTTP requests for resources.
Server Fundamentals 23
Staffing
• Training takes time – Expertise takes longer!
– Start small and build up…
• Hiring experts in-house takes time and is difficult.
– Limited pool of experts
• Contractors are costly…
– You will spend much time working with and managing
your contractors.
– If use contractors, try to have contractors train your in-
house staff.
Server Fundamentals 24
Connecting to the Internet (1)
• Dial-up or Dedicated Phone Line
– Use an analog modem (up to 56 kbps) via the PSTN
(Public Switched Telephone Network)
– Low-cost, available everywhere, slow, analog/digital
translation introduces problems, long-connection time,
not scalable
• ISDN (Integrated Services Digital Network)
– Connections between 64-128 kbps.
– Pretty good cost/value, pretty good availability (uses
existing lines), continuous connection possible, limited
scalability
Server Fundamentals 25
Connecting to the Internet (2)
• DSL/ADSL – Digital Subscriber Lines
• Provides a dedicated digital circuit between a
residence and a telephone company's central office
• A is for asynchronous – different speeds coming in
and going out – not ideal for a busy webserver.
• Current typical speeds of 1.5 MBPS downstream and
384 KBPS upstream (or 384/128 KBPS).
• Must be located within about 17,500 feet of their
central telephone switching office.
• Costs in flux – $35-200/month
• Good value, continuous connection, limited scalability
Server Fundamentals 26
Connecting to the Internet (3)
• Digital Data Service (DDS)
– Lease a digital line from a ISP or Telco.
– Requires a dedicated line and some type of unit
(Channel Service Unit/Data Service Unit) for
converting signals & protecting provider’s network
– Available in many forms: fractional T1, T1, T3, etc.
– Most common connections at:
• DS1/T1 – 1.544 mbps
• Fractional DS1/T1 available in 64 kbps increments
• DS3/T3 – 44.736 mbps (typically used by ISPs)
– Typical costs: $1000/month plus ISP costs
Server Fundamentals 27
Setting up a Server
• General considerations
– Avoid future problems and costs by purchasing off-the-
shelf, name-brand systems and components.
– Purchase as much machine (“more power!”) as you can
afford.
– Purchase a service agreement.
– Locate server in clean, cool, dry location.
– Make sure the equipment you buy will work with the
operating system.
• For NT, see: http://www.microsoft.com/isapi/hwtest/hcl.idc
Server Fundamentals 28
Basic Server Security
• Server “box” should be in a physically secure
location.
• Webservers should be located carefully on LANs.
– Webservers located within a LAN should not be located
on busy network segments.
– Routers can filter inappropriate packets.
– Firewall software/hardware can be used to screen
traffic more carefully.
– Ideally, Internet servers should be outside LAN.
Server Fundamentals 29
Server Operating Systems
• Windows NT Server
– GUI orientation
– Lower entry cost…
– Mass market appeal
– Integrated with other Microsoft products
• Unix - Solaris/HP-UX/AIX/SCO/s5r4
– Not cheap
– Well supported
– Additional web server required (most of the time)
• Unix – Linux/FreeBSD
– Cheap
– Support issues
– Includes Apache webserver, most popular in the world
Server Fundamentals 30
Server CPU
• Buy as much as you can -- stay behind leading
edge.
• Static content requires considerably less CPU than
dynamic content.
• Consider whether dynamic content can be
presented/converted into static content.
• Partition dynamic content onto separate servers to
increase performance.
• Server with average CPU load of >60% needs
upgrading.
Server Fundamentals 31
Server Memory
• The most critical portion of a webserver.
• Don’t skimp. Buy as much as you can afford!
• Commonly used resources (e.g., web pages) are
cached in memory.
• Many webservers run multiple services, each
which require memory.
• Consider your memory upgrade path.
• For Windows NT webservers:
– 128 MB is bare bones
– 256 MB is a good entry point
– Rumor: Windows 2000 happy at 512MB
Server Fundamentals 32
Server Hard Disks
• 3-5% chance of failing over a 3 year period.
• SCSI better (but more expensive) than ATA/IDE.
– Typically better throughput.
– Multiple drives can be active simultaneously.
– Supports RAID arrays. (see next slide)
• Better to have multiple disks
– o/s and services on one
– data on additional disks
• Isolate differing parts of a site on different volumes
• Particularly place data on a different “spindle” then you FTP
content or web pages
Server Fundamentals 33
RAID Arrays
• RAID (Redundant Array of Independent Disks)
joins several disks together to increase
performance and fault tolerance.
• RAID 1 or 5 is usually the best choice for a Web
server.
• RAID 1 (disk mirroring): data written to redundantly to two
separate hard drives working together.
– Should one drive fail, the others can take over automatically.
• RAID 5 (Striped Volume Sets)
– Even higher reliability across multiple volumes. Can be “hot
swapped”.
Server Fundamentals 34
Other Server Features
• CD-ROM
• Use a quality (expensive) network interface
card (NIC), which unburdens CPU.
• Quality SCSI/disk controller card
• Back-up technologies
– Tape
– Optical media
– CDR and CD/RW
Server Fundamentals 35
Configuring NT Server as a webserver
• Boot drive should be NTFS for security.
• Swap file should be on a separate physical disk
from the operating system.
• FTP Server should be on its own partition to avoid
filling attacks that fill up drive.
• Optimize o/s for server operation.
• Disable unnecessary services.
• Avoid loading unnecessary network protocols.
• If have multiple web servers, configure them the
same for simpler maintenance.
Server Fundamentals 36
Webserver Software
Top placed servers in March 1999
Source: http://www.netcraft.com/survey
Apache 2,409,056 54.89%
Microsoft-IIS 1,030,892 23.49%
Netscape Enterprise 205,645 4.69%
RapidSite 85,076 1.94%
WebSite Pro 78,515 1.79%
1 de 36

Recomendados

Cache Optimization with Akamai por
Cache Optimization with AkamaiCache Optimization with Akamai
Cache Optimization with AkamaiBlake Crosby
24.1K visualizações25 slides
Network client configuration por
Network client configurationNetwork client configuration
Network client configurationEduardo Cambinda
269 visualizações73 slides
PLNOG 6: Christian Kaufmann - How Akamai delivers your packets - the insight por
PLNOG 6: Christian Kaufmann - How Akamai delivers your packets - the insight PLNOG 6: Christian Kaufmann - How Akamai delivers your packets - the insight
PLNOG 6: Christian Kaufmann - How Akamai delivers your packets - the insight PROIDEA
17 visualizações20 slides
A Tale of 2 Systems por
A Tale of 2 SystemsA Tale of 2 Systems
A Tale of 2 SystemsDavid Newman
335 visualizações112 slides
CIRCUIT 2015 - Akamai: Caching and Beyond por
CIRCUIT 2015 - Akamai:  Caching and BeyondCIRCUIT 2015 - Akamai:  Caching and Beyond
CIRCUIT 2015 - Akamai: Caching and BeyondICF CIRCUIT
1.7K visualizações41 slides
Microservices for java architects it-symposium-2015-09-15 por
Microservices for java architects it-symposium-2015-09-15Microservices for java architects it-symposium-2015-09-15
Microservices for java architects it-symposium-2015-09-15Derek Ashmore
231 visualizações39 slides

Mais conteúdo relacionado

Mais procurados

Microservices for java architects schamburg-2015-05-19 por
Microservices for java architects schamburg-2015-05-19Microservices for java architects schamburg-2015-05-19
Microservices for java architects schamburg-2015-05-19Derek Ashmore
185 visualizações62 slides
Pycon2013 por
Pycon2013Pycon2013
Pycon2013Public Broadcasting Service
837 visualizações18 slides
The Ultimate Guide to Web Hosting for Beginners por
The Ultimate Guide to Web Hosting for BeginnersThe Ultimate Guide to Web Hosting for Beginners
The Ultimate Guide to Web Hosting for BeginnersTanvir Mustafa
265 visualizações19 slides
Forefront UAG por
Forefront UAGForefront UAG
Forefront UAGJames Tramel
543 visualizações48 slides
Web Technology – Web Server Setup : Chris Uriarte por
Web Technology – Web Server Setup : Chris UriarteWeb Technology – Web Server Setup : Chris Uriarte
Web Technology – Web Server Setup : Chris Uriartewebhostingguy
1.4K visualizações53 slides
WordPress hosting & Management: An overview por
WordPress hosting & Management: An overviewWordPress hosting & Management: An overview
WordPress hosting & Management: An overviewdominicj
166 visualizações34 slides

Mais procurados(19)

Microservices for java architects schamburg-2015-05-19 por Derek Ashmore
Microservices for java architects schamburg-2015-05-19Microservices for java architects schamburg-2015-05-19
Microservices for java architects schamburg-2015-05-19
Derek Ashmore185 visualizações
The Ultimate Guide to Web Hosting for Beginners por Tanvir Mustafa
The Ultimate Guide to Web Hosting for BeginnersThe Ultimate Guide to Web Hosting for Beginners
The Ultimate Guide to Web Hosting for Beginners
Tanvir Mustafa265 visualizações
Forefront UAG por James Tramel
Forefront UAGForefront UAG
Forefront UAG
James Tramel543 visualizações
Web Technology – Web Server Setup : Chris Uriarte por webhostingguy
Web Technology – Web Server Setup : Chris UriarteWeb Technology – Web Server Setup : Chris Uriarte
Web Technology – Web Server Setup : Chris Uriarte
webhostingguy1.4K visualizações
WordPress hosting & Management: An overview por dominicj
WordPress hosting & Management: An overviewWordPress hosting & Management: An overview
WordPress hosting & Management: An overview
dominicj166 visualizações
Web Application Optimization Techniques por takinbo
Web Application Optimization TechniquesWeb Application Optimization Techniques
Web Application Optimization Techniques
takinbo9.1K visualizações
Writing microservices in Java -- Chicago-2015-11-10 por Derek Ashmore
Writing microservices in Java -- Chicago-2015-11-10Writing microservices in Java -- Chicago-2015-11-10
Writing microservices in Java -- Chicago-2015-11-10
Derek Ashmore662 visualizações
Best wordpress hosting por ken1990julius
Best wordpress hosting Best wordpress hosting
Best wordpress hosting
ken1990julius261 visualizações
Xelemax Data Sheet_2015 por Michael Cohen
Xelemax Data Sheet_2015Xelemax Data Sheet_2015
Xelemax Data Sheet_2015
Michael Cohen322 visualizações
Different Types of Web Hosting Services por Jude Pugh
Different Types of Web Hosting ServicesDifferent Types of Web Hosting Services
Different Types of Web Hosting Services
Jude Pugh1.8K visualizações
Measuring CDN performance and why you're doing it wrong por Fastly
Measuring CDN performance and why you're doing it wrongMeasuring CDN performance and why you're doing it wrong
Measuring CDN performance and why you're doing it wrong
Fastly8.2K visualizações
XMPP Academy #1 por Mickaël Rémond
XMPP Academy #1XMPP Academy #1
XMPP Academy #1
Mickaël Rémond2K visualizações
Web host por Abhishek Pol
Web hostWeb host
Web host
Abhishek Pol272 visualizações
Memcached, presented to LCA2010 por Mark Atwood
Memcached, presented to LCA2010Memcached, presented to LCA2010
Memcached, presented to LCA2010
Mark Atwood1.3K visualizações
What to consider when monitoring microservices por Particular Software
What to consider when monitoring microservicesWhat to consider when monitoring microservices
What to consider when monitoring microservices
Particular Software321 visualizações
An Introduction To The DMARC SMTP Validation Requirements por Gabriella Davis
An Introduction To The DMARC SMTP Validation RequirementsAn Introduction To The DMARC SMTP Validation Requirements
An Introduction To The DMARC SMTP Validation Requirements
Gabriella Davis556 visualizações
Article10 por egrowtech
Article10Article10
Article10
egrowtech147 visualizações

Destaque

Summer training seminar por
Summer training seminarSummer training seminar
Summer training seminarGovind Singh Mahecha
927 visualizações21 slides
PHPNW14 - Getting Started With AWS por
PHPNW14 - Getting Started With AWSPHPNW14 - Getting Started With AWS
PHPNW14 - Getting Started With AWSbenwaine
637 visualizações41 slides
Nodejs por
NodejsNodejs
NodejsBhushan Patil
1.5K visualizações31 slides
Turning Marketing Words into a Branded People Experience por
Turning Marketing Words into a Branded People ExperienceTurning Marketing Words into a Branded People Experience
Turning Marketing Words into a Branded People ExperienceBridge Training and Events
1.1K visualizações202 slides
Web Security Introduction Webserver hacking refers to ... por
Web Security Introduction Webserver hacking refers to ...Web Security Introduction Webserver hacking refers to ...
Web Security Introduction Webserver hacking refers to ...webhostingguy
381 visualizações7 slides
Why Node.js por
Why Node.jsWhy Node.js
Why Node.jsguileen
2.9K visualizações69 slides

Destaque(17)

PHPNW14 - Getting Started With AWS por benwaine
PHPNW14 - Getting Started With AWSPHPNW14 - Getting Started With AWS
PHPNW14 - Getting Started With AWS
benwaine637 visualizações
Nodejs por Bhushan Patil
NodejsNodejs
Nodejs
Bhushan Patil1.5K visualizações
Turning Marketing Words into a Branded People Experience por Bridge Training and Events
Turning Marketing Words into a Branded People ExperienceTurning Marketing Words into a Branded People Experience
Turning Marketing Words into a Branded People Experience
Bridge Training and Events 1.1K visualizações
Web Security Introduction Webserver hacking refers to ... por webhostingguy
Web Security Introduction Webserver hacking refers to ...Web Security Introduction Webserver hacking refers to ...
Web Security Introduction Webserver hacking refers to ...
webhostingguy381 visualizações
Why Node.js por guileen
Why Node.jsWhy Node.js
Why Node.js
guileen2.9K visualizações
Basic Website 101 por Thomas Salmen
Basic Website 101Basic Website 101
Basic Website 101
Thomas Salmen446 visualizações
Ajax And JSON por Rody Middelkoop
Ajax And JSONAjax And JSON
Ajax And JSON
Rody Middelkoop1.1K visualizações
Joomla REST API por Ashwin Date
Joomla REST APIJoomla REST API
Joomla REST API
Ashwin Date10.7K visualizações
Pentesting web applications por Satish b
Pentesting web applicationsPentesting web applications
Pentesting web applications
Satish b12.4K visualizações
Server side scripting smack down - Node.js vs PHP por Marc Gear
Server side scripting smack down - Node.js vs PHPServer side scripting smack down - Node.js vs PHP
Server side scripting smack down - Node.js vs PHP
Marc Gear15.7K visualizações
Webservices: connecting Joomla! with other programs. por Herman Peeren
Webservices: connecting Joomla! with other programs.Webservices: connecting Joomla! with other programs.
Webservices: connecting Joomla! with other programs.
Herman Peeren21.1K visualizações
WebSphere App Server vs JBoss vs WebLogic vs Tomcat por WASdev Community
WebSphere App Server vs JBoss vs WebLogic vs TomcatWebSphere App Server vs JBoss vs WebLogic vs Tomcat
WebSphere App Server vs JBoss vs WebLogic vs Tomcat
WASdev Community5.8K visualizações
Client Vs. Server Rendering por David Amend
Client Vs. Server RenderingClient Vs. Server Rendering
Client Vs. Server Rendering
David Amend5.1K visualizações
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016) por Roman Kharkovski
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
Roman Kharkovski59.3K visualizações
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP por Matt Dunlap
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
Matt Dunlap10.8K visualizações

Similar a Web Fendamentals

Apache Web Server Setup 1 por
Apache Web Server Setup 1Apache Web Server Setup 1
Apache Web Server Setup 1Information Technology
1.3K visualizações52 slides
Lecture 11 client_server_interaction por
Lecture 11 client_server_interactionLecture 11 client_server_interaction
Lecture 11 client_server_interactionSerious_SamSoul
1.1K visualizações36 slides
Web-Server & It's Architecture.pptx por
Web-Server & It's Architecture.pptxWeb-Server & It's Architecture.pptx
Web-Server & It's Architecture.pptxAlokKumar250045
13 visualizações22 slides
Web technology por
Web technologyWeb technology
Web technologySelvin Josy Bai Somu
40.8K visualizações130 slides
E commerce por
E commerceE commerce
E commerceAmbili Baby
3.5K visualizações19 slides
Do you know where your server is? por
Do you know where your server is?Do you know where your server is?
Do you know where your server is?SKALI Group
607 visualizações23 slides

Similar a Web Fendamentals(20)

Lecture 11 client_server_interaction por Serious_SamSoul
Lecture 11 client_server_interactionLecture 11 client_server_interaction
Lecture 11 client_server_interaction
Serious_SamSoul1.1K visualizações
Web-Server & It's Architecture.pptx por AlokKumar250045
Web-Server & It's Architecture.pptxWeb-Server & It's Architecture.pptx
Web-Server & It's Architecture.pptx
AlokKumar25004513 visualizações
E commerce por Ambili Baby
E commerceE commerce
E commerce
Ambili Baby3.5K visualizações
Do you know where your server is? por SKALI Group
Do you know where your server is?Do you know where your server is?
Do you know where your server is?
SKALI Group607 visualizações
server-131210061249-phpapp02.pdf por KowsalyaJayakumar2
server-131210061249-phpapp02.pdfserver-131210061249-phpapp02.pdf
server-131210061249-phpapp02.pdf
KowsalyaJayakumar217 visualizações
Basic Server PPT (THDC) por Vineet Pokhriyal
Basic Server PPT (THDC)Basic Server PPT (THDC)
Basic Server PPT (THDC)
Vineet Pokhriyal41K visualizações
1. web technology basics por Jyoti Yadav
1. web technology basics1. web technology basics
1. web technology basics
Jyoti Yadav282 visualizações
Network operating system por John Carlo Catacutan
Network operating systemNetwork operating system
Network operating system
John Carlo Catacutan19K visualizações
Elc200day9 por Firas Husseini
Elc200day9Elc200day9
Elc200day9
Firas Husseini370 visualizações
Server operating system por Tapan Khilar
Server operating systemServer operating system
Server operating system
Tapan Khilar1.8K visualizações
05.m3 cms list-ofwebserver por tarensi
05.m3 cms list-ofwebserver05.m3 cms list-ofwebserver
05.m3 cms list-ofwebserver
tarensi360 visualizações
Cloud Services Powered by IBM SoftLayer and NetflixOSS por aspyker
Cloud Services Powered by IBM SoftLayer and NetflixOSSCloud Services Powered by IBM SoftLayer and NetflixOSS
Cloud Services Powered by IBM SoftLayer and NetflixOSS
aspyker4.1K visualizações
Content Devilery Network por Sanjiv Pradhan
Content Devilery NetworkContent Devilery Network
Content Devilery Network
Sanjiv Pradhan48 visualizações
Comet: by pushing server data, we push the web forward por NOLOH LLC.
Comet: by pushing server data, we push the web forwardComet: by pushing server data, we push the web forward
Comet: by pushing server data, we push the web forward
NOLOH LLC.2.4K visualizações
Basic computers for DIU laptop project students por Alauddin Azad
Basic computers for DIU laptop project studentsBasic computers for DIU laptop project students
Basic computers for DIU laptop project students
Alauddin Azad842 visualizações
1-1.pdf por ssusera99a83
1-1.pdf1-1.pdf
1-1.pdf
ssusera99a834 visualizações

Último

Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated... por
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...TomHalpin9
6 visualizações29 slides
AI and Ml presentation .pptx por
AI and Ml presentation .pptxAI and Ml presentation .pptx
AI and Ml presentation .pptxFayazAli87
11 visualizações15 slides
Advanced API Mocking Techniques por
Advanced API Mocking TechniquesAdvanced API Mocking Techniques
Advanced API Mocking TechniquesDimpy Adhikary
19 visualizações11 slides
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko... por
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...Deltares
14 visualizações23 slides
DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme... por
DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme...DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme...
DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme...Deltares
5 visualizações28 slides
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the... por
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...Deltares
6 visualizações22 slides

Último(20)

Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated... por TomHalpin9
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...
TomHalpin96 visualizações
AI and Ml presentation .pptx por FayazAli87
AI and Ml presentation .pptxAI and Ml presentation .pptx
AI and Ml presentation .pptx
FayazAli8711 visualizações
Advanced API Mocking Techniques por Dimpy Adhikary
Advanced API Mocking TechniquesAdvanced API Mocking Techniques
Advanced API Mocking Techniques
Dimpy Adhikary19 visualizações
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko... por Deltares
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
Deltares14 visualizações
DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme... por Deltares
DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme...DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme...
DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme...
Deltares5 visualizações
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the... por Deltares
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...
Deltares6 visualizações
Gen Apps on Google Cloud PaLM2 and Codey APIs in Action por Márton Kodok
Gen Apps on Google Cloud PaLM2 and Codey APIs in ActionGen Apps on Google Cloud PaLM2 and Codey APIs in Action
Gen Apps on Google Cloud PaLM2 and Codey APIs in Action
Márton Kodok5 visualizações
DSD-INT 2023 Wave-Current Interaction at Montrose Tidal Inlet System and Its ... por Deltares
DSD-INT 2023 Wave-Current Interaction at Montrose Tidal Inlet System and Its ...DSD-INT 2023 Wave-Current Interaction at Montrose Tidal Inlet System and Its ...
DSD-INT 2023 Wave-Current Interaction at Montrose Tidal Inlet System and Its ...
Deltares11 visualizações
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge... por Deltares
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
Deltares17 visualizações
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J... por Deltares
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...
Deltares9 visualizações
DSD-INT 2023 Process-based modelling of salt marsh development coupling Delft... por Deltares
DSD-INT 2023 Process-based modelling of salt marsh development coupling Delft...DSD-INT 2023 Process-based modelling of salt marsh development coupling Delft...
DSD-INT 2023 Process-based modelling of salt marsh development coupling Delft...
Deltares7 visualizações
Dapr Unleashed: Accelerating Microservice Development por Miroslav Janeski
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice Development
Miroslav Janeski10 visualizações
Keep por Geniusee
KeepKeep
Keep
Geniusee75 visualizações
Quality Engineer: A Day in the Life por John Valentino
Quality Engineer: A Day in the LifeQuality Engineer: A Day in the Life
Quality Engineer: A Day in the Life
John Valentino6 visualizações
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with... por sparkfabrik
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...
sparkfabrik5 visualizações
Headless JS UG Presentation.pptx por Jack Spektor
Headless JS UG Presentation.pptxHeadless JS UG Presentation.pptx
Headless JS UG Presentation.pptx
Jack Spektor7 visualizações
DSD-INT 2023 The Danube Hazardous Substances Model - Kovacs por Deltares
DSD-INT 2023 The Danube Hazardous Substances Model - KovacsDSD-INT 2023 The Danube Hazardous Substances Model - Kovacs
DSD-INT 2023 The Danube Hazardous Substances Model - Kovacs
Deltares8 visualizações
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ... por Donato Onofri
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...
Donato Onofri825 visualizações
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra... por Marc Müller
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra....NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra...
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra...
Marc Müller38 visualizações
FIMA 2023 Neo4j & FS - Entity Resolution.pptx por Neo4j
FIMA 2023 Neo4j & FS - Entity Resolution.pptxFIMA 2023 Neo4j & FS - Entity Resolution.pptx
FIMA 2023 Neo4j & FS - Entity Resolution.pptx
Neo4j7 visualizações

Web Fendamentals

  • 1. Server Fundamentals 1 Building and Managing Web Sites with Microsoft Technologies Web Server Fundamentals
  • 2. Server Fundamentals 2 Server Fundamentals • Software that answers requests for files, printing, communications, etc. • Server software normally accessed by many different users via a network. • Server software normally run on a dedicated computer (“box”). • The “Box” is often called a server as well. • Server boxes typically more powerful than workstations.
  • 3. Server Fundamentals 3 Web Server Fundamentals A webserver is software that does the following: • Server receives requests from browser/client for resources – A resource is any chunk of information that can be identified by a URL like HMTL or image files, scripts, streaming media, etc. • Server retrieves and/or processes the resource • Server sends the resource back to the client • Server logs the transaction • Responses/requests occur using the HTTP protocol, typically on port 80
  • 4. Server Fundamentals 4 Sample HTTP Exchange To retrieve the resource at http://www.host.com/path/file.html Browser sends request to host www.host.com, port 80: GET /path/file.html HTTP/1.0 From: someuser@valtara.com User-Agent: Mozilla/4.01 The server sends a response back to the client: HTTP/1.0 200 OK Date: Fri, 31 Dec 1999 23:59:59 GMT Content-Type: text/html Content-Length: 1354 <html><body><h1>Happy New Millenium!</h1> (more file contents) </body> </html>
  • 5. Server Fundamentals 5 Response Status Line • Includes three parts separated by spaces – the HTTP version – a response status code that gives the result of the request – An English reason phrase describing the status code. • Typical status lines are: HTTP/1.0 200 OK or HTTP/1.0 404 Not Found
  • 6. Server Fundamentals 6 Common Response Status Codes • 200 OK - Request succeeded, resulting resource is returned in the message body • 404 Not Found --The requested resource doesn't exist. • 301 Moved Permanently • 302 Moved Temporarily • 303 See Other (HTTP 1.1 only) Resource has moved to another URL (given by the Location: response header), and should be automatically retrieved by the client. • 500 Server Error -- Unexpected server error. Common caused by a server-side script that has bad syntax, fails, or otherwise can't run correctly.
  • 7. Server Fundamentals 7 Response “Content-Type” • Response header includes “Content-Type” to tell client/browser how to handle the resource (display a browser or launch an application/plug-in) • Based on MIME types for email attachments • Broad types: text, image, audio, video, application • Many different subtypes, always new ones. • E.g., Content-Type: text/html • Most webservers software have a list of common types – must define new subtypes on webserver
  • 8. Server Fundamentals 8 Web Server Fundamentals • Webservers process response/requests, log activity, and handle scripts. • Personal Web Server a good example. • BUT -- Life gets complicated when… – Additional services are desired (FTP, Listservers, NNTP, Streaming Media, etc.) – Server-side dynamic content can quickly overwhelm a server “box”
  • 9. Server Fundamentals 9 Establishing a Web Presence • Different paths for different needs: – Develop a small local webserver (PWS). – Use space provided by your ISP. – Lease space with a web hosting service. – Lease a server with a web hosting service. – Create and manage your own webserver. – Create and manage a webserver farm.
  • 10. Server Fundamentals 10 Key Considerations (1) • Web site goals and architecture – Static vs. dynamic content – Internet vs. Intranet vs. Extranet – Domain name required? – Special technologies needed for some resources (e.g., streaming media, secure e-commerce)? • Resources (Time, money, and expertise) A balance between: – How much can you spend (including personnel)? – How much time and expertise do/can you have?
  • 11. Server Fundamentals 11 Key Considerations (2) • Site Usage – How much traffic initially and in future? – Secure access required for some/all of content? • Control and Accountability – What level of service/support is acceptable? – Who gets the blame? • Technology – Are specific platforms/technologies required (e.g., Unix vs. NT, FrontPage Server Extensions)?
  • 12. Server Fundamentals 12 Develop a small webserver • Use Personal Web Server or other free/inexpensive webserver software locally. • Can use nearly any type of computer. • Typically used only for very small Intranets (10- 50 users) or development purposes. • Low or no cost. • Limited number of connections possible. • Limited capabilities and reliability.
  • 13. Server Fundamentals 13 Using your ISP • Many ISPs offer space on their webservers (e.g., http://www.mother.com/~callen/ ) • Typically access pages via FTP. • Minimal or no cost. • Most ISPs provide few capabilities (limited dynamic content, no FrontPage Extensions, etc.) • Limited reliability and support – not a primary business activity for ISPs. • No domain name gives less professional impression.
  • 14. Server Fundamentals 14 Using a “free” service • Other sites offer free web sites • Typically must include advertisements or other promotions in your web pages • Limited disk space • Example: – Geocities (www.geocities.com) • Check out http://www.freewebspace.net/
  • 15. Server Fundamentals 15 Web hosting services – Leasing space • Many companies specialize in providing equipment and services to “host” your web site. • They set up multiple “virtual webservers” on their webservers. • Server and maintenance costs spread among many users. • Most services will handle registering your domain. • Typical monthly costs (comparison difficult): – Bare bones $10-20 – FrontPage Extensions, ASP, etc. $25-35 – Small/medium e-commerce site, $35-65
  • 16. Server Fundamentals 16 Web hosting services - Advantages • Low entry cost • Service monitors your virtual server: 24 hours, 365 days/yr. • Most offer multiple links to the Internet backbone. • Most services claim/offer high uptime (98%+). • Service manages hardware and server maintenance.
  • 17. Server Fundamentals 17 Web hosting services – Disadvantages • Sharing server causes less reliable response times. • Quality, support, and professionalism vary widely. • Very competitive -- some go under. • Very difficult to compare prices. • Hassles moving from one service to another.
  • 18. Server Fundamentals 18 Web hosting services - Leased servers • Typically have expensive multiple, redundant connections to Internet. • Control of your server through Root or Administrator access. Typically connect using PC Anywhere or similar software. • Services typically offer uninterruptible power supply and generator back-ups. • Typical monthly costs: • $200-1000 depending on machine and features.
  • 19. Server Fundamentals 19 Web hosting services – Shopping hints • Define everything you must have before you shop (FP Extensions, ASP, Index Server, CGI, etc.) • Use Hosting Service pages to identify good prospects: – http://www.hostsearch.com/ – http://www.webhosters.com/
  • 20. Server Fundamentals 20 Web hosting services – Shopping hints • Compare services/prices carefully. – You get what you pay for – if it sounds too good to be true, it is! – Look for at 20MB of disk space for growth. – Be careful of bandwidth – look for 1GB monthly minimum. – Ask for specific on SSL implementations. – Domain registration should be free (although InterNIC will charge you $70 for two years registration) • Ask for a list of sites they are currently hosting. – Check periodically for availability/response. – E-mail webmaster for a quick comment of the service
  • 21. Server Fundamentals 21 STOP AND THINK HARD! • Before you think about managing your own webserver, explore all outsourcing options. • Managing your own webserver is resource intensive. • Don’t do it unless you need very high control/accountability, extreme reliability, or special technologies. • Outsourcing is getting better and better…
  • 22. Server Fundamentals 22 What you need for your webserver • Staff – Knowledgeable and/or trainable staff in web management • Connectivity – A dependable connection to the Internet. • Server – A server box(s) for your webserver software and web content. • Webserver software – Software to handle HTTP requests for resources.
  • 23. Server Fundamentals 23 Staffing • Training takes time – Expertise takes longer! – Start small and build up… • Hiring experts in-house takes time and is difficult. – Limited pool of experts • Contractors are costly… – You will spend much time working with and managing your contractors. – If use contractors, try to have contractors train your in- house staff.
  • 24. Server Fundamentals 24 Connecting to the Internet (1) • Dial-up or Dedicated Phone Line – Use an analog modem (up to 56 kbps) via the PSTN (Public Switched Telephone Network) – Low-cost, available everywhere, slow, analog/digital translation introduces problems, long-connection time, not scalable • ISDN (Integrated Services Digital Network) – Connections between 64-128 kbps. – Pretty good cost/value, pretty good availability (uses existing lines), continuous connection possible, limited scalability
  • 25. Server Fundamentals 25 Connecting to the Internet (2) • DSL/ADSL – Digital Subscriber Lines • Provides a dedicated digital circuit between a residence and a telephone company's central office • A is for asynchronous – different speeds coming in and going out – not ideal for a busy webserver. • Current typical speeds of 1.5 MBPS downstream and 384 KBPS upstream (or 384/128 KBPS). • Must be located within about 17,500 feet of their central telephone switching office. • Costs in flux – $35-200/month • Good value, continuous connection, limited scalability
  • 26. Server Fundamentals 26 Connecting to the Internet (3) • Digital Data Service (DDS) – Lease a digital line from a ISP or Telco. – Requires a dedicated line and some type of unit (Channel Service Unit/Data Service Unit) for converting signals & protecting provider’s network – Available in many forms: fractional T1, T1, T3, etc. – Most common connections at: • DS1/T1 – 1.544 mbps • Fractional DS1/T1 available in 64 kbps increments • DS3/T3 – 44.736 mbps (typically used by ISPs) – Typical costs: $1000/month plus ISP costs
  • 27. Server Fundamentals 27 Setting up a Server • General considerations – Avoid future problems and costs by purchasing off-the- shelf, name-brand systems and components. – Purchase as much machine (“more power!”) as you can afford. – Purchase a service agreement. – Locate server in clean, cool, dry location. – Make sure the equipment you buy will work with the operating system. • For NT, see: http://www.microsoft.com/isapi/hwtest/hcl.idc
  • 28. Server Fundamentals 28 Basic Server Security • Server “box” should be in a physically secure location. • Webservers should be located carefully on LANs. – Webservers located within a LAN should not be located on busy network segments. – Routers can filter inappropriate packets. – Firewall software/hardware can be used to screen traffic more carefully. – Ideally, Internet servers should be outside LAN.
  • 29. Server Fundamentals 29 Server Operating Systems • Windows NT Server – GUI orientation – Lower entry cost… – Mass market appeal – Integrated with other Microsoft products • Unix - Solaris/HP-UX/AIX/SCO/s5r4 – Not cheap – Well supported – Additional web server required (most of the time) • Unix – Linux/FreeBSD – Cheap – Support issues – Includes Apache webserver, most popular in the world
  • 30. Server Fundamentals 30 Server CPU • Buy as much as you can -- stay behind leading edge. • Static content requires considerably less CPU than dynamic content. • Consider whether dynamic content can be presented/converted into static content. • Partition dynamic content onto separate servers to increase performance. • Server with average CPU load of >60% needs upgrading.
  • 31. Server Fundamentals 31 Server Memory • The most critical portion of a webserver. • Don’t skimp. Buy as much as you can afford! • Commonly used resources (e.g., web pages) are cached in memory. • Many webservers run multiple services, each which require memory. • Consider your memory upgrade path. • For Windows NT webservers: – 128 MB is bare bones – 256 MB is a good entry point – Rumor: Windows 2000 happy at 512MB
  • 32. Server Fundamentals 32 Server Hard Disks • 3-5% chance of failing over a 3 year period. • SCSI better (but more expensive) than ATA/IDE. – Typically better throughput. – Multiple drives can be active simultaneously. – Supports RAID arrays. (see next slide) • Better to have multiple disks – o/s and services on one – data on additional disks • Isolate differing parts of a site on different volumes • Particularly place data on a different “spindle” then you FTP content or web pages
  • 33. Server Fundamentals 33 RAID Arrays • RAID (Redundant Array of Independent Disks) joins several disks together to increase performance and fault tolerance. • RAID 1 or 5 is usually the best choice for a Web server. • RAID 1 (disk mirroring): data written to redundantly to two separate hard drives working together. – Should one drive fail, the others can take over automatically. • RAID 5 (Striped Volume Sets) – Even higher reliability across multiple volumes. Can be “hot swapped”.
  • 34. Server Fundamentals 34 Other Server Features • CD-ROM • Use a quality (expensive) network interface card (NIC), which unburdens CPU. • Quality SCSI/disk controller card • Back-up technologies – Tape – Optical media – CDR and CD/RW
  • 35. Server Fundamentals 35 Configuring NT Server as a webserver • Boot drive should be NTFS for security. • Swap file should be on a separate physical disk from the operating system. • FTP Server should be on its own partition to avoid filling attacks that fill up drive. • Optimize o/s for server operation. • Disable unnecessary services. • Avoid loading unnecessary network protocols. • If have multiple web servers, configure them the same for simpler maintenance.
  • 36. Server Fundamentals 36 Webserver Software Top placed servers in March 1999 Source: http://www.netcraft.com/survey Apache 2,409,056 54.89% Microsoft-IIS 1,030,892 23.49% Netscape Enterprise 205,645 4.69% RapidSite 85,076 1.94% WebSite Pro 78,515 1.79%