Apache Web Server Administration Syed Iqbal Syed Iqbal.

Slides:



Advertisements
Similar presentations
FIRST SESSION - XAMPP Jeongmin Lee.  Jeongmin Lee  CS  PHD  Machine Learning, AI  Web System Development.
Advertisements

1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
WEB HOSTING. WHAT IS WEB HOSTING? A web host is a company with several computers that are connected to the internet at all times. The computers they have.
20-753: Fundamentals of Web Programming 1 Lecture 11: Web Server Case Study Fundamentals of Web Programming Lecture 11: Web Server Case Study.
Chapter Apache Installation on Linux. Acknowledgement The contribution made by Darrin Morison is acknowledged.
Apache Installation by Jack Davis. Web Servers The Apache HTTP Server is the most widely used web server on the Internet. Apache is fast, free, and full-featured.
Server-Side vs. Client-Side Scripting Languages
Apache Configuration Setting up a web server. Basic Server Facts Runs on port 80 Server application -> httpd Richly configurable Many defaults will let.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
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.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
SquirrelMail for Webmail AfNOG 2012 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Serrekunda, Gambia (Original Materials by Joelja)
APACHE SERVER By Innovationframes.com »
Chapter 22 Web Hosting and Internet Servers Xuanxuan Su.
SquirrelMail for Webmail AfNOG 2013 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Lusaka, Zambia (Original Materials by Joelja)
Linux Operations and Administration
By Jeerarat Boonyanit. As you can see I have chosen Cpanel for my server management tool. cPanel is a Linux based web hosting control panel that provides.
E-Commerce LAB#1 Samia alblwi1E-Commerce ( IS412) 2011.
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
The Linux Operating System Lecture 5: Apache Tonga Institute of Higher Education.
Web Servers Installation and Configuration May 24, 2001 CIS System Administration Problem Statement The class topic is setting up a Linux server to support.
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,
CIM6400 CTNW (04/05) 1 CIM6400 CTNW Lesson 6 – More on Windows 2000.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Copyright 2000 eMation SECURITY - Controlling Data Access with
Network Operating Systems versus Operating Systems Computer Networks.
 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.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
1 Apache and Virtual Sites and SSL Dorcas Muthoni.
1 Week 6 The lynx browser Apache Web Server John Wang With materials courtesy of Inge Mclaurin.
Web Site Access Control with Apache Fort Collins, CO Copyright © XTR Systems, LLC Web Site Access Control Using the Apache Web Server Instructor: Joseph.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Apache Web Server Quick and Dirty for AfNOG 2015 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Cosc 4750 Configuring httpd, Mysql, And Samba. defaults By default httpd demean will startup and work User directories are turned off Default directory.
Apache Web Server Quick and Dirty Evelyn NAMARA for AfNOG 2014 (Originally by Joel Jaeggli for AfNOG 2007) ‏
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
Apache Web Server Quick and Dirty Kevin G. Chege for AfNOG 2013 (Originally by Joel Jaeggli for AfNOG 2007) ‏
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
1 Network Firewalls CSCI Web Security Spring 2003 Presented By Yasir Zahur.
Apache with SSL and php Apache with ssl support should be the basic platform for providing web services... There are several different implementations.
ITGS Network Architecture. ITGS Network architecture –The way computers are logically organized on a network, and the role each takes. Client/server network.
WEB SERVER SOFTWARE FEATURE SETS
Web Server Administration Chapter 6 Configuring a Web Server.
APACHE -By V.Gouthaman. The Apache HTTP Server, commonly referred to as Apache is web server software notable for playing a key role in the initial growth.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: Introduction to IS2803 Rob Gleasure
Presented by Lonnye Bower Fardin Khan Chris Orona APACHE WEB SERVER.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
Day 15 Apache. Being a web server Once your system is correctly connected to the network, you could be a web server. –When you go to a web site such as.
Web Server Security: Protecting Your Pages NOAA OAR WebShop 2001 August 2 nd, 2001 Jeremy Warren.
LINUXCHIX WEBMAIL. Software run by an ISP or online service that provides access to send, receive, and review using only your Web browser. Users.
Aaron Corso COSC Spring What is LAMP?  A ‘solution stack’, or package of an OS and software consisting of:  Linux  Apache  MySQL  PHP.
NX Documentation Using Windows IIS (Internet Information Services) as a http server for NX documentation.
Web Server Administration Chapter 6 Configuring a Web Server.
Apache Web Server v. 2.2 Reference Manual Chapter 2 Starting Apache.
APACHE Apache is generally recognized as the world's most popular Web server (HTTP server). Originally designed for Unix servers, the Apache Web server.
Web and Proxy Server.
Web Technology Seminar
Apache web server Quick overview.
Unix System Administration
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
Lab 1 introduction, debrief
IIS.
Configuring Internet-related services
APACHE WEB SERVER.
Web Servers (IIS and Apache)
Web Application Development Using PHP
Presentation transcript:

