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



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

APACHE WEB SERVER. Andri Mirzal, PhD N

C:\www\apache2214\conf\httpd.conf Freitag, 16. Dezember :50

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

EOP ASSIST: A Software Application for K 12 Schools and School Districts Installation Manual

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

Virtual Host (Web Server)

Uptime Infrastructure Monitor. Installation Guide

Apache & Virtual Hosts & mod_rewrite

Lab 3.4.2: Managing a Web Server

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

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?

Analyzing the Different Attributes of Web Log Files To Have An Effective Web Mining

Comparison table for an idea on features and differences between most famous statistics tools (AWStats, Analog, Webalizer,...).

Web Server using Apache. Heng Sovannarith

How to: Install an SSL certificate

Installation of PHP, MariaDB, and Apache

WEB2CS INSTALLATION GUIDE

Linux VPS with cpanel. Getting Started Guide

Lepide Active Directory Self Service. Configuration Guide. Follow the simple steps given in this document to start working with

CIA Lab Assignment: Web Servers

Setup a Virtual Host/Website

Apache Server Implementation Guide

OpenEyes - Windows Server Setup. OpenEyes - Windows Server Setup

E-Commerce: Designing And Creating An Online Store

Abstract. 1. Introduction

APACHE HTTP SERVER 2.2.8

Higher National Unit specification: general information

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

Web Browsing Examples. How Web Browsing and HTTP Works

1.0 Hardware Requirements:

Implementing HTTPS in CONTENTdm 6 September 5, 2012

TODAY web servers become more and more

Installing and Configuring Apache

FOR PARALLELS / PLESK PANEL

Welcome to Apache the number one Web server in

WEB2CS INSTALLATION GUIDE

An Introduction To The Web File Manager

Fermilab Central Web Service Site Owner User Manual. DocDB: CS-doc-5372

Installation of IR under Windows Server 2008

Installing Apache Software

MIGS Payment Client Installation Guide. EGate User Manual

Apache 2.0 Installation Guide

Linux Networking Basics

Web Server Manual. Mike Burns Greg Pettyjohn Jay McCarthy November 20, 2006

LabTech Installation Prerequisites

Apache and Virtual Hosts Exercises

SSL Installing your new Certificate

Exercises: FreeBSD: Apache and SSL: pre SANOG VI Workshop

Fachgebiet Technische Informatik, Joachim Zumbrägel

CCM 4350 Week 11. Security Architecture and Engineering. Guest Lecturer: Mr Louis Slabbert School of Science and Technology.

Installation Manual for Grid Monitoring Tool

Avatier Identity Management Suite

Running Nginx as Reverse Proxy server

Installing an SSL certificate on the InfoVaultz Cloud Appliance

Talk Internet User Guides Controlgate Administrative User Guide

Volume SYSLOG JUNCTION. User s Guide. User s Guide

Configuring Apache and IIS for High Availability Web Server Clustering

Cyclope Internet Filtering Proxy. - Installation Guide -

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

LICENSE4J AUTO LICENSE GENERATION AND ACTIVATION SERVER USER GUIDE

PC-Duo Web Console Installation Guide

1Intro. Apache is an open source HTTP web server for Unix, Apache

Getting Started with PRTG Network Monitor 2012 Paessler AG

Cybozu Garoon 3 Server Distributed System Installation Guide Edition 3.1 Cybozu, Inc.

Network operating systems typically are used to run computers that act as servers. They provide the capabilities required for network operation.

Remote Unix Lab Environment (RULE)

Setting Up SSL on IIS6 for MEGA Advisor

Installing and configuring Microsoft Reporting Services

How to setup HTTP & HTTPS Load balancer for Mediator

enicq 5 System Administrator s Guide

insync Installation Guide

ANALYSING SERVER LOG FILE USING WEB LOG EXPERT IN WEB DATA MINING

GlobalSign Solutions

WEB2CS INSTALLATION GUIDE

11.1 Web Server Operation

Lepide Active Directory Self Service. Installation Guide. Lepide Active Directory Self Service Tool. Lepide Software Private Limited Page 1

Oracle Solaris Remote Lab User Guide for Release 1.01

Trend Micro Worry- Free Business Security st time setup Tips & Tricks

Redatam+SP REtrieval of DATa for Small Areas by Microcomputer

Greenstone Documentation

Setting Up Scan to SMB on TaskALFA series MFP s.

MEGA Web Application Architecture Overview MEGA 2009 SP4

Table of Contents Introduction and System Requirements 9 Installing VMware Server 35

Introduction Connecting Via FTP Where do I upload my website? What to call your home page? Troubleshooting FTP...

Securing Your Apache Web Server With a Thawte Digital Certificate

Implementing Reverse Proxy Using Squid. Prepared By Visolve Squid Team

Apache Web Server Complete Guide Dedoimedo

Functions of NOS Overview of NOS Characteristics Differences Between PC and a NOS Multiuser, Multitasking, and Multiprocessor Systems NOS Server

TIBCO Spotfire Web Player 6.0. Installation and Configuration Manual

