Ch 22: Web Hosting and Internet Servers LaShall Bates.

Slides:



Advertisements
Similar presentations
Michelle J. Gosselin, Jennifer Schommer Guanzhong Wang.
Advertisements

1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Web Communication Client attempts to “pull” information from server – http message sent across Internet by TCP/IP* – packet switching used to route message.
Layer 7- Application Layer
Introduction to Web Interface Technology (CSE2030)
Definitions, Definitions, Definitions Lead to Understanding.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
Introduction 2: Internet, Intranet, and Extranet J394 – Perancangan Situs Web Program Sudi Manajemen Universitas Bina Nusantara.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
Web Client/Server Communication A290/A590, Fall /09/2014.
APACHE SERVER By Innovationframes.com »
Chapter 22 Web Hosting and Internet Servers Xuanxuan Su.
Linux Operations and Administration
2440: 141 Web Site Administration Remote Web Server Access Tools Instructor: Enoch E. Damson.
INTRODUCTION TO WEB DATABASE PROGRAMMING
IT 210 The Internet & World Wide Web introduction.
Web Servers Web server software is a product that works with the operating system The server computer can run more than one software product such as .
Configuring a Web Server. Overview Overview of IIS Preparing for an IIS Installation Installing IIS Configuring a Web Site Administering IIS Troubleshooting.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
Overview: Identify the Internet protocols and standards Identify common vulnerabilities and countermeasures Identify specific IIS/WWW/FTP concerns Identify.
Chapter 10 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain how the functions of the application layer,
Chapter 4: Core Web Technologies
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
Lecture#2 on Internet and World Wide Web. Internet Applications Electronic Mail ( ) Electronic Mail ( ) Domain mail server collects incoming mail.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols.
How did the internet develop?. What is Internet? The internet is a network of computers linking many different types of computers all over the world.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
HOW WEB SERVER WORKS? By- PUSHPENDU MONDAL RAJAT CHAUHAN RAHUL YADAV RANJIT MEENA RAHUL TYAGI.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
Hour 7 The Application Layer 1. What Is the Application Layer? The Application layer is the top layer in TCP/IP's protocol suite Some of the components.
1 Welcome to CSC 301 Web Programming Charles Frank.
Proxy Server PROXY SERVER. What is a Web Proxy? Proxy Server A proxy is a host which relays web access requests from clients Used when clients do not.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
1 Securing Network Services. 2 How TCP Works Set up connection between port on source host to port on destination host Each connection consists of sequence.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Protocols COM211 Communications and Networks CDA College Olga Pelekanou
1 Chapter Overview Creating Web Sites and FTP Sites Creating Virtual Directories Managing Site Security Troubleshooting IIS.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
17 Establishing Dial-up Connection to the Internet Using Windows 9x 1.Install and configure the modem 2.Configure Dial-Up Adapter 3.Configure Dial-Up Networking.
Remote Access Usages. Remote Desktop Remote desktop technology makes it possible to view another computer's desktop on your computer. This means you can.
Web Server Administration Chapter 6 Configuring a Web Server.
Apache Web Server Architecture Chaitanya Kulkarni MSCS rd April /23/20081Apache Web Server Architecture.
Presented by Lonnye Bower Fardin Khan Chris Orona APACHE WEB SERVER.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Week-10 (Lecture-1) Web Building STEPS OF BUILDING: create web pages using HTML add a consistent style using CSS add computer code using JavaScript add.
Web Server Administration Chapter 6 Configuring a Web Server.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
APACHE Apache is generally recognized as the world's most popular Web server (HTTP server). Originally designed for Unix servers, the Apache Web server.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Web and Proxy Server.
Distributed Control and Measurement via the Internet
Instructor Materials Chapter 5 Providing Network Services
Computer Networks.
WWW and HTTP King Fahd University of Petroleum & Minerals
Technologies and Applications
Ch 22: Web Hosting and Internet Servers
Web Development Web Servers.
Chapter 22 Web Hosting and Internet Servers
Processes The most important processes used in Web-based systems and their internal organization.
IIS.
Configuring Internet-related services
APACHE WEB SERVER.
Chapter 7 Network Applications
Web Servers (IIS and Apache)
Computer Networks Protocols
Presentation transcript:

Ch 22: Web Hosting and Internet Servers LaShall Bates

Web Hosting Providing –Raw web pages (HTML) –FTP –SSL –Streaming audio or video

Linux vs. Windows hosting??? Linux provides –Maintainability and performance –Multi user, interactive OS –Multi task Administration –Can be tuned to be faster

The Basics A web server is a system configured to answer HTTP requests. Browsers contact these remote web servers and make requests on behalf of users. To convert a generic Linux system, install a daemon that listens for connections on TCP port 80, accepts requests for docs and transmits them to the requesting user.

URL Uniform Resource Locator, the global address of docs and other resources on the WWW. 5 parts of the address 1. What protocol to use 2. IP address or the domain name where the resource is located. 3. TCP/IP port (opt) 4. Directory (opt) 5. Filename (case sensitive)

URL ex. An executable file that should be fetched using the FTP protocol –ftp://uark.edu/stuff.exe A Web page that should be fetched using the HTTP protocol –

