SlideShare a Scribd company logo
1 of 27
Download to read offline
Apache HTTP Server Essentials
                   Jagat
           <jagat21@gmail.com>
Topics Overview
   Apache HTTP Server Overview
   Apache Configuration Files
   Core Apache Configuration Directives
   Virtual Hosts
   Error Handling
   Important Apache Modules
   Q&A
Apache HTTP Server Overview
   Free, Based On Open Source Technology.

   Multiple Scripting Language Support.

   Runs On * Operating Systems.

   Web Server With a modular design.

   Simple, Powerful file-based configuration.
Apache Configuration Files
    httpd.conf

    access.conf ( linux )

    .htaccess

    .htpasswd
Core Apache Configuration Directives
   ServerRoot :: Apache Installation Directory Path.

           ServerRoot “e:/apache2.2.11"

   Listen :: IP addresses and ports that the server listens.

      Listen 80
      Listen 10.0.2.132:9111
Core Apache Configuration Directives (Cont…)
   ServerAdmin :: Email Address that will be displayed in
        the error message when error occurs

           ServerAdmin jagat21@gmail.com

   ServerName :: Current Server Name & Port

      ServerName localhost:80

   ServerAlias :: Alternate Names for accessing virtual hosts.

      ServerAlias alias-1 alias-2
Core Apache Configuration Directives (Cont…)
   DocumentRoot :: Main Document Directory as displayed on
    the Web Site.

          DocumentRoot “E:/wwwroot”

   NameVirtualHost :: Designates an IP address for name-virtual host

      NameVirtualHost *:2125
      NameVirtualHost 10.0.2.132:9111
