1. Trang chủ
  2. » Thể loại khác

Web server administration chap06

29 129 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 29
Dung lượng 262,5 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

 Understand how a Web server works  Install IIS and Apache Web servers  Examine the IIS and Apache properties  Host multiple Web sites  Configure new Web sites in IIS and Apache  U

Trang 1

Web Server Administration

Chapter 6 Configuring a Web Server

Trang 2

 Understand how a Web server works

 Install IIS and Apache Web servers

 Examine the IIS and Apache properties

 Host multiple Web sites

 Configure new Web sites in IIS and

Apache

 Understand virtual directories

Trang 3

How a Web Server Works

 HTTP (Hypertext Transfer Protocol) defines how information is passed between a

browser and a Web server

 The two most popular Web servers are

 Apache from Apache Software Foundation

 Internet Information Services (IIS) from

Trang 4

How a Web Server Works

 As is true with other servers such as DNS, Web servers listen for

communication at a port

 The default port is 80

 You can also create Web servers at port numbers greater than 1023*

 Each Web server has a root, which is where you store the HTML documents

Trang 5

Understanding HTTP

 The current version of HTTP is 1.1

 Virtually no browsers are so old that they do not support 1.1

 HTTP is a stateless protocol,

meaning that each Web page sent

is independent of every other Web page sent

 This makes it more challenging to

create a shopping cart application

Trang 6

Understanding HTTP

 HTTP 1.1 supports persistent

connections

 This allows the browser to receive

multiple files in one TCP connection

 This can speed up communication

 Although you see a single page in

your browser, it can be composed of many text and image files

Trang 7

Understanding HTTP

 When the browser sends a request to a

Web server, it looks like:

Trang 8

Understanding HTTP

 The following shows some of the

headers along with the HTML that the Web server would send:

Trang 9

Features in Apache

 Apache 1.3 was used for many years but

version 2.0 was released in 2001

 Apache can also be used as a proxy server

 A proxy server isolates your real Web server from the Internet

 Apache 2.0 has

 Better support for Windows

 Support for IPv6

 Simplified configuration

 Unicode support in Windows

 Multilanguage error responses

 Apache supports many programming

languages such as Perl and PHP

Trang 10

 Windows Server 2003 – IIS 6.0

can send e-mail from your Web pages

Trang 11

Features in IIS 5.0

 Web Distributed Authoring and Versioning (WebDAV)

 Allows a server to share Web-based files

 Named virtual hosting

 Multiple Web sites can share a single IP

address

 Per Web site bandwidth throttling

 Control bandwidth by Web site

 Kerberos authentication

 Secure Sockets Layer 3.0

 Encrypted communication

Trang 12

Features in IIS 6.0

 Increased security

 Default permits only HTML documents

 Expanded language support

 Can use XML and SOAP

 Support for IPv6

 Increased dependability

 Kernel-mode HTTP service

 Self-healing mechanism

Trang 13

Components in IIS

 File Transfer Protocol (FTP) server

 To transfer files between user and server

 FrontPage 2000 Server Extensions

 Used by programs to transfer files to and from a Web site

Trang 14

Installing Apache

 Apache can be installed when you

install Linux

 It is also on Red Hat CD 2

 If you install it from the Red Hat CD, the directories will be consistent with other server applications

 If you download it from the Apache Web site, you have to compile it and install it

Trang 15

Start Apache apachectl start

Stop Apache apachectl stop

Restart Apache apachectl restart

Trang 17

Default Web Site Properties in IIS

Trang 18

Tabs on the Default Web

Site Properties Dialog Box

 Operators (Windows 2000) only

 This property lists users who can administer

Web site

 Performance

 Limit bandwidth by Web site

 Limit simultaneous connections (Windows

2003)

 ISAPI Filters

 Specify applications that process HTTP requests

Trang 19

Tabs on the Default Web Site Properties Dialog Box

Trang 20

 Indicates whether Apache should

maintain a persistent connection

 Listen

 Determines the port number for the server

 Default is 80

Trang 22

Hosting Multiple Web Sites

Trang 23

Hosting Multiple Web Sites

by IP Address

 You can create multiple IP addresses on

a single NIC

 Referred to as virtual IP addresses

 Useful for flexibility because if each

domain has its own unique IP address, you can easily move the domain to a

different Web server

 It is getting more expensive to get

multiple IP addresses from an ISP

Trang 24

Hosting Multiple Web Sites

 You can host an almost unlimited

number of domains with a single IP

address

 It is the most common method of

hosting

Trang 25

Configuring a Virtual Host Based on an IP Address in Apache

 In /etc/rc.d/rc.local, add an IP address such as:

</VirtualHost>

Trang 26

Configuring a Virtual Host

Based on a Host Name in

Apache

 NameVirtualHost defines the common IP address

 Multiple configurations repeat the same IP

address and define unique ServerName settings

Trang 27

Configuring a Virtual

Directory in Apache

 The following associates the virtual

directory called prod with the location of the directory

Alias /prod/ “/var/www/prod/”

 Then it configures the directory

<Directory “/var/www/prod”>

AllowOverride None

Order allow, deny

Allow from all

</Directory>

Trang 29

 You can create multiple Web sites

on a single computer by adding

port numbers, IP addresses, and/or host names

 Virtual directories are directories

that appear to be located beneath the root, yet are physically located elsewhere

Ngày đăng: 22/02/2018, 14:50

w