CITA 310 Section 5 Virtual Hosts and Virtual Directories (Selected Topics from Textbook Chapter 6)

Slides:



Advertisements
Similar presentations
Apache Configuration Setting up a web server. Basic Server Facts Runs on port 80 Server application -> httpd Richly configurable Many defaults will let.
Advertisements

Configuring a Web Server. Overview  Understand how a Web server works  Install IIS (Internet Information Services) and Apache Web servers  Examine.
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.
The Web Server Every web site (the collection of html/css files, data files, scripts and other files) must be stored on a web server The term web server.
Web Server Setup WEB SERVER SETUP.
Internet Basics.
Web Client/Server Communication A290/A590, Fall /09/2014.
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.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 21: Publishing Your Pages on the Web.
Tomcat Celsina Bignoli History of Tomcat Tomcat is the result of the integration of two groups of developers. – JServ, an open source.
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
2440: 141 Web Site Administration Web Server Configuration Instructor: Enoch E. Damson.
1 Deploying a Web Application. 2 Virtual Directories Web servers map URLs to directories in their file systems. Called virtual directories. Normally one.
Appendix: Installing AMP (Apache + MySQL + PHP). Training Course, CS, NCTU 2 AMP  AMP A – Apache Web Server M – MySQL Database Server P – PHP Language.
The Linux Operating System Lecture 5: Apache Tonga Institute of Higher Education.
Basics of the HTTP Protocol and Apache Web Server Brandon Checketts.
System Administration
Web Servers Installation and Configuration May 24, 2001 CIS System Administration Problem Statement The class topic is setting up a Linux server to support.
Session 10 Windows Platform Eng. Dina Alkhoudari.
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,
Apache, PHP, MySQL Installation and configuration Web Programming with PHP,TITAS PROJECTIICT,BUET.
System Administration NFS & Web Servers. NFS SERVER.
Implementing ISA Server Publishing. Introduction What Are Web Publishing Rules? ISA Server uses Web publishing rules to make Web sites on protected networks.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Apache + Tomcat. Apache + Tomcat Download mod_webapp.so:
Web Services CSCI N321 – System and Network Administration Copyright © 2007,2008 by Scott Orr and the Trustees of Indiana University.
 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.
IT:Network:Apps.  Microsoft Web Server ◦ Used by ~ 50% of Fortune 500 companies  Comes with Server OS  Expandable  Easy to use.
Course ILT Internet/intranet support Unit objectives Use the Internet Information Services snap-in to manage IIS, Web sites, virtual directories, and WebDAV.
Learningcomputer.com SQL Server 2008 Configuration Manager.
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.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
Web Hosting Herng-Yow Chen. Outline How different web site can be “ virtually hosted ” on the same server, and how this affects HTTP How to make web sites.
Web Access Chain of Events CPTE 212 John Beckett.
Server Performance, Scaling, Reliability and Configuration Norman White.
 Apache 2.2 › /usr/ports/www/apache22 › apache22_enable="YES" (/etc/rc.conf) › /usr/local/etc/rc.d/apache22 start  MySQL 5.0 › /usr/ports/databases/mysql50-server.
1 Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG X Cairo, Egypt May 2009 Hervey Allen.
Multi-Domain Hosting Hosting multiple domains on one server using Apache John Beckett 1/16/2013.
1 Microsoft Windows 2000 Network Infrastructure Administration Chapter 6 Resolving Network Host Names.
Apache with SSL and php Apache with ssl support should be the basic platform for providing web services... There are several different implementations.
WAMP Windows Apache MySQL and PHP i.e. “WAMP”. Why WAMP? WampServer is a Windows web development environment. It allows you to create and test web pages.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
CITA 310 Section 8 Extending the Web Environment (Textbook Chapter 9)
CITA 310 Section 3 Additional Topics. Common IPv4 Classes ClassFirst numberSubnet maskNumber of networks Number of addresses Class A0 – ,777,216.
Web Server (Apache httpd ) 1. 2 Apache Web Server A PAtCHy server: developed by the Apache group History- First.
Web Server Administration Chapter 6 Configuring a Web Server.
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.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Chapter 4- Server Configuration.
CITA 310 Section 4 Apache Configuration (Selected Topics from Textbook Chapter 6)
Apache Web Server. Outline of the Talk : Introduction to Apache httpd web server Basic Compilation, Installation and Configuration Performance Features:
Web Server Administration Chapter 6 Configuring a Web Server.
Apache Configuration. Application Install IBM HTTP Server is Apache.
Web and Proxy Server.
Managing State Chapter 13.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess
Redirection Allow requests to be moved about your file system or around the web ScriptAlias Allows you to run CGI scripts Simple to use.
Tomcat Celsina Bignoli
Warm Handshake with Websites, Servers and Web Servers:
Unix System Administration
Client Client 4) Hello , please give me the website
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.
Application layer Lecture 7.
Unit-5 Chap-1 Configuring Web Server
Licensing Overview January 2019.
Presentation transcript:

CITA 310 Section 5 Virtual Hosts and Virtual Directories (Selected Topics from Textbook Chapter 6)

Virtual Hosts When Apache is configured for only one Web site or URL, it functions as a single main server. With virtual hosts, Apache functions as if it were a series of multiple, separate servers, each devoted to a URL.

Configuring Virtual Hosts You configure each virtual host by adding a VirtualHost container for it in the Apache configuration file. The opening VirtualHost directive specifies the IP address and an optional port number in which this virtual host should listen.

IP-Based Virtual Hosts Useful for flexibility because if each host has its own unique IP address, you can easily move the host to a different Web server. It is getting more expensive to get multiple IP addresses from an ISP.

Port-Based Virtual Hosts Associate each new Web site with a port above Because it requires a user to add the port number, it is not a popular method.

Name-Based Virtual Hosts Multiple host names can be associated with a single IP address. Getting a single IP address from your ISP is relatively inexpensive. You can host an almost unlimited number of hosts with a single IP address. It is the most common method of hosting.

IP-Based Virtual Host Example ServerName research.cita.com DocumentRoot htdocs/research

Port-Based Virtual Host Example Listen 8080 DocumentRoot htdocs/test

Name-Based Virtual Host Example NameVirtualHost :80 ServerName DocumentRoot htdocs ServerName test.cita.com DocumentRoot htdocs/test

ServerAlias Directive The ServerAlias directive sets the alternate names for a host, for use with name-based virtual hosts. The ServerAlias may include wildcards, if appropriate.

Configuring a Virtual Directory in Apache The following associates the virtual directory called testdir with the location of the directory Alias /testdir C:/testdir Then it configures the directory Order allow,deny <-- no space in between Allow from all

Redirection The Redirect directive maps an old URL into a new one by asking the client to re-fetch the resource at the new location. The old URL is a path beginning with a slash. A relative path is not allowed. Example: Redirect /google