Virtual Host (Web Server)



Similar documents
Setup a Virtual Host/Website

Host your websites. The process to host a single website is different from having multiple sites.

Virtual Host Continue

User s guide. APACHE SSL Linux. Using non-qualified certificates with APACHE SSL Linux. version 1.3 UNIZETO TECHNOLOGIES S.A.

Created by : Ashish Shah, J.M. PATEL COLLEGE UNIT-5 CHAP-1 CONFIGURING WEB SERVER

CO Web Server Administration and Security. By: Szymon Machajewski

How to setup HTTP & HTTPS Load balancer for Mediator

Apache Usage. Apache is used to serve static and dynamic content

1. Configuring Apache2 Load Balancer with failover mechanism

ITIS 2110 Lab 11: Domain Name Server. Tyler Everhart 11/12/2010

The course will be run on a Linux platform, but it is suitable for all UNIX based deployments.

How to: Install an SSL certificate

Configuring Apache and IIS for High Availability Web Server Clustering

How To Set Up A Virtual Host In Apa On A Linux Box On A Windows Xp Or Ipa On An Ubuntu Box On An Ipa (Windows) Or Ipo (Windows Xp) On A Ubora Box On Your Ubora

Semantic based Web Application Firewall (SWAF - V 1.6)

This section describes how to use SSL Certificates with SOA Gateway running on Linux.

Lab 3.4.2: Managing a Web Server

How to Configure an Initial Installation of the VMware ESXi Hypervisor

Configuring an External Domain

Configuring Content Switching Feature

Apache & Virtual Hosts & mod_rewrite

Matlab Web Server Installation and Configuration Guide

esync - Receiving data over HTTPS

Network: several computers who can communicate. bus. Main example: Ethernet (1980 today: coaxial cable, twisted pair, 10Mb 1000Gb).

LOAD BALANCING TECHNIQUES FOR RELEASE 11i AND RELEASE 12 E-BUSINESS ENVIRONMENTS

Moving Drupal to the Cloud: A step-by-step guide and reference document for hosting a Drupal web site on Amazon Web Services

Web Pages. Static Web Pages SHTML

EQUELLA. Clustering Configuration Guide. Version 6.0

Installing an SSL certificate on the InfoVaultz Cloud Appliance

Apache Server Implementation Guide

Web Server: Principles and Configuration Web Programming 8) Web Server

Talk Internet User Guides Controlgate Administrative User Guide

Apache Web Server Complete Guide Dedoimedo

Apache 2.2 on QNX Neutrino 6.4.x OS Step-by-step installation manual

Ulteo Open Virtual Desktop Installation

SQL Injection Attack Lab

1. When will an IP process drop a datagram? 2. When will an IP process fragment a datagram? 3. When will a TCP process drop a segment?