Apache Web Server Administration Syed Iqbal Syed Iqbal

Apache and its sister projects under development It is open source software environment It is open source software environment It costs nothing to obtain, performs better then its competitors, and more widely used. It costs nothing to obtain, performs better then its competitors, and more widely used. Sister projects under development Sister projects under development mod ssl mod ssl Apache SSL Apache SSL Java Apache Java Apache Module Registry Module Registry

Apache configuration files Httpd.conf: mainly used for server specific configuration Httpd.conf: mainly used for server specific configuration Access.conf: It contains the variables relating to access control Access.conf: It contains the variables relating to access control By default, all Apache configuration files are stored under the folder called conf By default, all Apache configuration files are stored under the folder called conf The specific variables inside the config files are called Directives The specific variables inside the config files are called Directives

More about Apache directives Almost everything about Apache resides under its directives. Almost everything about Apache resides under its directives. All the directives are stored under its module. Not all the module are recognized by Apache. If you want to find out what compiled-in module you currently have under apache, you can type in the following command: All the directives are stored under its module. Not all the module are recognized by Apache. If you want to find out what compiled-in module you currently have under apache, you can type in the following command: $httpd – I $httpd – I

MINE Types in Apache MINE is an acronym for Multimedia Internet Mail Extensions MINE is an acronym for Multimedia Internet Mail Extensions In Apache it is used to enable a program to determine what kind of data a file contains by looking at the file’s extensions. Apache’s mine types can be found in conf folder named as mime.type In Apache it is used to enable a program to determine what kind of data a file contains by looking at the file’s extensions. Apache’s mine types can be found in conf folder named as mime.type We can use the AddType directive to simply add a file extension. For example, in case of php: We can use the AddType directive to simply add a file extension. For example, in case of php: $ AddType application/x-httpd-php.php Above tells Apache that files ending in.php contains PHP 4 data

Protecting a secure data using Apache This can be done by invoking the following module: This can be done by invoking the following module: Order deny, allow Order deny, allow deny from all deny from all allow from allow from

Explanation of previous module The first line tells you which location the secure data is residing The first line tells you which location the secure data is residing Order Deny, allow, deny from all: specifies a mod_access directive. If you want to give access to more hosts than you deny, use order allow, deny. In opposite case, we would use,’ order deny, all’ so that it would deny to most hosts order allow, deny. In opposite case, we would use,’ order deny, all’ so that it would deny to most hosts

Stopping Apache Apache can be stopped by using the following command (in freebsd systems): Apache can be stopped by using the following command (in freebsd systems): %apachectl stop /usr/virtual/share/pkgs/installed/vs- apache/1.3.12/bin/apachectl stop: httpd stopped Stopping Apache web server can cause some serious troubles including shutting down of a website. Meaning that a website will never get displayed neither via IP or domain name.

Restarting Apache Apache can be restarted in 2 ways Apache can be restarted in 2 ways 1) apachectl start 1) apachectl start [Tue Jul 16 09:48: ] [warn] NameVirtualHost :443 has no VirtualHosts /usr/virtual/share/pkgs/installed/vs- apache/1.3.12/bin/apachectl start: httpd started

