(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com What Is Apache? ● A “Patchy” Web Server ● The most common HTTP server on the 'Net.

Slides:



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

What all is there Inside the Apache web server. These slides are part of study material of LAMP course. Course conducted by Prof Rocky Jagtiani – Technical.
Web Server Onno W. Purbo Web server.
Dan Fleck.  WAMP – Windows Apache MySQL PHP -  LAMP – Linux Apache MySQL PHP ◦ There are.
Protecting Documents on the Web Friday Tech Briefing Timely Info for Power Users and Stanford's Technology Support Community Mark Branom ITSS Technology.
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 ssl Objectives Contents Practical Summary Setup Apache + ssl
Initial web server configuration 1WUCM1. Overview Planning Testing the OS/Environment – IP setup Installation Configuration – Simple minimum details Testing.
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.
Initial web server configuration Dr Jim Briggs 1WUCM1.
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
Apache Access Controls. Ways to control Allow/Deny access control –By IP –By domain name Password –Apache managed passwords –Realms.
Access control and user management in Apache 1WUCM1.
Configuring a Web Server. Overview  Understand how a Web server works  Install IIS (Internet Information Services) and Apache Web servers  Examine.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
Installing Apache There are several ways to install the Apache web server – in CIT 370, you probably installed it from the CentOS CD-ROM although in fact,
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 »
SquirrelMail for Webmail AfNOG 2013 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Lusaka, Zambia (Original Materials by Joelja)
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
Setting up Greenstone for your organization Course material prepared by Greenstone Digital Library Project University of Waikato, New Zealand andNational.
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
The Linux Operating System Lecture 5: Apache Tonga Institute of Higher Education.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 10: Basic Apache Configuration and Management Chapter 26: Apache (httpd): Setting Up a Web.
Apache Setting up a Web (httpd) server. Apache Apache is the utility used by Linux servers to provide Web services (http services). It is the most popular.
Apache Server The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident.
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, PHP, MySQL Installation and configuration Web Programming with PHP,TITAS PROJECTIICT,BUET.
Setting up NIS and HTTP. Network Information Service Reading: 1. Linux NIS HOWTO: howto/HOWTOhttp://
Web Services CSCI N321 – System and Network Administration Copyright © 2007,2008 by Scott Orr and the Trustees of Indiana University.
Apache Web Server v. 2.2 Reference Manual Chapter 1 Compiling and Installing.
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.
User authentication, passwords
Apache HTTP mod_ftp William A. Rowe, Jr. ASF Member, httpd and APR projects Sr. Software Engineer, Covalent Technologies.
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.
Apache Security Travis Jeffries. Introduction Authentication and Authorization Strict Access Methods Defending against Attacks Bad CGI Programs Apache.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Apache Web Server Administration Syed Iqbal Syed Iqbal.
Cosc 4750 Configuring httpd, Mysql, And Samba. defaults By default httpd demean will startup and work User directories are turned off Default directory.
/etc/apache2/apache2.conf # Porneste gazduirea virtuala pe http NameVirtualHost :80 # Porneste gazduirea virtuala pe https NameVirtualHost :443.
1 Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG X Cairo, Egypt May 2009 Hervey Allen.
LinuxChix Apache. Serving Webpages The layer 7 protocol (HTTP) is what our browsers talk to get us the websites we can't seem to live without. HTTP is.
Multi-Domain Hosting Hosting multiple domains on one server using Apache John Beckett 1/16/2013.
XAMPP設定 - Apache.
Authentication Names and Passwords Names and Passwords Also can use Groups Also can use Groups Webmaster can “require” authentication Webmaster can “require”
Web Technology – Web Server Setup : Chris Uriarte Meeting 4: Advanced Topics, Continued: Securing the Apache Server and Apache Performance Tuning Rutgers.
More than one site? Use multiple configuration files Use multiple configuration files  httpd –d {path}  Assumes “conf/httpd.conf” Logging transactions.
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.
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.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
Qmail Installation. Build Qmail tar zxvf qmailrocks.tar.gz tar zxvf qmailrocks.tar.gz Edit and Run : Edit and Run : /test/qmailrocks/scripts/install/qmr_install_linux-s1.script.
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.
Multi-Domain Hosting CPTE 212 “Missing Slides” for 1/22/2015 John Beckett.
Web Server Administration Chapter 6 Configuring a Web Server.
Apache Web Server v. 2.2 Reference Manual Chapter 2 Starting Apache.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess
Authentication & .htaccess
LINUX ADMINISTRATION 1
Unix System Administration
Chapter 2 Getting Started with PHP PHP Programming with MySQL
Unit-5 Chap-1 Configuring Web Server
Apache Web Server
APACHE WEB SERVER.
Presentation transcript:

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com What Is Apache? ● A “Patchy” Web Server ● The most common HTTP server on the 'Net ● An open source project which is both “Gratis” and “Libre” (free as in beer and free as in speech) ● The obvious choice for running a Web service on your Linux box at home or work.

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Apache For Your Favorite Distro ● Chances are, your installation CD's have Apache – Use your usual software management to look for Apache under Web Server software ● Newest source tarballs are always available at – Install docs for source are at

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Uhhhh... Now What? ● Start your engines! – httpd runs as a daemon, listening for a request and springing into action when called upon. – Start command: /usr/local/apache2/bin/apachectl – Previous versions' apachectl may be in /usr/local/apache/bin – Apache looks for httpd.conf file, and runs with the configs listed there. – Look at your localhost in a web browser to see if it's working. Uhhhh... Now What? Photo by Ian Muttoo. Some Rights Reserved.

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com When nothing's there...

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Ways to Configure Apache ● httpd.conf is the main configuration file. ● Other config files are used with the Include directive – One common tool is to use one file per virtual server. Include the group by including the whole directory. – Any change to config files will take effect when the httpd is restarted. ●.htaccess files change configurations at the directory level, and take effect without restarting the httpd

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Directive Syntax – One directive per line – “\” (backslash) at the end of line signals directive continues to next line. – Directives are case insensitive BUT arguments are often case sensitive – Lines beginning with “#” are comments ● Comments can't be on the same line as a directive! – Blank space before or after directive is ignored, so indent at will for clarity. ● Run apachectl configtest to test your configs

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Directive Scope ● Directives in httpd.conf or its included files are applied to the entire server unless stated otherwise ● XML sections allow for limited scoping – eg.,,,,,, ● Directives in.htaccess files apply to the directory where it is found and those beneath it.

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com An example httpd.conf ServerRoot “/usr/local/apache2” Listen 80 ServerName DocumentRoot “/var/www/html” Options FollowSymLinks AllowOverride None Order Mutual-failure Deny from.com Allow from.il Options Indexes FollowSymLinks AllowOverride AuthConfig Options

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com An example (continued) Order allow,deny Deny from all Satisfy All ErrorLog logs/error_log LogLevel warn LogFormat “%h %l %u %t \”%r\” %>s %b” common CustomLog logs/access_log common Include /usr/local/apache2/conf/vhosts/*.conf

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com What's a.htaccess file? ● Directory level control for directives, lives in the directory it controls. ● Useful on shared servers – Allows individual server users to control their personal websites ● Most directives which can be placed in your.conf files can also be put in a.htaccess file. – Remember that you can control which directives can go into a.htaccess file from you main.conf files, too. Photo by Farl. Some rights reserved.

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Directory Lockdown with.htaccess In your.htaccess file write: AuthType Basic AuthName "restricted area" AuthUserFile.htpasswd require valid-user Create a.htpasswd file: # htpasswd -c.htpasswd esterling New password: mypassword Re-type new password: mypassword Adding password for user esterling

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Restart Your Engines!! ● Once you make changes to.conf files, make sure to restart Apache. ● apachectl -k graceful – Tells the children processes to shut down as soon as they are done serving whatever they have now. When the children shut down, the parent shuts down, too, then restarts. – Other options for apachectl -k: stop, restart, graceful-stop

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Apache In Webmin

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Apache In Webmin

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Apache In Webmin

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Apache In Webmin

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Apache In Webmin

(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com Learn More, Do More... ● Directives Quick Reference ● Apache-specific PHP functions ● Creating and using custom directives using mod_perl ● Authentication, Authorization & Access Control Photo by Erik Ogan. Some Rights Reserved.