Core Apache Configuration Directives (Cont…)
   LoadModule :: Load Specific Apache Module.

           LoadModule test_module modules/mod_test.so

   Include:: Includes other configuration files in the server
                   configuration file.

      Include “test.conf”
      Include “e:/wwwroot/aliases/*.conf”
Core Apache Configuration Directives (Cont…)
   IFModule :: Allows Module Specific Configurations.

          <IfModule module_name>

              Module Specific Configurations

          </IfModule>

          <IfModule !module_name>

              Module Specific Configurations

          </IfModule>
Core Apache Configuration Directives (Cont…)
   IFModule (Cont...) ::

           <IfModule !autoindex_module>

               <IfModule dir_module>

               DirectoryIndex index.php index.html
         index.htm

               </IfModule>

           </IfModule>
Core Apache Configuration Directives (Cont…)
   Directory :: Allows group of directives applied to directory

           <Directory “E:/wwwroot/">

               List of directives…
               ……………….
               ………………..

           </Directory>
Core Apache Configuration Directives (Cont…)

    Access Control Directives ::
     Determines who is allowed to access the website and who
     is kept out.

     Access can be granted based on following criteria ::

         •   IP Address / Domain Name
         •   Date & Time
         •   Other User Defined Criteria
Core Apache Configuration Directives (Cont…)
   Order :: Defines ordering for allow & deny
          Order Allow,Deny
          Order Deny,Allow
   Allow :: Allows access from given IP Address or Domain Name
      Allow From all
      Allow From 192.168
   Deny :: Deny access from given IP Address or Domain Name
      Deny From 192.168
Core Apache Configuration Directives (Cont…)

 Apache Configuration File   <Directory
                               “E:/wwwroot/protected”>
                                 Order allow,deny
                                 Allow from all
                                 Deny from 192.168.
                             </Directory>

  .htaccess                  Order allow,deny
                             Allow from all
                             Deny from 192.168.
Core Apache Configuration Directives (Cont…)
   FileMatch :: Allows to define Access Rights for specific files.
           <FilesMatch "^.ht">
                Order allow,deny
                Deny from all
           </FilesMatch>

           <FilesMatch ".pdf$">
                Order allow,deny
                Deny from all
           </FilesMatch>
Core Apache Configuration Directives (Cont…)
   ErrorLog :: Error log File Location
           ErrorLog err-log-file location

   TransferLog :: Access Log File Location
           TransferLog access-log-file location

   CustomLog :: Custom Log File with custom Log Format
           CustomLog custom-log-file location Log-Format
Core Apache Configuration Directives (Cont…)
   AuthType :: Type Of User Authentication
        AuthType Basic | Digest


   AuthUserFile :: File name which contains username and password

        AuthUserFile <Directory>/FileName
Core Apache Configuration Directives (Cont…)
   AuthName :: Authorization Title used in HTTP Authentication
        AuthName Authentication Title


       Require :: Defines Type of Users/groups that can access
        Contents. Access Types can be :: group | user | valid-user.

        Require [Access Type] [ Access Name ]

        Require group admin
Virtual Hosts

   Allows more than one websites to run on the same physical
   server & Apache Server.

   Two Types Of Virtual Hosts can be created ::

      IP-based Virtual Hosts
      Name-based Virtual Hosts
Virtual Host Related Directives
      <VirtualHost [IP ADDRESS:PORT] >

             ServerAdmin

             DocumentRoot

             ServerName

             ServerAlias

             ErrorLog
      </ VirtualHost >
Common Virtual Host Examples
  Listen 2125
  NameVirtualHost *:2125

  <VirtualHost localhost:2125>
    ServerAdmin jagat21@gmail.com
    DocumentRoot "E:wwwrootzfBasics"
    ServerName localhost
  </VirtualHost>

  Listen 9111
  NameVirtualHost *:9111

  <VirtualHost *:9111>
    ServerAdmin jagat21@gmail.com
    DocumentRoot "E:wwwrootaddressbook“
  </VirtualHost>
Server Virtual Host Examples
   NameVirtualHost *:80

   <VirtualHost *:80>
     ServerAdmin jagat21@gmail.com
     DocumentRoot "E:wwwrootzfManual"
     ServerName www.zendframeworkmanual.com
     ServerAlias zendframeworkmanual.com
   </VirtualHost>

   <VirtualHost *:80>
     ServerAdmin jagat21@gmail.com
     DocumentRoot "E:wwwrootdemo"
     ServerName www.example.com
     ServerAlias example.com
   </VirtualHost>
Error Handling
   Apache Server generates Status Codes depending on the
       Page/URL Request.

      •   301 Moved Permanently
      •   401 Unauthorized
      •   403 Forbidden
      •   404 Not Found
      •   500 Internal Server Error
Error Handling (Cont…)
   ErrorDocument :: Allows to define Custom Error Pages

         ErrorDocument StatusCode <Custom Error Page Location>

         ErrorDocument 401 /error401.html

         ErrorDocument 403 /errordocs/error403.php

         ErrorDocument 404 http://www.yousite.com/error.php
Important Apache Modules
                                mod_autoindex
              mod_auth                                     mod_cgi


    mod_mime                     mod_rewrite                         mod_fastcgi


mod_expires               mod_alias             mod_ssl                     mod_env


    mod_deflate                       mod_dir                        mod_include


              mod_proxy                                   mod_headers

                                mod_log_config
Q & A ::
Thank You




                    Jagat
            <jagat21@gmail.com>

More Related Content

What's hot

What's hot (20)

Introduction to Nginx
Introduction to NginxIntroduction to Nginx
Introduction to Nginx
 
Web servers – features, installation and configuration
Web servers – features, installation and configurationWeb servers – features, installation and configuration
Web servers – features, installation and configuration
 
Introduction to NGINX web server
Introduction to NGINX web serverIntroduction to NGINX web server
Introduction to NGINX web server
 
Apache web server
Apache web serverApache web server
Apache web server
 
HAProxy
HAProxy HAProxy
HAProxy
 
Tomcat
TomcatTomcat
Tomcat
 
Learn nginx in 90mins
Learn nginx in 90minsLearn nginx in 90mins
Learn nginx in 90mins
 
Nginx
NginxNginx
Nginx
 
Web server
Web serverWeb server
Web server
 
Understanding REST
Understanding RESTUnderstanding REST
Understanding REST
 
NGINX: Basics and Best Practices
NGINX: Basics and Best PracticesNGINX: Basics and Best Practices
NGINX: Basics and Best Practices
 
Express node js
Express node jsExpress node js
Express node js
 
Prometheus and Grafana
Prometheus and GrafanaPrometheus and Grafana
Prometheus and Grafana
 
Server Side Programming
Server Side ProgrammingServer Side Programming
Server Side Programming
 
Maven Introduction
Maven IntroductionMaven Introduction
Maven Introduction
 
web server
web serverweb server
web server
 
How to Get Started With NGINX
How to Get Started With NGINXHow to Get Started With NGINX
How to Get Started With NGINX
 
Apache
ApacheApache
Apache
 
PHP
PHPPHP
PHP
 
An Introduction of Node Package Manager (NPM)
An Introduction of Node Package Manager (NPM)An Introduction of Node Package Manager (NPM)
An Introduction of Node Package Manager (NPM)
 

Viewers also liked

Apache Presentation
Apache PresentationApache Presentation
Apache PresentationAnkush Jain
 
Apache web-server-architecture
Apache web-server-architectureApache web-server-architecture
Apache web-server-architectureIvanGeorgeArouje
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Serverwebhostingguy
 
Apache server configuration & optimization
Apache server configuration & optimizationApache server configuration & optimization
Apache server configuration & optimizationGokul Muralidharan
 
APACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXAPACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXwebhostingguy
 
Apache Tutorial
Apache TutorialApache Tutorial
Apache TutorialGuru99
 
Apache server 2 bible hungry minds
Apache server 2 bible   hungry mindsApache server 2 bible   hungry minds
Apache server 2 bible hungry mindsgrregwalz
 
Websphere MQ (MQSeries) fundamentals
Websphere MQ (MQSeries) fundamentalsWebsphere MQ (MQSeries) fundamentals
Websphere MQ (MQSeries) fundamentalsBiju Nair
 
Presentation about servers
Presentation about serversPresentation about servers
Presentation about serversSasin Prabu
 
Webserver Administration: Apache as a case study
Webserver Administration: Apache as a case studyWebserver Administration: Apache as a case study
Webserver Administration: Apache as a case studyTata Consultancy Services
 
Optimizing Magento for Peak Performance
Optimizing Magento for Peak PerformanceOptimizing Magento for Peak Performance
Optimizing Magento for Peak PerformanceMageCloud
 
Securing the Apache web server
Securing the Apache web serverSecuring the Apache web server
Securing the Apache web serverwebhostingguy
 

Viewers also liked (20)

Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
 
Apache Ppt
Apache PptApache Ppt
Apache Ppt
 
Apache web-server-architecture
Apache web-server-architectureApache web-server-architecture
Apache web-server-architecture
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Server
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
 
Apache server configuration & optimization
Apache server configuration & optimizationApache server configuration & optimization
Apache server configuration & optimization
 
APACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXAPACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUX
 
Web servers
Web serversWeb servers
Web servers
 
Apache Tutorial
Apache TutorialApache Tutorial
Apache Tutorial
 
Apache server 2 bible hungry minds
Apache server 2 bible   hungry mindsApache server 2 bible   hungry minds
Apache server 2 bible hungry minds
 
APACHE TOMCAT
APACHE TOMCATAPACHE TOMCAT
APACHE TOMCAT
 
Tomcat Server
Tomcat ServerTomcat Server
Tomcat Server
 
Apache tomcat
Apache tomcatApache tomcat
Apache tomcat
 
Web server
Web serverWeb server
Web server
 
Websphere MQ (MQSeries) fundamentals
Websphere MQ (MQSeries) fundamentalsWebsphere MQ (MQSeries) fundamentals
Websphere MQ (MQSeries) fundamentals
 
Presentation about servers
Presentation about serversPresentation about servers
Presentation about servers
 
WebSphere MQ tutorial
WebSphere MQ tutorialWebSphere MQ tutorial
WebSphere MQ tutorial
 
Webserver Administration: Apache as a case study
Webserver Administration: Apache as a case studyWebserver Administration: Apache as a case study
Webserver Administration: Apache as a case study
 
Optimizing Magento for Peak Performance
Optimizing Magento for Peak PerformanceOptimizing Magento for Peak Performance
Optimizing Magento for Peak Performance
 
Securing the Apache web server
Securing the Apache web serverSecuring the Apache web server
Securing the Apache web server
 

Similar to Apache HTTP Server Essentials - Configuration, Virtual Hosts, Modules

Linux System Administration - Web Server and squid setup
Linux System Administration - Web Server and squid setupLinux System Administration - Web Server and squid setup
Linux System Administration - Web Server and squid setupSreenatha Reddy K R
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hostingwebhostingguy
 
Lesson 9. The Apache Web Server
Lesson 9. The Apache Web ServerLesson 9. The Apache Web Server
Lesson 9. The Apache Web Serverwebhostingguy
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentationwebhostingguy
 
Running the Apache Web Server
Running the Apache Web ServerRunning the Apache Web Server
Running the Apache Web Serverwebhostingguy
 
Apache2 BootCamp : Getting Started With Apache
Apache2 BootCamp : Getting Started With ApacheApache2 BootCamp : Getting Started With Apache
Apache2 BootCamp : Getting Started With ApacheWildan Maulana
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptwebhostingguy
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptwebhostingguy
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptwebhostingguy
 
Apache installation and configurations
Apache installation and configurationsApache installation and configurations
Apache installation and configurationsNikhil Jain
 
Securing Apache Web Servers
Securing Apache Web ServersSecuring Apache Web Servers
Securing Apache Web Serverswebhostingguy
 
Hardening Apache Web Server by Aswin
Hardening Apache Web Server by AswinHardening Apache Web Server by Aswin
Hardening Apache Web Server by AswinAgate Studio
 

Similar to Apache HTTP Server Essentials - Configuration, Virtual Hosts, Modules (20)

Http
HttpHttp
Http
 
Apache HTTP Server
Apache HTTP ServerApache HTTP Server
Apache HTTP Server
 
Apache
ApacheApache
Apache
 
Linux System Administration - Web Server and squid setup
Linux System Administration - Web Server and squid setupLinux System Administration - Web Server and squid setup
Linux System Administration - Web Server and squid setup
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hosting
 
Lesson 9. The Apache Web Server
Lesson 9. The Apache Web ServerLesson 9. The Apache Web Server
Lesson 9. The Apache Web Server
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentation
 
Apache Web Server Setup 3
Apache Web Server Setup 3Apache Web Server Setup 3
Apache Web Server Setup 3
 
Running the Apache Web Server
Running the Apache Web ServerRunning the Apache Web Server
Running the Apache Web Server
 
are available here
are available hereare available here
are available here
 
Apache2 BootCamp : Getting Started With Apache
Apache2 BootCamp : Getting Started With ApacheApache2 BootCamp : Getting Started With Apache
Apache2 BootCamp : Getting Started With Apache
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
 
Apache installation and configurations
Apache installation and configurationsApache installation and configurations
Apache installation and configurations
 
Securing Apache Web Servers
Securing Apache Web ServersSecuring Apache Web Servers
Securing Apache Web Servers
 
Securing Apache Web Servers
Securing Apache Web ServersSecuring Apache Web Servers
Securing Apache Web Servers
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
 
Apache Web Server Setup 4
Apache Web Server Setup 4Apache Web Server Setup 4
Apache Web Server Setup 4
 
Hardening Apache Web Server by Aswin
Hardening Apache Web Server by AswinHardening Apache Web Server by Aswin
Hardening Apache Web Server by Aswin
 

Recently uploaded

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Recently uploaded (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

Apache HTTP Server Essentials - Configuration, Virtual Hosts, Modules

  • 1. Apache HTTP Server Essentials Jagat <jagat21@gmail.com>
  • 2. Topics Overview  Apache HTTP Server Overview  Apache Configuration Files  Core Apache Configuration Directives  Virtual Hosts  Error Handling  Important Apache Modules  Q&A
  • 3. Apache HTTP Server Overview  Free, Based On Open Source Technology.  Multiple Scripting Language Support.  Runs On * Operating Systems.  Web Server With a modular design.  Simple, Powerful file-based configuration.
  • 4. Apache Configuration Files  httpd.conf  access.conf ( linux )  .htaccess  .htpasswd
  • 5. Core Apache Configuration Directives  ServerRoot :: Apache Installation Directory Path. ServerRoot “e:/apache2.2.11"  Listen :: IP addresses and ports that the server listens. Listen 80 Listen 10.0.2.132:9111
  • 6. Core Apache Configuration Directives (Cont…)  ServerAdmin :: Email Address that will be displayed in the error message when error occurs ServerAdmin jagat21@gmail.com  ServerName :: Current Server Name & Port ServerName localhost:80  ServerAlias :: Alternate Names for accessing virtual hosts. ServerAlias alias-1 alias-2
  • 7. Core Apache Configuration Directives (Cont…)  DocumentRoot :: Main Document Directory as displayed on the Web Site. DocumentRoot “E:/wwwroot”  NameVirtualHost :: Designates an IP address for name-virtual host NameVirtualHost *:2125 NameVirtualHost 10.0.2.132:9111
  • 8. Core Apache Configuration Directives (Cont…)  LoadModule :: Load Specific Apache Module. LoadModule test_module modules/mod_test.so  Include:: Includes other configuration files in the server configuration file. Include “test.conf” Include “e:/wwwroot/aliases/*.conf”
  • 9. Core Apache Configuration Directives (Cont…)  IFModule :: Allows Module Specific Configurations. <IfModule module_name> Module Specific Configurations </IfModule> <IfModule !module_name> Module Specific Configurations </IfModule>
  • 10. Core Apache Configuration Directives (Cont…)  IFModule (Cont...) :: <IfModule !autoindex_module> <IfModule dir_module> DirectoryIndex index.php index.html index.htm </IfModule> </IfModule>
  • 11. Core Apache Configuration Directives (Cont…)  Directory :: Allows group of directives applied to directory <Directory “E:/wwwroot/"> List of directives… ………………. ……………….. </Directory>
  • 12. Core Apache Configuration Directives (Cont…)  Access Control Directives :: Determines who is allowed to access the website and who is kept out. Access can be granted based on following criteria :: • IP Address / Domain Name • Date & Time • Other User Defined Criteria
  • 13. Core Apache Configuration Directives (Cont…)  Order :: Defines ordering for allow & deny Order Allow,Deny Order Deny,Allow  Allow :: Allows access from given IP Address or Domain Name Allow From all Allow From 192.168  Deny :: Deny access from given IP Address or Domain Name Deny From 192.168
  • 14. Core Apache Configuration Directives (Cont…) Apache Configuration File <Directory “E:/wwwroot/protected”> Order allow,deny Allow from all Deny from 192.168. </Directory> .htaccess Order allow,deny Allow from all Deny from 192.168.
  • 15. Core Apache Configuration Directives (Cont…)  FileMatch :: Allows to define Access Rights for specific files. <FilesMatch "^.ht"> Order allow,deny Deny from all </FilesMatch> <FilesMatch ".pdf$"> Order allow,deny Deny from all </FilesMatch>
  • 16. Core Apache Configuration Directives (Cont…)  ErrorLog :: Error log File Location ErrorLog err-log-file location  TransferLog :: Access Log File Location TransferLog access-log-file location  CustomLog :: Custom Log File with custom Log Format CustomLog custom-log-file location Log-Format
  • 17. Core Apache Configuration Directives (Cont…)  AuthType :: Type Of User Authentication AuthType Basic | Digest  AuthUserFile :: File name which contains username and password AuthUserFile <Directory>/FileName
  • 18. Core Apache Configuration Directives (Cont…)  AuthName :: Authorization Title used in HTTP Authentication AuthName Authentication Title  Require :: Defines Type of Users/groups that can access Contents. Access Types can be :: group | user | valid-user. Require [Access Type] [ Access Name ] Require group admin
  • 19. Virtual Hosts Allows more than one websites to run on the same physical server & Apache Server. Two Types Of Virtual Hosts can be created ::  IP-based Virtual Hosts  Name-based Virtual Hosts
  • 20. Virtual Host Related Directives <VirtualHost [IP ADDRESS:PORT] > ServerAdmin DocumentRoot ServerName ServerAlias ErrorLog </ VirtualHost >
  • 21. Common Virtual Host Examples Listen 2125 NameVirtualHost *:2125 <VirtualHost localhost:2125> ServerAdmin jagat21@gmail.com DocumentRoot "E:wwwrootzfBasics" ServerName localhost </VirtualHost> Listen 9111 NameVirtualHost *:9111 <VirtualHost *:9111> ServerAdmin jagat21@gmail.com DocumentRoot "E:wwwrootaddressbook“ </VirtualHost>
  • 22. Server Virtual Host Examples NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin jagat21@gmail.com DocumentRoot "E:wwwrootzfManual" ServerName www.zendframeworkmanual.com ServerAlias zendframeworkmanual.com </VirtualHost> <VirtualHost *:80> ServerAdmin jagat21@gmail.com DocumentRoot "E:wwwrootdemo" ServerName www.example.com ServerAlias example.com </VirtualHost>
  • 23. Error Handling  Apache Server generates Status Codes depending on the Page/URL Request. • 301 Moved Permanently • 401 Unauthorized • 403 Forbidden • 404 Not Found • 500 Internal Server Error
  • 24. Error Handling (Cont…)  ErrorDocument :: Allows to define Custom Error Pages ErrorDocument StatusCode <Custom Error Page Location> ErrorDocument 401 /error401.html ErrorDocument 403 /errordocs/error403.php ErrorDocument 404 http://www.yousite.com/error.php
  • 25. Important Apache Modules mod_autoindex mod_auth mod_cgi mod_mime mod_rewrite mod_fastcgi mod_expires mod_alias mod_ssl mod_env mod_deflate mod_dir mod_include mod_proxy mod_headers mod_log_config
  • 26. Q & A ::
  • 27. Thank You Jagat <jagat21@gmail.com>