Continue %apachectl startssl %apachectl startssl [Tue Jul 16 09:53: ] [warn] NameVirtualHost :443 has no VirtualHosts [Tue Jul 16 09:53: ] [warn] NameVirtualHost :443 has no VirtualHosts /usr/virtual/share/pkgs/installed/vs- apache/1.3.12/bin/apachectl startssl: httpd started /usr/virtual/share/pkgs/installed/vs- apache/1.3.12/bin/apachectl startssl: httpd started

The difference between the 2 Apachectl start command only restarts the Apache web server Apachectl start command only restarts the Apache web server Apachect startssl not only restarts the server with SSL enable, but also tells the Apache to refresh any hosts that are SSL domains so that Apache can recognize them Apachect startssl not only restarts the server with SSL enable, but also tells the Apache to refresh any hosts that are SSL domains so that Apache can recognize them

Apache and its logs files In Freebsd and several other UNIX OS, Apache come up with log files. In Freebsd, there are 3 types of log files, access_logs and error_logs, and analog_logs In Freebsd and several other UNIX OS, Apache come up with log files. In Freebsd, there are 3 types of log files, access_logs and error_logs, and analog_logs Access logs basically tells you who access the server at what time and what date. Error_logs usually report to Apache if it encounters any error in the server. Analog_logs contains the record for ftp users. Access logs basically tells you who access the server at what time and what date. Error_logs usually report to Apache if it encounters any error in the server. Analog_logs contains the record for ftp users.

An issue with Apache log files If you mistakenly deleted a log file(since log files are tend to grow faster and cause disk space isses) using the rm command, it will cause to break Apache’s config file and Apache will not run! If you mistakenly deleted a log file(since log files are tend to grow faster and cause disk space isses) using the rm command, it will cause to break Apache’s config file and Apache will not run! To avoid this issue, you can simply restart the Apache web server and it will re-built the log file. OR you can use the following command to avoid this issue: To avoid this issue, you can simply restart the Apache web server and it will re-built the log file. OR you can use the following command to avoid this issue: > Cp /dev/null nameoflogfile

More on Cp /dev/null nameoflogfile This command would basically copy the size of a log file into a null value; leaving the log file as it is, but with no size. This command would basically copy the size of a log file into a null value; leaving the log file as it is, but with no size.

Using the ProxyBlock directive With the help of ProxyBlock directive in Apache, we can restrict sites we disapprove of. This can be done by: With the help of ProxyBlock directive in Apache, we can restrict sites we disapprove of. This can be done by: ProxyBlock domain.com domain1.com … ProxyBlock domain.com domain1.com …

SSI or server side includes SSI is a way to add a limited amount of dynamic content to your web pages. It is disable by default since it is known to slow down the Apache server. If SSI is limited to the files with a.shtml extension, you can use the AddHandler server- parsed.shtml directive. This directive tells the server to review any files with extensions in.shtml and perform SSL substitutions as appropriate before serving files to clients. SSI is a way to add a limited amount of dynamic content to your web pages. It is disable by default since it is known to slow down the Apache server. If SSI is limited to the files with a.shtml extension, you can use the AddHandler server- parsed.shtml directive. This directive tells the server to review any files with extensions in.shtml and perform SSL substitutions as appropriate before serving files to clients.

DNS and Apache Domain name service and Apache does have some relationship. In the following directive, avoid using symbolic names. Domain name service and Apache does have some relationship. In the following directive, avoid using symbolic names. Directive Setting Allow, deny use of IP only HostnameLookups should be set to off ProxyBlock, NoProxy use IP address only

Conclusion Apache web server has claimed the more then 70% of its market share as compare to its competitors. It widely used with the combination of other scripting languages like perl & CGI, php and java. It is very flexible when it comes to its functionality. With its open source capability, you can modify however you want. Apache web server has claimed the more then 70% of its market share as compare to its competitors. It widely used with the combination of other scripting languages like perl & CGI, php and java. It is very flexible when it comes to its functionality. With its open source capability, you can modify however you want.

Resources Apache: Web Server Administration & e-Commerce Handbook. Scott Hawkins. Prentice Hall PTR, Apache: Web Server Administration & e-Commerce Handbook. Scott Hawkins. Prentice Hall PTR, 2001.