Redirection Allow requests to be moved about your file system or around the web ScriptAlias Allows you to run CGI scripts Simple to use.

Slides:



Advertisements
Similar presentations
E-Commerce CMM503 – Lecture 8 Stuart Watt Room C2.
Advertisements

Dan Fleck.  WAMP – Windows Apache MySQL PHP -  LAMP – Linux Apache MySQL PHP ◦ There are.
Web basics Keywords: Web Server, Browser, Local, Remote, HTML, URL.
Apache Configuration Setting up a web server. Basic Server Facts Runs on port 80 Server application -> httpd Richly configurable Many defaults will let.
Multiple Tiers in Action
CGI and Perl MSc Publishing on the WWW. What is CGI ? (1) User Buying and selling Playing games Customised web pages Developer Means to run external programs.
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.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
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.
Basics of the HTTP Protocol and Apache Web Server Brandon Checketts.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 24 How Websites Work with Databases How Websites Work with Databases.
Web Servers Installation and Configuration May 24, 2001 CIS System Administration Problem Statement The class topic is setting up a Linux server to support.
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.
PHP Hypertext PreProcessor. Documentation Available SAMS books O’Reilly Books.
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
Real World Examples – Part II 7/26/2013Miro Remias, Sr. Solution Architect.
SIMPLE ROUTER The slide made by Salim Malakouti. Next we will create the Router  What do I we mean by a router?  Routers work similar to a map. It receives.
CSN09101 Networked Services Week 8: Essential Apache Module Leader: Dr Gordon Russell Lecturers: G. Russell, J. Jackson.
1 John Magee 9 November 2012 CS120 Lecture 17a: Publishing Web pages.
System Administration NFS & Web Servers. NFS SERVER.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Elements of ASP Documents Adapted from MCDN Web Workshop ( and Webmonkey’s Introduction to Active.
Set 13: Web Servers (configuration and security) (Chapter 21) IT452 Advanced Web and Internet Systems.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG 11 Kigali, Rwanda May 2010 Dorcas Muthoni Courtesy: Hervey Allen.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Apache Traffic Redirection Jed Reynolds
CGI Common Gateway Interface. CGI is the scheme to interface other programs to the Web Server.
Web Technology – Web Server Setup : Chris Uriarte ITI-520: Web Technology Web Server Setup Meeting 2: Apache Installation and Initial Configuration Rutgers.
Web Access Chain of Events CPTE 212 John Beckett.
Cosc 4750 Configuring httpd, Mysql, And Samba. defaults By default httpd demean will startup and work User directories are turned off Default directory.
1 Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG X Cairo, Egypt May 2009 Hervey Allen.
Computer Science 101 Color, Fonts, Links, Design.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Philip Repsher October 29 th, 2008 Or Maybe November 3 rd, 2008.
1 HTML forms (cont.)
More than one site? Use multiple configuration files Use multiple configuration files  httpd –d {path}  Assumes “conf/httpd.conf” Logging transactions.
CSN09101 Networked Services Week 8: Essential Apache Module Leader: Dr Gordon Russell Lecturers: G. Russell.
CITA 310 Section 5 Virtual Hosts and Virtual Directories (Selected Topics from Textbook Chapter 6)
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
Web programming Part 1: environment 由 NordriDesign 提供
CS 330 Class 8 Homework A pattern that contains a word with an optional period A pattern that contains Fred with a space (not Freddy) See regexp.txt guest4.htm.
Web Technology – Web Server Setup : Chris Uriarte WMB-520: Web Technology Web Server Setup Meeting 2: Apache Installation and Initial Configuration Rutgers.
MSc Publishing on the Web Week 4 Image Maps. Aims and Objectives Discover what are image maps To understand the different types of image map To understand.
CITA 310 Section 4 Apache Configuration (Selected Topics from Textbook Chapter 6)
Institute for Visualization and Perception Research 1 © Copyright 1998 Haim Levkowitz Setting up a Web server Setting up basic services... Web server maintenance...
Free, online, technical courses Take a free online course. Microsoft Virtual Academy.
9/21/04 James Gallagher Server Installation and Testing: Hands-on ● Install the CGI server with the HDF and FreeForm handlers ● Link data so the server.
Understanding FTP File Transfer Protocol. Learning Objectives By the end of this lecture, you should be able to: – Describe the purpose of FTP – Install.
4.01 How Web Pages Work.
11.1 Web Server Operation - Client-server systems
4.01 How Web Pages Work.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess
How to create and run CGI programs using the CS web server.
Unix System Administration
Introduction to Programming the WWW I
Managing results files
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.
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Part 2 Setting up a web server the easy way
Unit-5 Chap-1 Configuring Web Server
Part 2 Setting up a web server the easy way
LING 408/508: Computational Techniques for Linguists
Chengyu Sun California State University, Los Angeles
Enabling CGI & PHP With Apache
Architecture of the web
Chengyu Sun California State University, Los Angeles
4.01 How Web Pages Work.
Your computer is the client
File Transfer Protocol
Presentation transcript:

Redirection Allow requests to be moved about your file system or around the web ScriptAlias Allows you to run CGI scripts Simple to use

Redirection ScriptAlias url_path dir_or_filename ScriptAliasMasth regex dir_or_filename Allows substitution i.e. ScriptAlias ^/cgi-bin/(.*) /var/lib/apache/cgi-bin/$1 Alias url_path dir_or_filename Allows documents to be stored somewhere other than DocumentRoot

Redirection AliasMatch regex dir_or_filename UserDir directory Default: UserDir public_html Client is asking for data from a users home directory

Redirection Redirect url-path url Maps a URL onto a new one RedirectMatch regex url Important difference between Alias and Redirect is the browser becomes aware of the new location in a Redirect

Redirection Rewrite Takes a rewriting pattern and applies it to the URL Very powerful if enabled RewriteEngine on | off

Redirection RewriteLog filename RewriteLogLevel number Controls the verbosity of the logging 0 means no logging 9 means almost every action is logged A number above 2 slows server down

Redirection RewriteRule pattern substitution (flags) Used as many times as necessary Each rule applies output of the proceeding action See page 166 for flags

Redirection Example of RewriteRule <VirtualHost whatever.com> ….. RewriteEngine On RewriteLog logs/rewrite RewriteLogLevel 9 RewriteRule ^/info/([^/]+)/([^/]+)$ /cgi-bin/cardinfo?$2+$1 [PT] ScriptAlias /cgi-bin /var/lib/apache/cgi-bin </VirtualHost>