How To Remotely View Your Security Cameras Through An Ezwatch Pro Dvr/Camera Server On A Pc Or Ipod (For A Small Charge) On A Network (For An Extra $20) On Your Computer Or Ipo (For Free

ViMP 3.0. SSL Configuration in Apache 2.2. Author: ViMP GmbH

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

PROXY SETUP WITH IIS USING URL REWRITE, APPLICATION REQUEST ROUTING AND WEB FARM FRAMEWORK OR APACHE HTTP SERVER FOR EMC DOCUMENTUM EROOM

Web Same-Origin-Policy Exploration Lab

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

SIMIAN systems. Setting up a Sitellite development environment on Mac OS X. Sitellite Content Management System

10gAS SSL / Certificate Based Authentication Configuration

Technical specification

WebSphere Application Server V7: Deploying Applications

EQUELLA. Clustering Configuration Guide. Version 6.2

Web Server using Apache. Heng Sovannarith

User Manual of the Pre-built Ubuntu Virutal Machine

Using Webmin and Bind9 to Setup DNS Sever on Linux

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ MEng. Nguyễn CaoĐạt

mod_auth_pubtkt a pragmatic Web Single Sign-On solution by Manuel Kasper, Monzoon Networks AG mkasper@monzoon.net

Step-by-Step guide to setup an IBM WebSphere Portal and IBM Web Content Manager V8.5 Cluster From Zero to Hero (Part 2.)

GL275 - ENTERPRISE LINUX NETWORKING SERVICES

SQL Injection Attack Lab Using Collabtive

CTIS486 Midterm Solution 23/07/ Akgül

Implementing Reverse Proxy Using Squid. Prepared By Visolve Squid Team

Installing Apache Software

Configuring a Domain to work with your Server

Installation documentation for Ulteo Open Virtual Desktop

PaperCut Payment Gateway Module Realex Realauth Redirect Quick Start Guide

IBM WebSphere Application Server Communications Enabled Applications Setup guide

WebBridge LR Integration Guide

GL-275: Red Hat Linux Network Services. Course Outline. Course Length: 5 days

APACHE WEB SERVER. Andri Mirzal, PhD N

How To Install Linux Titan

Information Security Practice II. Installation and set-up of Web Server and FTP accounts

GlobalSign Solutions

Chapter 21 Web Servers

Computer Networks. Lecture 7: Application layer: FTP and HTTP. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

ENTERPRISE LINUX NETWORKING SERVICES

Apache HTTP Server. Implementation Guide. (Version 5.7) Copyright 2013 Deepnet Security Limited

APACHE HTTP SERVER 2.2.8

Remote Unix Lab Environment (RULE)

SecuritySpy Setting Up SecuritySpy Over SSL

Web Hosting & Maintenance

Installing and Configuring Apache

LAN TCP/IP and DHCP Setup

Cable Internet Connection & Sharing using Red Hat 7.2 (Version 1.0, )

Best Practices in Hardening Apache Services under Linux

DEPLOYMENT OF I M INTOUCH (IIT) IN TYPICAL NETWORK ENVIRONMENTS. Single Computer running I m InTouch with a DSL or Cable Modem Internet Connection

How To Configure A Vyatta As A Ds Internet Connection Router/Gateway With A Web Server On A Dspv.Net (Dspv) On A Network With A D

Apache and Virtual Hosts Exercises

Setting Up SSL From Client to Web Server and Plugin to WAS

The only skill required really is to locate and edit text-files with a text-editor like Notepad.

Automatic updates for Websense data endpoints

Linux Squid Proxy Server

WS_FTP Server. User s Guide. Software Version 3.1. Ipswitch, Inc.

Uptime Infrastructure Monitor. Installation Guide

How to Remotely View Security Cameras Using the Internet

Transcription:

Virtual Host (Web Server) 1 Muhammad Zen Samsono Hadi, ST. MSc. Lab. Komunikasi Digital Gedung D4 Lt. 1 EEPIS-ITS

Virtual Networking implementation 2

Power consumption comparison 3 VS 5 Physical Virtual Server servers

Power consumption comparison 230W x 5 x 24h = 27.6kwh + a 230W x 24h = 5.5kwh + a 4

Virtual Server Advantages Power saving over multiple physical servers Simplify system administration by integrating all servers into one physical machine Server hardware resource optimization 5

Virtual Server disadvantages When host server machine crash, all virtual servers embedded in the server crash too. 6

Virtual Hosting General term used when you run more than one website on a single system. Allows ISPs and hosting providers to make money by sharing resources among clients. Allows companies and individuals to save time and money - a single machine can host many websites. 7

Virtual Host 8

Options for Hosting More than One Website on a Single System Run separate instances of httpd servers: httpd f /usr/local/apache/conf/httpd-virtual.conf Run a server that will listen on multiple ports and serve e different content depending on the port. True Virtual Hosting - Allows multiple IP address and/or host names to be served through a single Apache server. IP-Based Name-Based 9

Virtual Hosting: IP Based 10 You must configure your machine to listen for multiple IP addresses. One NIC binds to multiple IP addresses One hostname is associated with each IP address www.yahoo.com 216.32.74.52 sports.yahoo.com 216.115.105.243 SERVER NIC

Virtual Hosting: Name Based 11 A machine can host multiple websites using only 1 IP address All hostnames have the same IP address Becoming more and more popular. some.mydomain.com www.hisdomain.com 165.145.26.110 NIC SERVER

Setting-Up IP-Based Virtual Hosting: An Overview 12 Once you have secured the domain names/hostnames you want to use for your website, you need to assign each of them a unique IP address. Some ISPs can assign you additional IP addresses. Blocks of IP addresses are usually assigned with business T1s or DSL lines.

Setting-Up IP-Based Virtual Hosting, Con t. 13 You need to have DNS properly configured for your domains, e.g. The world needs to know that www.yourdomain.com is at the IP address 123.23.34.56. Remember, your ISP can usually provide DNS service for your domains.

IP-Based Virtual Hosting: Setting Up Your Machine Your web server needs to be configured to listen for the IP addresses related to your websites: UNIX-based OSs allow you to configure multiple IP addresses using the ifconfig command (must be run as root) Usage: ifconfig interface:<sub-number> number> IP e.g: ifconfig eth0:0 165.230.30.71 ifconfig eth0:1 165.230.30.72 WinNT IP setup through Network control panel. 14

Configuring Apache for IP-Based Virtual Hosting Configuring Apache for Virtual Hosting is quite simple: Simply add a <VirtualHost> block within the httpd.conf file. Format: <VirtualHost IP-or-HOSTNAME:Port> #Any Valid httpd.conf directives </VirtualHost> 15 Required for each Virtual Host website your are using therefore your httpd.conf can have multiple <VirtualHost> blocks.

IP-Based VH Configuration con t. Typical <VirtualHost> block in httpd.conf: <VirtualHost www.bearsnest.org> DocumentRoot /home/www/bearsnest/htdocs ServerAdmin chrisjur@cju.com ServerName www.bearsnest.org ErrorLog logs/bears-error_log TransferLog logs/bears-access_log Redirect /adprotech http://www.adprotech.com Alias /staff /home/chrisjur/htdocs/bn/staff/ / / / </VirtualHost> The key: Vitual hosts will have their own unique The key: Vitual hosts will have their own unique DocumentRoot different content for different sties. 16

Steps for Setting-Up Name-Based Virtual Hosting 17 When setting up Name-based virtual hosts, you need to add the special NameVirtualHost Directive to your httpd.conf: NameVirtualHost <Your IP Address> Which tells Apache the single IP address you will use for all your websites. Now simply add <VirtualHost> blocks for each of your website bit domains.

Name-Based VH Examples 18 NameVirtualHost alhost 165.230.30.68 68 <VirtualHost www.yoursite.org> DocumentRoot /home/www/yoursite/htdocs ServerAdmin you@yoursite.com ServerName www.yoursite.com ErrorLog logs/yoursite-error_log </VirtualHost> <VirtualHost www.mysite.com> DocumentRoot /home/www/mysite/htdocs ServerAdmin me@mysite.com ServerName www.mysite.org ErrorLog logs/mysite-error_log </VirtualHost>

Virtual Hosting Recap Get your DNS configured for each domain IP-based Virtual Hosting vs. Name-based Virtual Hosting Configure your server for multiple IP addresses if using IP-based Virtual Hosting Create new directories for new Document Roots Add <VirtualHost> blocks to your httpd.conf 19

Delivering Dynamic Content Two ways of delivering dynamic content for the Web: client-side or server-side technologies Client-Side 20 Elements are downloaded to the browser and execute on the client s system. Examples: JavaScript, Java Applets, client-side id image maps. Web server administrator needs to see that MIME types are set correctly.

Dynamic Content, con t. 21 Server-Side Side Server processes on-the-fly content that is passed to client browser. Examples: server-side includes, CGI (Common Gateway Interface), server-side image maps, ASP (Active Server Pages), Java Servlets. PHP Server-side technologies generally require additional configuration of the Web server in order to function properly. Usually require specific Apache modules. Enabling server-side technologies generally has security implications.