URL Protocols http - hypertext transfer protocol (WWW) https - secure http (use HTTP/SSL ftp - file transfer protocol (FTP) news - Usenet news protocol javascript - local javascript execution file - local files on local computer mailto - sends mail to specified address telnet - used to open telnet sessions ldap – access LDAP directory services

How HTTP works HyperText Transfer Protocol, the underlying protocol used by the WWW. HTTP defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. For example, when you enter a URL in your browser, this actually sends an HTTP command to the Web server directing it to fetch and transmit the requested Web page.

HTTP: Stateless Protocol HTTP is called a stateless protocol because each command is executed independently, without any knowledge of the commands that came before it. This is the main reason that it is difficult to implement Web sites that react intelligently to user input.

CGI The shortcoming of HTTP is being addressed in a number of technologies, including CGI, ActiveX, Java, JS and cookies. CGI is a specification that allows the designer to provide active changing web content. It allows the HTTP server to exchange info with other programs.

CGI: generating on the fly CGI scripts can be C(++), Perl, Python or any other program that can perform real-time I/O

CGI: security CGI poses a security problem for Admins. It can potentially allow anyone to run a program on your server and/or gain access to files.

Load balancing Hits/page views a server can handle. Dependent on –Operating system –System tuning –Hardware architecture –Construction of site More important: Scalability –Products spread the work specified by a variety of admin-config params such as individual server response time and availability

Choosing a Server Robustness Performance Timeliness of updates and bug fixes Availability of source code Cost Access control and security Ability to act as a proxy Ability to handle encryption

Apache The August 2002 Netcraft Web Server Survey found that 63% of the web sites on the Internet are using Apache, thus making it more widely used than all other web servers combined.Netcraft Web Server Survey

Apache 1.The name 'Apache' was chosen from respect for the Native American Indian tribe of Apache, well-known for their superior skills in warfare strategy and their inexhaustible endurance. 2.Secondarily, and more popularly (though incorrectly) accepted, it's a considered cute name which stuck. Apache is "A PAtCHy server". It was based on some existing code and a series of "patch files".

Installing Apache If you want to compile source code yourself –./configure –prefix=/etc/httpd/ Include or remove features –enable-module=, disable-module= For a complete list of modules Run make, then make install to compile and install appropriate files

Configuring Apache After installation, configure setup –conf directory (/etc/httpd/conf) 3 files to configure –httpd.conf –srm.conf –access.conf

Apache Conf files: httpd httpd.conf –How Apache daemon interacts with system. Set TCP port location of log files various network and performance params Configure virtual connections

Apache Conf files: srm srm.conf –Controls resources server needs –DocumentRoot def: defines root of directory tree in which servable docs are located. –Also handling of “special” URLs (ex.

Apache Conf files: access access.conf –Security concerns –Directives that control access on a per-file pr per-dir basis, prevents access to sensitive files vs. httpd –Use option ExecCGI in srm.conf to enable CGI restrictions Allows two access controls one for entire doc dir and one for cgi-bin.

Running Apache Start by hand –/usr/sbin/httpd –f /etc/httpd/conf/httpd.conf or from rc scripts –Run at boot time make link in rc directory that points to /etc/init.d/httpd file –Start late in booting sequence after daemons that manage functions such as routing and time synchronization have started

High performance Hosting TUX is an architecture for kernel- accelerated network services. Runs in conjunction with Apache Serves up static pages without leaving kernel space. Minimizes context switches with a zero-copy architecture. Not recommended for beginners

Virtual Interfaces Allowing the hosting of more than one web site by associating more than one IP address with a system. Allows daemon to identify request’s destination IP address. Single Linux machine responds on the network to more IP addresses than it has physical network interfaces. Each of the result “virtual” network interfaces can be associated with a corresponding domain name that users on the Internet might want to connect to.

Needs of Virtual Interfaces Create the virtual interface at TCP/IP level –ifconfig eth0: netmask up –To make permanent modify startup Tell Apache server about virtual interfaces created. –Add VirtualHost clause to httpd.conf file –One for each virtual interface

Caching and Proxy Servers Squid Internet Object Cache –Caching and proxy server that runs under Linux and supports several protocols How it works –Client browser contacts squid to request object –Squid makes request on client’s behalf (or finds cached copy) and returns result to client –Proxy servers can enhance security or filter content

Anonymous FTP server Lets users have accounts to download files you have made available. Create user Create the user ftp in /etc/passwd. –Misc group, let ~ftp be root you wish anon. users to see. –Use invalid psw and use shell for better security ftp:*:400:400:Anonymous FTP:/home/ftp:/bin/true

Anonymous FTP: create user dir Home directory: –Owned by root, same group as ftp, so Group permissions will be for anonymous users –Set the permissions for ~ftp to 555 (read, nowrite, execute). –Create subdirs: bin, etc, lib, and pub –Copy ls program to ~ftp/bin and its shared libraries to ~ftp/lib –Copy /etc/passwd and group files to ~ftp/etc Should only contain users root, daemon, and ftp Replace psw with *’s

Anonymous FTP: Use Put files you want to make available in ~ftp/pub

Questions References: