Web Server using Apache. Heng Sovannarith heng_sovannarith@yahoo.com

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

Setup a Virtual Host/Website

Apache Configuration

Rancid Server Build and Operation Overview (v0.3) (This is being done from memory so expect some errors)

INUVIKA OVD INSTALLING INUVIKA OVD ON RHEL 6

Ansible. Configuration management tool and ad hoc solution. Marcel Nijenhof

CC ICT-SUD. Setting up and integrate Apache, MySQL and PHP on a Linux system

LAMP Quickstart for Red Hat Enterprise Linux 4

How to Configure edgebox as a Web Server

Dataworks System Services Guide

Installing Rails 2.3 Under CentOS/RHEL 5 and Apache 2.2

Installing Booked scheduler on CentOS 6.5

Virtual Host Continue

CO Web Server Administration and Security. By: Szymon Machajewski

Cloud Homework instructions for AWS default instance (Red Hat based)

OpenPro ERP Software Installation Guide REDHAT LINUX

owncloud 8 and DigitalOcean Matthew Davidson Bluegrass Linux User Group 03/09/2015

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

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

Apache and Virtual Hosts Exercises

1. Configuring Apache2 Load Balancer with failover mechanism

Installation of PHP, MariaDB, and Apache

Semantic based Web Application Firewall (SWAF - V 1.6)

OS Installation: CentOS 5.8

Install Cacti Network Monitoring Tool on CentOS 6.4 / RHEL 6.4 / Scientific Linux 6.4

Tableau Server Trusted Authentication

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

Newton Linux User Group Graphing SNMP with Cacti and RRDtool

Tableau Server Trusted Authentication

DHCP Server. Heng Sovannarith

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

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

Installing OptiRain Open on Macintosh OS X 10.6 (Snow Leopard)

Contents Set up Cassandra Cluster using Datastax Community Edition on Amazon EC2 Installing OpsCenter on Amazon AMI References Contact

Configure Wildcard-Based Subdomains

WEB2CS INSTALLATION GUIDE

Web Browsing Examples. How Web Browsing and HTTP Works

Document Freedom Workshop DFW 2012: CMS, Moodle and Web Publishing

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

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

42goISP Documentation

User Manual of the Pre-built Ubuntu Virutal Machine

ISPConfig Documentation

Contents. 1. Infrastructure

IBM DB2 for Linux, UNIX, and Windows. Deploying IBM DB2 Express-C with PHP on Ubuntu Linux

Install and configure Apache, MySQL, PHP on OSX 10.8 Mountain Lion

Security Workshop. Apache + SSL exercises in Ubuntu. 1 Install apache2 and enable SSL 2. 2 Generate a Local Certificate 2

A Beginner's Guide to Setting Up A Web Hosting System (Or, the design and implementation of a system for the worldwide distribution of pictures of

Content Management System

CentOS. Apache. 1 de 8. Pricing Features Customers Help & Community. Sign Up Login Help & Community. Articles & Tutorials. Questions. Chat.

APACHE HTTP SERVER 2.2.8

Building Library Website using Drupal

Nagios. Contents. From SME Server. Maintainer

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

CN=Monitor Installation and Configuration v2.0

JBoss AS Administration Console User Guide. by Shelly McGowan and Ian Springer

See the installation page

Virtual Host (Web Server)

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Apache Web Server Complete Guide Dedoimedo

QQ WebAgent Quick Start Guide

GestióIP IPAM v3.0 IP address management software Installation Guide v0.1

128 CERT Exercises Toolset Document for students

Configuring iplanet 6.0 Web Server For SSL and non-ssl Redirect

SVNManager Installation. Documentation. Department of Public Health Erasmus MC University Medical Center

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

Virtual machine W4M- Galaxy: Installation guide

Apache 2.0 Installation Guide

MassTransit 6.0 Enterprise Web Configuration for Macintosh OS 10.5 Server

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Local Caching Servers (LCS): User Manual

Zimbra :: The Leader in Open Source Collaboration. Administrator's PowerTip #3: June 21, 2007 Zimbra Forums - Zimbra wiki - Zimbra Blog

Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on Oracle WebLogic Server