WA2256 Responsive Mobile Web Development with HTML5, CSS3, JavaScript, and jquery Mobile. Classroom Setup Guide. Web Age Solutions Inc.

Asia Web Services Ltd. (vpshosting.com.hk)

Transcription:

Apache Web Server One of many projects undertaken by the Apache Foundation It is most popular HTTP server. Free Free for commercial and private use Source code is available (open-source) Portable Available for variety of platforms, including Windows Primary target has been traditionally Linux Scalable Hardware requirements are very low

Apache Usage Apache is used to serve static and dynamic content Static content = traditional HTML pages Dynamic elements refer to scripts and programs running on server side Apache offers secure (encrypted) connections over SSL using OpenSSL libraries Apache is a crucial element of the LAMP infrastructure LAMP = Linux + Apache + MySQL + PHP/Perl/Python All LAMP technologies are free and open source The developmental nature of Linux OS caters to dynamic content developers

Apache Versions Apache development is done currently in three major release versions (probably new release also available) 1.3.x Reliable and proven Many websites currently run this version Is still around as much existing software depends on this version 2.0.x Better support for non-unix/linux platforms IPv6 support Simplified configuration 2.2.x Large file (>2GB) support This is the version we will be using For more technical details please see the Apache Foundation website http://apache.org

Installation of Apache Web Server Follow the Instruction from the Installation manual. First you have to have Zenit account provided by your Teacher with ports for each account. Login to your Zenit Account and then follow the instructions (provided to you) how to install and configure Apache. Probably it takes little bit time to finish installation.

Apache Server Once Installation done you will see a directory $HOME/httpd is created where you will find all configuration Directories and files. You can change the name of htttpd directory if you want too. Apache can read from up to four configuration files. a) httpd.conf b) Access.conf c) Srm.conf d) Mime.types httpd.conf file is the main server configuration file, usually it is recommended that you keep all of your configuration directives in httpd.conf file. Please read httpd.conf file carefully. You can find this file by typing the command in httpd directory : vi conf/httpd.conf

Apache configuration in detail Administrators control Apache server through directives in httpd.conf httpd.conf is read only once when the server is started Some Apache version have additional configuration files Directives in httpd.conf can be augmented through directory-specific configuration files (AccessFile) These files are controlled by directory owners Apache reads them every time a directory is accessed Directives have a different scope/context Server: Virtual Host: Directory: affecting a specific directory.htaccess: allowable only in.htaccess files affecting the entire server Affecting a specific IP, port, or domain in case a single server represents multiple hosts Some directives can appear in more than one scope Directives can be single-line or block containers

Important Server Directives ServerRoot ServerRoot /home/username/httpd Apache installation directory where you will save all Perl-cgi files. DocumentRoot DocumentRoot /home/username/httpd/htdocs Topmost directory for files served by Apache where you will save all of your HTML files. By default all requests are take from this directory. Listen Port at which Apache listens to requests Default port is 80 Appears also in Virtual Host context User and Group Defines the privileges of the server process Should be limited in access ServerAdmin Email address of server administrator Included in various status and error pages Can appear in Virtual Host context Alias Virtual directory Can appear in Virtual Host context

Directory Container Directive Directory container is a block structure that contains other directives Directory containers affect specific directories Subdirectories inherit these settings unless their own directory container will override them Typically directory containers are used for the following Options such as indexing (displaying of directory listings) Customized behaviour Server-Side Includes, error pages etc Access control by user/password and IP An AccessFile (.htaccess), if present in directory, will take precedence over the directory container This must be explicitly enabled in the container AccessFiles affect subdirectories the same as containers Overriding is allowed for all settings or selected ones

Apache Logs Logs document ongoing activities of the server What resources were requested and when What hosts accessed the server Bandwidth usage Access to restricted content Server errors Logging is highly customizable By default, Apache maintains two log files ServerRoot/logs/access_log ServerRoot/logs/error_log It is the responsibility of the administrator to review log information on an ongoing basis and rotate the logs

access_log file This log file documents each request to the server By default, the following is recorded The IP address of the client, for example: 142.204.1.2 ID of the user that performed the request, for example: bob Date and time, for example: [12/Mar/2007:12:32:59-0400] Request method, requested resource and HTTP version, for example: "GET /images/610445-710564.gif HTTP/1.1" Response status code, for example: 200 Size of the response not including the headers, for example: 6344 Referrer of the request, for example: /index.html Browser signature, for example: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Information not available is indicated by a hyphen (-)

Custom access logs Apache allows customization of access logging using two directives in httpd.conf: 1. LogFormat Defines what is recorded in the log, in what format and which order 2. CustomLog Defines the name and location of the log file Ties a physical file above to a LogFormat Nothing stands in a way of having multiple log files Multiple logs are easier to understand than one big log Presumably each log file would record something else Extensive logging takes up disk space and decreases the efficiency of the web server

Perl-CGI in Practice Perl Scalars Perl Array Perl Hashes Run program in cgi-bin directory from any browser.