Apache Web Server v. 2.2 Reference Manual

Slides:



Advertisements
Similar presentations
Configuration Management
Advertisements

PHP Reusing Code and Writing Functions.
Adding Dynamic Content to your Web Site
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Apache Web Server v. 2.2 Reference Manual Chapter 5 Filters.
Common Gateway Interface (CGI). CGI is a protocol: CGI is not a programming language CGI is a protocol for the exchange of information between between.
Apache Web Server v. 2.2 Reference Manual Chapter 4 Multi-Processing Modules (MPMs)
Browsers and Servers CGI Processing Model ( Common Gateway Interface ) © Norman White, 2013.
JSP: JavaServer Pages Juan Cruz Kevin Hessels Ian Moon.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
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.
Tomcat Configuration A Very, Very, Very Brief Overview.
1 Web Servers Web Protocols and Practice Chapter 4.
Web Client/Server Communication A290/A590, Fall /09/2014.
Linux Operations and Administration
Web server and web browser It’s a take and give policy in between client and server through HTTP(Hyper Text Transport Protocol) Server takes a request.
Mod_lua for beginners Eric Covener, IBM November 2011.
INTRODUCTION TO WEB DATABASE PROGRAMMING
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
HTTP; The World Wide Web Protocol
Apache Server The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident.
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
Putting What We Learned Into Context – WSGI and Web Frameworks A290/A590, Fall /16/2014.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
1 In the good old days... Years ago… the WWW was made up of (mostly) static documents. –Each URL corresponded to a single file stored on some hard disk.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Apache Web Server v. 2.2 Reference Manual Chapter 1 Compiling and Installing.
Version control Using Git Version control, using Git1.
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
Webcommerce Computer Networks Webcommerce by Linnea Reppa Douglas Martindale Lev Shalevich.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
The HTTP is a standard that all Web browsers and Web servers must speak in order for the Web portion of the Internet to work.
Form Data Encoding GET – URL encoded POST – URL encoded
Rails & Ajax Module 5. Introduction to Rails Overview of Rails Rails is Ruby based “A development framework for Web-based applications” Rails uses the.
Model View Controller MVC Web Software Architecture.
HOW THE WEB WORKS Reference: Learning Web Design (4 th edition) by Robbins 2012 – Chapter 2 (pp. 21 – 32)
AxKit A member of the Apache XML project Ryan Maslyn Kyle Bechtel.
Delta Encoding for HTTP/1.1 Sloutsky Alexander Fink Dmitry Supervised by Lavy Libman.
Dean Anderson Polk County, Oregon GIS in Action 2014 Modifying Open Source Software (A Case Study)
OPeNDAP Hyrax Harnessing the power of the BES OPeNDAP Hyrax Back-End Server Patrick West
More than one site? Use multiple configuration files Use multiple configuration files  httpd –d {path}  Assumes “conf/httpd.conf” Logging transactions.
Apache Web Server Architecture Chaitanya Kulkarni MSCS rd April /23/20081Apache Web Server Architecture.
Server Side Scripting Perl, Python, Java Servlets  write complete programs in (Perl, Python, Java) to process HTTP requests and generate a complete HTTP.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Apache Web Server v. 2.2 Reference Manual Chapter 2 Starting Apache.
Lesson 11. CGI CGI is the interface between a Web page or browser and a Web server that is running a certain program/script. The CGI (Common Gateway Interface)
Python Driven Sensor Observation Service Benjamin Welton NASA USRP.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
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 Protocols and Practice
What are they? The Package Repository Client is a set of Tcl scripts that are capable of locating, downloading, and installing packages for both Tcl and.
WWW and HTTP King Fahd University of Petroleum & Minerals
Using E-Business Suite Attachments
z/Ware 2.0 Technical Overview
Version control, using Git
Software Configuration Management
Processes The most important processes used in Web-based systems and their internal organization.
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
Configuring Internet-related services
Common Gateway Interface (CGI current version 1.1)
HyperText Transfer Protocol
Enabling CGI & PHP With Apache
Requests and Server Response Codes
Web Servers (IIS and Apache)
OPeNDAP/Hyrax Interfaces
Concepts in ASP.NET Core App
ASP.NET Core Middleware Fundamentals
Message Passing Systems
Presentation transcript:

Apache Web Server v. 2.2 Reference Manual Chapter 6 Apache's Handler Use

What is a Handler What is a Handler Related Modules Related Directives mod_actions mod_asis mod_cgi mod_imagemap mod_info mod_mime mod_negotiation mod_status Action AddHandler RemoveHandler SetHandler

What is a Handler A "handler" is an internal Apache representation of the action to be performed when a file is called. Generally, files have implicit handlers, based on the file type. Normally, all files are simply served by the server, but certain file types are "handled" separately. Handlers may also be configured explicitly, based on either filename extensions or on location, without relation to file type. This is advantageous both because it is a more elegant solution, and because it also allows for both a type and a handler to be associated with a file. (See also Files with Multiple Extensions.)

What is a Handler Handlers can either be built into the server or included in a module, or they can be added with the Action directive. The built-in handlers in the standard distribution are as follows : default-handler: Send the file using the default_handler(), which is the handler used by default to handle static content. (core) send-as-is: Send file with HTTP headers as is. (mod_asis) cgi-script: Treat the file as a CGI script. (mod_cgi) imap-file: Parse as an imagemap rule file. (mod_imagemap) server-info: Get the server's configuration information. (mod_info) server-status: Get the server's status report. (mod_status) type-map: Parse as a type map file for content negotiation. (mod_negotiation)

Examples Modifying static content using a CGI script The following directives will cause requests for files with the html extension to trigger the launch of the footer.pl CGI script. Then the CGI script is responsible for sending the originally requested document (pointed to by the PATH_TRANSLATED environment variable) and making whatever modifications or additions are desired. Action add-footer /cgi-bin/footer.pl AddHandler add-footer .html

Examples Files with HTTP headers The following directives will enable the send-as-is handler, which is used for files which contain their own HTTP headers. All files in the /web/htdocs/asis/ directory will be processed by the send-as-is handler, regardless of their filename extensions. <Directory /web/htdocs/asis> SetHandler send-as-is </Directory>

Programmer's Note In order to implement the handler features, an addition has been made to the Apache API that you may wish to make use of. Specifically, a new record has been added to the request_rec structure : If you wish to have your module engage a handler, you need only to set r->handler to the name of the handler at any time prior to the invoke_handler stage of the request. Handlers are implemented as they were before, albeit using the handler name instead of a content type. While it is not necessary, the naming convention for handlers is to use a dash-separated word, with no slashes, so as to not invade the media type name-space. char *handler

Reference The Apache Software Foundation Documentation Project.(2011).Apache HTTP Server Version 2.2 Documentation. Available from http://httpd.apache.org/docs/