installation administration and monitoring of beowulf clusters using open source tools

Lucid Key Server v2 Installation Documentation.

CPE111 COMPUTER EXPLORATION

Configuring Apache HTTP Server With Pramati

Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide

User Manual of the Pre-built Ubuntu 9 Virutal Machine

Partek Flow Installation Guide

Protect your CollabNet TeamForge site

INTRODUCTION TO WEB TECHNOLOGY

No.1 IT Online training institute from Hyderabad URL: sriramtechnologies.com

The Ten Minute Guide to Setting Up a Linux Web Server

Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates.

OPENPROJECT INSTALL ON CENTOS 7 RUNNING IN VMWARE PLAYER

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

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

Installing Moodle for Windows with Easy PHP Illustrated Install Guide By Floyd Collins

HOW TO SETUP AN APACHE WEB SERVER AND INTEGRATE COLDFUSION

Web Hosting: Pipeline Program Technical Self Study Guide

Open Computers & Softwares Inventory New Generation

TransNav Management System Documentation. Management Server Guide

Transcription:

Web Server using Apache Heng Sovannarith heng_sovannarith@yahoo.com

Introduction The term web server can refer to either the hardware (the computer) or the software (the computer application) that helps to deliver web content that can be accessed through the Internet. The most common use of web servers is to host websites, but there are other uses such as gaming, data storage or running enterprise applications

Introduction (cont.) Apache HTTP Server is an open-source HTTP server for modern operating systems including UNIX and Windows NT. "Apache" is the name of a foundation that write open-source software. Apache HTTPD is a web server written in portable C (when people say "Apache", they usually mean Apache HTTPD.) It serve either also serve static and dynamic content written in Perl, PHP, Python, Ruby, or other languages.

Installation Install Apache HTTP Server #yum install httpd Note: This is typically installed with CentOS by default Set the apache service to start on boot #chkconfig --levels 235 httpd on

Installation (cont.) Enable name-based virtual hosting on port 80 1. Open the httpd configuration file located at /etc/httpd/conf/httpd.conf 2. Un-comment the line containing the text NameVirtualHost *:80 3. Save the file 4. Restart the Apache HTTP Server daemon service httpd restart Note: Ignore the "NameVirtualHost *:80 has no VirtualHosts" warning for now.

Installation (cont.) Visit localhost in your web browser. You should see an Apache Test Page.

Configuration file Apache's default document root is /var/www/html on CentOS, and the configuration file is /etc/httpd/conf/httpd.conf.

Virtual Host Virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers). This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same host name. There are two main types of virtual hosting, name-based and IP-based (and Port-based).

Set Up Apache Virtual Hosts Create a New Directory #mkdir -p /var/www/example.com/public_html Grant Permissions #chown -R root.apache /var/www/example.com/public_html #chmod 755 /var/www

Create the Page We need to create a new file called index.html within our configurations directory. #vi /var/www/example.com/public_html/index.html We can add some text to the file. <html> <head> <title>www.example.com</title> </head> <body> <h1>success: You Have Set Up a Virtual Host</h1> </body> </html>

Turn on Virtual Hosts The next step is to enter into the apache configuration file itself. #vi /etc/httpd/conf/httpd.conf Make sure that your text matches what you see below.

Turn on Virtual Hosts (cont.) Scroll down to the very bottom of the document to the section called Virtual Hosts.

Turn on Virtual Hosts (cont.) Configuration: Document Root : location of webpages Server Name is another important piece of information, containing the virtual host s domain name (eg. www.example.com). ServerAlias is a new line in the config file that is not there by default. Adding it will allow you to list a few variants of the domain name, for example without the www in the front.

Turn on Virtual Hosts (cont.) Server admin asks for the webmaster s email. The Error Logs and Custom Logs keep track of any issues with the server. The error log covers issues that arise while maintaining the server, and the custom log tracks server requests. Restart the Apache Service #service httpd restart

Adding More Virtual Hosts (cont.) To create additional virtual hosts, you can just repeat the process above, being careful to set up a new document root with the appropriate new domain name each time.

Adding More Virtual Hosts

How to install PHP PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. Run the yum install command #yum install php Configuration file of php is in /etc/php.ini