Apache Web Server. Aim of this section –Introduce you to workings of the most common webserver –Give you a little experience in role of webmaster Configuring.

Slides:



Advertisements
Similar presentations
Welcome to Middleware Joseph Amrithraj
Advertisements

What all is there Inside the Apache web server. These slides are part of study material of LAMP course. Course conducted by Prof Rocky Jagtiani – Technical.
Web Server Onno W. Purbo Web server.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
20-753: Fundamentals of Web Programming 1 Lecture 11: Web Server Case Study Fundamentals of Web Programming Lecture 11: Web Server Case Study.
Chapter Apache Installation on Linux. Acknowledgement The contribution made by Darrin Morison is acknowledged.
Initial web server configuration 1WUCM1. Overview Planning Testing the OS/Environment – IP setup Installation Configuration – Simple minimum details Testing.
Apache Installation by Jack Davis. Web Servers The Apache HTTP Server is the most widely used web server on the Internet. Apache is fast, free, and full-featured.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Initial web server configuration Dr Jim Briggs 1WUCM1.
Apache Configuration Setting up a web server. Basic Server Facts Runs on port 80 Server application -> httpd Richly configurable Many defaults will let.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
Scalability and planning for growth 1WUCM1. Content management issues Structural – Naming (e.g. file, URL) policy – File and directory naming needs: invent/design/borrow.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
CSE 190: Internet Commerce Lecture 4: Web Servers.
Configuring a Web Server. Overview  Understand how a Web server works  Install IIS (Internet Information Services) and Apache Web servers  Examine.
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.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
APACHE WEBSERVER.
APACHE SERVER By Innovationframes.com »
Apache httpd Web Server C. Edward Chow. Advanced Internet & Web Systems chow2 Outline of the Talk Introduction to Apache httpd web server Basic Compilation,
Chapter 22 Web Hosting and Internet Servers Xuanxuan Su.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Hands-On Microsoft Windows Server 2008 Chapter 8 Managing Windows Server 2008 Network Services.
Apache Architecture. How do we measure performance? Benchmarks –Requests per Second –Bandwidth –Latency –Concurrency (Scalability)
Virtual Hosts The apache server can handle multiple “web sites” at a time – a web service provider company may have multiple different sites to offer (see.
Linux Operations and Administration
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 .
An introduction to Apache. Different Types of Web Servers Apache is the default web server for may Unix servers. IIS is Microsoft’s default web server.
Apache httpd Web Server C. Edward Chow. Advanced Internet & Web Systems chow2 Outline of the Talk Introduction to Apache httpd web server Basic Compilation,
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Web Services CSCI N321 – System and Network Administration Copyright © 2007,2008 by Scott Orr and the Trustees of Indiana University.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
1 Apache and Virtual Sites and SSL Dorcas Muthoni.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG 11 Kigali, Rwanda May 2010 Dorcas Muthoni Courtesy: Hervey Allen.
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
Apache Web Server Administration Syed Iqbal Syed Iqbal.
1 Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG X Cairo, Egypt May 2009 Hervey Allen.
LinuxChix Apache. Serving Webpages The layer 7 protocol (HTTP) is what our browsers talk to get us the websites we can't seem to live without. HTTP is.
Web Access. Overview  Purpose  Prerequisites  Install Components  Enable Virtual Directories  IIS Configuration & Security  Troubleshooting.
Apache HTTP Server from 10,000 feet An open source Apache feature overview and discussion.
WEB SERVER SOFTWARE FEATURE SETS
Apache Global Configuration Apache MPM (multi-processing modul) Common Directives.
Web Server (Apache httpd ) 1. 2 Apache Web Server A PAtCHy server: developed by the Apache group History- First.
More than one site? Use multiple configuration files Use multiple configuration files  httpd –d {path}  Assumes “conf/httpd.conf” Logging transactions.
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.
Web Server Apache PHP HTTP Request User types URL into browser Address resolved if nec. We use directly Most browsers request.
BZUPAGES.COM WEB SERVER PRESENTED TO: SIR AHMAD KAREEM.
IBM Http Server Basic Administration. CONTENTS Web server IHS How does IHS differ from Apache Basic configurations Advanced Configurations Performance.
Planning, configuring, running and maintaining a web server -1.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
Apache Web Server. Outline of the Talk : Introduction to Apache httpd web server Basic Compilation, Installation and Configuration Performance Features:
Free, online, technical courses Take a free online course. Microsoft Virtual Academy.
Web Server Administration Chapter 6 Configuring a Web Server.
Apache Configuration. Application Install IBM HTTP Server is Apache.
APACHE Apache is generally recognized as the world's most popular Web server (HTTP server). Originally designed for Unix servers, the Apache Web server.
Presented by Michael Rainey South Mississippi Linux Users Group
Web and Proxy Server.
Web Protocols and Practice
Apache web server Quick overview.
Unix System Administration
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
Apache Web Server A PAtCHy server: developed by the Apache group formed 2/95 around a number of people who provided patch files for NCSA httpd 1.3 by Rob.
IIS.
Unit-5 Chap-1 Configuring Web Server
Configuring Internet-related services
APACHE WEB SERVER.
Presentation transcript:

Apache Web Server

Aim of this section –Introduce you to workings of the most common webserver –Give you a little experience in role of webmaster Configuring apache Installing server Setting access controls on files etc Apache

Most common httpd daemon server –Just over 60% of market –Used as basis of some other products (e.g. IBM Websphere application servers) Versions exist for Unix, Linux, and Windows –Windows version does differ in implementation detail

Apache apachetoday.com –URL still valid, but now swallowed up by “ServerWatch” –Still has Apache tutorials

Apache versions 1.3.xx (currently ) –The classic Apache, the one whose process structure is described in these lectures. –Still widely used 2.x –A modernized threaded server structure –2.2.x on Unix – on Windows

January 2006 stats Server Market Share No. of Sites(.com) domains Apache67.38% 25,522,907 Microsoft-IIS20.29%8,371,612 Unknown5.59% 3,115,393 Sun-ONE-Web-Server 2.07%1,061,053 Zeus0.75%208,496 WebLogic0.02%7,846 Oracle0.01%2,637 NCSA HTTPd 0.00%315 Server No. of Sites Market Share No. of Sites With.com domains Apache 50,502, % 25,522,907 Microsoft-IIS 15,208, % 8,371,612 Unknown 4,186, % 3,115,393 Sun-ONE-Web-Server 1,551, % 1,061,053 Zeus 561, % 208,496 WebLogic 13, % 7, Oracle 8, % 2, NCSA HTTPd 1, % 315

Apache – Things you should know

Aspects of Apache (1) Processes – How does it work – Administrator controls resource usage Modules – These determine the functionality of a particular server – Administrator chooses the necesary modules Access control – Administrator can limit web-clients’ access to different resources

Aspects of Apache (2) Logs –Usefull data for usage pattern analysis and problem determination Virtual Hosts –An apache web server can serve several sites (by pretending to be a diffrent server) Mechanisms for dynamic page generation –CGI, SSI,... How to configure

Apache Processes (Unix/Linux) Apache httpd CHIEF process monitoring port Child processes: –Pool of preforked processes each running apache The chief process keeps track of the childs (minimum and maximum nr of childs etc)

Apache Processes (Unix/Linux) Child processes (1.3) –Each child acts like a “serial server” –Each child has a maximum number of connections that can handle (one at a time); ones it has dealt with that number it must terminate

Apache Processes (Unix/Linux) Child processes (2.x) –Each child acts like a “threaded server” –Each child deals a number of connections at a time

Apache Processes (Unix/Linux) Child processes –Client connections tipicaly contain a sequence of requests. –Usually Apache configured to “keep alive” connections

Apache Administrator role: performance Must set limits on processes in order to achieve acceptable performance levels from host computer –MaxClients, Memory Limits, Swapping, cacheing... –MinSpareServers, MaxSpareServers... Must set limits for actions of child processes –KeepAlive, MaxKeepAliveRequests, KeepAliveTimeout –Timeout –MaxRequestsPerChild

Apache Modules Apache Server –Core Component (serves simple static HTML) –Modules (implement optional features and extensions)

Modules Standard Modules: –mod_cgi, mod_env, mod_log_config, mod_mime, mod_negociation (core functionality) –mod_status, mod_dir, mod_autoindex (information modules) –mod_access, mod_auth, mod_userdir, mod_alias (access control) –mod_imap, mod_include, mod_actions (extra processing) Optional modules: –mod_proxy, mod_rewrite, mod_speling Add-on modules –mod_perl, mod_php, etc...

Apache Administrator role: modularity Must select the modules to be incorporated –Functionality –Security Config parameters for each module

Apache : access control Apache set-up must secure file-space against inapropriate web access (location, access controls, authorisation) Apache’s user –It has to be started by root (in order to gain control of port 80 < 1024) –Should imidiately switch to a non-priviledged user (apache) –If root is not available use own filespace and port above 1024

Apache : access control (cont) Basic controls (mod_access) allows restrictionsbased on IP address of the request General policies specified in conf files ( sections) Overrides possible with.htaccess files (costly) Authorization: 401 error requests auth. The server can check against text files, dbm, sql –The browser must perform state maintenance –It can be basic (text files) or DBM

Apache administrator’s role: access Should edit main controls in httpd.conf Can specify specific controls per directory in httpd.conf Can enable htaccess for detailed controls

Apache : logs Two logs are normaly maintained: access and errors Custom logs could be defined Can grow fast: rotate! Analyze! Can decide to record host names instead of ip (costly) Error log level should be set (from debug to emerg) Log analysis tools available (free and comercial)

Apache : virtual hosts Better separate web applications runing on your server NameBased or IP Based First step is to properly set up DNS Configuration file must identify the different hosts HTTP 1.0 clients: no Host Header!

Apache : virtual host Configuring Apache: –NameVirtualHost –VirtualHostDirectives (for each host) Example using mod_proxy to forward the requests:

NameVirtualHost ServerAdmin ServerName ProxyPass / ProxyPassReverse / TransferLog logs/direct_log CustomLog logs/direct_log combined ServerAdmin ServerName ProxyPass / ProxyPassReverse / TransferLog logs/etronics_log CustomLog logs/etronics_log combined