SlideShare a Scribd company logo
How To - Apache2 Installation and Configuration
Contents
Overview.......................................................................................................................................................1
Applies To..................................................................................................................................................1
Update Operating System Patches ...........................................................................................................1
Install Apache2 Packages..........................................................................................................................1
Start / Stop / Restart Service ....................................................................................................................1
Reload Apache2 Configuration .................................................................................................................1
Important Configuration Files and Directories .............................................................................................2
Global Configuring Attributes .......................................................................................................................2
ServerName – FQDN.................................................................................................................................2
Listen – Default Port .................................................................................................................................3
Timeout.....................................................................................................................................................3
KeepAlive ..................................................................................................................................................3
MaxKeepAliveRequests.............................................................................................................................3
KeepAliveTimeout.....................................................................................................................................3
Default Virtual Host – Sites-Available...........................................................................................................4
Virtual Host Directives and Values............................................................................................................5
Virtual Host Port and Document Root Directives .................................................................................5
Directory Directive and Options for Root Folder..................................................................................5
Custom Directory Directive and Options ..............................................................................................5
Error Log Directive ................................................................................................................................5
Log Level, Custom Log Directive ...........................................................................................................5
Alias and Directory Directives...............................................................................................................6
Virtual Host – Definition & Directives...........................................................................................................6
<VirtualHost *:80> Directive.....................................................................................................................6
Virtual Host – ServerAdmin & DocumentRoot Directives ........................................................................6
<Directory /> - Directory Tag Directive.....................................................................................................6
Alias and ScriptAlias Directives .................................................................................................................7
Alias Doc....................................................................................................................................................8
Enabling Modules and Sites in Apache2.......................................................................................................9
Apache2 Managing Modules ....................................................................................................................9
Enabling Apache2 Module(s) ................................................................................................................9
How To - Apache2 Installation and Configuration
Disabling Apache2 Module(s) ...............................................................................................................9
Apache2 Managing Sites.........................................................................................................................10
Enabling Apache2 Site(s).....................................................................................................................10
Disabling Apache2 Site(s)....................................................................................................................10
How To - Apache2 Installation and Configuration
1 | P a g e
Overview
This guide will help in installing and configuration Apache2 on Ubuntu operating system, Apache is an
open source web server.
Applies To
ubuntu 12.04
To know the Ubuntu release execute the command
lsb_release -a
Update Operating System Patches
First and foremost thing is to update operating system with latest OS patches, to update the system
patches execute the update command.
sudo apt-get update
Install Apache2 Packages
In order to install Apache2, additional dependent packages have to installed, which also are specified in
the command below.
sudo apt-get install apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-
common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
Start / Stop / Restart Service
To start, stop, restart the apache2 service, execute the commands accordingly
sudo service apache2 start
sudo service apache2 stop
sudo service apache2 restart
Reload Apache2 Configuration
To reload the configuration execute the command
sudo apache2 reload
How To - Apache2 Installation and Configuration
2 | P a g e
Important Configuration Files and Directories
File / Directory
Name
Purpose Type
apache2.conf
This is the main configuration file for the server.
Almost all configuration can be done.
It is recommended to use separate, designated files for simplicity.
This file will configure defaults and be the central point of access for the
server to read configuration details.
File
ports.conf
This file is used to specify the ports that virtual hosts should listen on.
Always ensure that, file is correct if you are configuring SSL. File
conf.d/
It’s used for controlling specific aspects of the Apache configuration.
It is often used to define SSL configuration and default security options. Directory
fqdn.conf This file is used to specify the fully qualified domain name. File
sites-available/
This directory contains all of the virtual host files that define different web
sites.
These will establish which content gets served for which requests.
These are available configurations, not active configurations.
Directory
sites-enabled/
This directory establishes which virtual host definitions are actually being
used.
Typically, this directory consists of symbolic links to files defined in the
"sites-available" directory.
Directory
mods-enabled
This directory is similar in function to the sites directories and modules
are enabled Directory
mods- available
This directory is similar in function to the sites directories and modules
that are available which could be enabled optionally. Directory
Global Configuring Attributes
ServerName – FQDN
The purpose of this setting is to configure “Server Name” of the web server, to add the entry execute the
below command.
echo "ServerName vcpubuntu.effonetech.com" | sudo tee /etc/apache2/conf.d/fqdn.conf
Note:
The above command will create the file and add the text <ServerName> <FQDN>
It will overwrite the existing content
How To - Apache2 Installation and Configuration
3 | P a g e
Listen – Default Port
The purpose of this setting is to modify the default listening port of the web server.
vi /etc/apache2/ports.conf
Listen 80
Timeout
The purpose of this setting is to configure the time out value of the request (send and receive).
By default, this parameter is set to "300"
vi /etc/apache2/apache2.conf
Timeout 300
KeepAlive
The purpose of this setting is to allow each connection to continue open to handle multiple request from
the same client; wherein it’s set to "On"
If this is setting is set to "Off", each request will have to establish a new connection, which would result
in significant overhead depending on your setup and traffic.
vi /etc/apache2/apache2.conf
KeepAlive On
MaxKeepAliveRequests
The purpose of this setting is to control how many separate request each connection will handle before
dying. Keeping this number high will allow Apache to serve content to each client more effectively.
Setting this value to 0 will allow Apache to serve an unlimited amount of request for each connection.
vi /etc/apache2/apache2.conf
KeepAliveRequest 0
KeepAliveTimeout
The purpose of this setting specifies how long to wait for the next request after finishing the last one. If
the timeout threshold is reached, then the connection will die.
Which means that the next time content is requested, the server will establish a new connection to handle
the request for the content that make up the page the client is visiting.
vi /etc/apache2/apache2.conf
KeepAliveTimeout 0
How To - Apache2 Installation and Configuration
4 | P a g e
Default Virtual Host – Sites-Available
Virtual host directive is required for name based virtual hosts, each directive have a definitive purpose.
Default configuration file is default
To edit the default configuration file, execute the command
sudo vi /etc/apache2/sites-available/default
Snippet:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</VirtualHost>
How To - Apache2 Installation and Configuration
5 | P a g e
Virtual Host Directives and Values
Each and every directive plays a significant role in apache webserver behavior, hence configuring directive
is very crucial.
Virtual Host Port and Document Root Directives
This directive defines the virtual host’s port wherein the webpage would be severed with specific
document root associated to it.
<!--# Virtual Host Listening on port 80 -->
<VirtualHost *:80>
ServerAdmin webmaster@vcpubuntu.effonetech.com
DocumentRoot /var/www
Directory Directive and Options for Root Folder
This directive defines directory access with options and methods of access for the root directory.
<!--# Root Directory Options Configuration for a Virtual Host -->
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
Custom Directory Directive and Options
In addition to the root directory access, custom directory access should also be set and configured
accordingly.
<!--# /var/www/ Directory options for a Virtual Host -->
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Error Log Directive
Error log directive defines the error logs that would be written on to the file and its location.
<!--# Defines Error Log file Configuration for a Virtual Host -->
ErrorLog ${APACHE_LOG_DIR}/vcp_ubuntu_error.log
Log Level, Custom Log Directive
LogLevel and CustomLog directives defines the diffent types of logs that could be generated and its
associated log file.
<!--# Possible values include: debug, info, notice, warn, error, crit, alert, emerg. -->
LogLevel warn
How To - Apache2 Installation and Configuration
6 | P a g e
CustomLog ${APACHE_LOG_DIR}/vcp_ubuntu_access.log combined
Alias and Directory Directives
Alias directive defines mapping of URL alias to file system location and directory directive defines access
permissions and methods of access and accessibility from IP and subnet ranges to specific directory.
<!--# Alias Configuration - Virtual Host -->
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
Virtual Host – Definition & Directives
<VirtualHost *:80> Directive
Default Virtual Host is configured to handle any request on port 80, the standard http port.
This is defined in the declaration header where it says "*:80", meaning port 80 on any interface.
This does not mean that it will necessarily handle each request to the server on this port however. Apache
uses the most specific Virtual Host definition that matches the request. This means that if there was a
more specific definition, it could supersede this definition.
Virtual Host – ServerAdmin & DocumentRoot Directives
Directive Purpose
ServerAdmin Define Server Administrator E-Mail ID
DocumentRoot Define Document Root Folder
<Directory /> - Directory Tag Directive
The first directory directive applies rules for the "/", or root, directory on the server.
This will provide the baseline configuration for your Virtual Host entry, as it applies to all files served on
the filesystem.
Note: Ubuntu does not set up any access restrictions to the filesystem by default. Though, Apache
recommends you to configure some default access restrictions.
How To - Apache2 Installation and Configuration
7 | P a g e
<Directory />
Options FollowSymLinks
AllowOverride None
Order Deny,Allow
Deny from All
</Directory>
Directive Purpose
<Directory /> Define Directory option, in this case its “/” – Starting Tag
Options FollowSymLinks Follow Symbolic Links in the directory; tells the web server to
follow the symbolic links.
This option permits Apache to follow Symbolic link directory.
AllowOverride None When this directive is set to None; then .htaccess files are
completely ignored
This option allows webserver to validate user access based on the
override option.
Order Deny,Allow Order deny, allow means that the deny rules are processed before
the allow rules.
If the client does not match the deny rule or it does match the allow
rule, then it will be granted access.
Deny from All Deny all requests by default
</Directory> Directory Options – Ending Tag
The above setting signifies
FollowSymLinks means if a directory is a symbol link, follow the link
It will deny access to all content unless specified otherwise in subsequent directory definitions.
The next directory definition is for the document root, so it specifies the "allow from all" option that
overrides the "/" option for this directory.
The "AllowOverride" option is used to decide whether an ".htaccess" file can override settings if it is
placed in the content directory. This is not allowed by default, but can be useful to enable in a variety of
circumstances.
"Order Deny, Allow" option means that deny rules would be processed before allow rules.
Alias and ScriptAlias Directives
Directory definitions are sometimes preceded by "Alias" or "ScriptAlias" statements. Alias maps a URL
path to a directory path.
ScriptAlias operates in the same way, but is used to define directories that will have executables.
Example:
This line in a Virtual Host that handles request to "f1tech.com" would allow access to content within
"/path/to/content/" by navigating to "http://f1tech.com/cgi-bin/":
Alias /cgi-bin/ /usr/lib/cgi-bin/
How To - Apache2 Installation and Configuration
8 | P a g e
Following the alias, always remember to define the directory with access privileges as defined in the
directory section.
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
Directive Purpose
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ Define Script alias in the URL mapping and the actual
location of the script folder "cgi-bin" location
<Directory "/usr/lib/cgi-bin"> Define Directory option
AllowOverride None When this directive is set to None; then .htaccess files are
completely ignored
This option allows webserver to validate user access based
on the override option.
Options +ExeCGI -MultiViews
+SymLinksIfOwnerMatch
+ExeCGI is set, execution of CGI Script is permitted.
-MultiViews is not set, content negotiation is disabled.
+SymLinksIfOwnerMatch is set, server will only follow
symbolic links for which the target file or directory is owned
by the same user id as the link.
Order allow,deny Order deny, allow means that the deny rules are processed
before the allow rules.
If the client does not match the deny rule or it does match
the allow rule, then it will be granted access.
Allow from all Deny all requests by default
</Directory> Directory Options – Ending Tag
Alias Doc
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
Directive Purpose
Alias /doc/ "/usr/share/doc/" Define doc alias in the URL mapping and the actual location
of the doc folder "doc" location
<Directory "/usr/share/doc/"> Define Directory option
How To - Apache2 Installation and Configuration
9 | P a g e
Options Indexes MultiViews
FollowSymLinks
Indexes enable indexing on the directory.
MultiViews is not set, content negotiation is enabled.
Follow Symbolic Links in the directory; tells the web server
to follow the symbolic links.
This option permits Apache to follow Symbolic link directory.
AllowOverride None When this directive is set to None; then .htaccess files are
completely ignored
This option allows webserver to validate user access based
on the override option.
Order deny, allow Order deny, allow means that the deny rules are processed
before the allow rules.
If the client does not match the deny rule or it does match
the allow rule, then it will be granted access.
Allow from all allow all requests by default
</Directory> Directory Options – Ending Tag
Enabling Modules and Sites in Apache2
After configuring and validating Virtual Host file according to requirements; enable the sites for the live
environment.
For creating a symbolic link automatically in the "sites-enabled" directory to an existing file in the "sites-
available" directory, execute the following command:
sudo a2ensite <virtual host file name>
Example: sudo a2ensite f1tech.com
After enabling a site, issue the following command to tell Apache to re-read its configuration files, allowing
the change to propagate:
sudo service apache2 reload
There is also a command for disabling a Virtual Host. It operates by removing the symbolic link from the
"sites-enabled" directory:
sudo a2dissite virtual_host_file_name
Again, reload the configuration changes are reflected execute; sudo service apache2 reload
Apache2 Managing Modules
Enabling Apache2 Module(s)
Modules can be enabled by executing command "sudo a2enmod".
Disabling Apache2 Module(s)
Modules can be enabled by executing command "sudo a2dismod".
How To - Apache2 Installation and Configuration
10 | P a g e
Apache2 Managing Sites
Enabling Apache2 Site(s)
Modules can be enabled by executing command "sudo a2ensite".
Disabling Apache2 Site(s)
Modules can be enabled by executing command "sudo a2dissite".

More Related Content

What's hot

How To Install and Configure AWS CLI on RHEL 7
How To Install and Configure AWS CLI on RHEL 7How To Install and Configure AWS CLI on RHEL 7
How To Install and Configure AWS CLI on RHEL 7
VCP Muthukrishna
 
How to Upgrade Openfire on CentOS 7
How to Upgrade Openfire on CentOS 7How to Upgrade Openfire on CentOS 7
How to Upgrade Openfire on CentOS 7
VCP Muthukrishna
 
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
VCP Muthukrishna
 
How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7
VCP Muthukrishna
 
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
VCP Muthukrishna
 
SystemD Usage Guide
SystemD Usage GuideSystemD Usage Guide
SystemD Usage Guide
VCP Muthukrishna
 
How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7
VCP Muthukrishna
 
How To Configure SNMP Logging on RHEL 7
How To Configure SNMP Logging on RHEL 7How To Configure SNMP Logging on RHEL 7
How To Configure SNMP Logging on RHEL 7
VCP Muthukrishna
 
How to Install MariaDB Server or MySQL Server on CentOS 7
How to Install MariaDB Server or MySQL Server on CentOS 7How to Install MariaDB Server or MySQL Server on CentOS 7
How to Install MariaDB Server or MySQL Server on CentOS 7
VCP Muthukrishna
 
LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7
VCP Muthukrishna
 
Installation CentOS 6.3
Installation CentOS 6.3Installation CentOS 6.3
Installation CentOS 6.3
VCP Muthukrishna
 
How to Configure OpenFiler for NFS Share
How to Configure OpenFiler for NFS ShareHow to Configure OpenFiler for NFS Share
How to Configure OpenFiler for NFS Share
VCP Muthukrishna
 
How To Configure FirewallD on RHEL 7 or CentOS 7
How To Configure FirewallD on RHEL 7 or CentOS 7How To Configure FirewallD on RHEL 7 or CentOS 7
How To Configure FirewallD on RHEL 7 or CentOS 7
VCP Muthukrishna
 
How To Install and Use ABRT CLI on RHEL 7
How To Install and Use ABRT CLI on RHEL 7How To Install and Use ABRT CLI on RHEL 7
How To Install and Use ABRT CLI on RHEL 7
VCP Muthukrishna
 
How to Change Hostname in CentOS 7 or RHEL 7
How to Change Hostname in CentOS 7 or RHEL 7How to Change Hostname in CentOS 7 or RHEL 7
How to Change Hostname in CentOS 7 or RHEL 7
VCP Muthukrishna
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7
VCP Muthukrishna
 
How to Install Configure and Use sysstat utils on RHEL 7
How to Install Configure and Use sysstat utils on RHEL 7How to Install Configure and Use sysstat utils on RHEL 7
How to Install Configure and Use sysstat utils on RHEL 7
VCP Muthukrishna
 
How To Install and Configure Apache SSL on CentOS 7
How To Install and Configure Apache SSL on CentOS 7How To Install and Configure Apache SSL on CentOS 7
How To Install and Configure Apache SSL on CentOS 7
VCP Muthukrishna
 
Install and Configure RSyslog – CentOS 7 / RHEL 7
Install and Configure RSyslog – CentOS 7 / RHEL 7Install and Configure RSyslog – CentOS 7 / RHEL 7
Install and Configure RSyslog – CentOS 7 / RHEL 7
VCP Muthukrishna
 
How To Find Package Installation Date on RHEL 7
How To Find Package Installation Date on RHEL 7How To Find Package Installation Date on RHEL 7
How To Find Package Installation Date on RHEL 7
VCP Muthukrishna
 

What's hot (20)

How To Install and Configure AWS CLI on RHEL 7
How To Install and Configure AWS CLI on RHEL 7How To Install and Configure AWS CLI on RHEL 7
How To Install and Configure AWS CLI on RHEL 7
 
How to Upgrade Openfire on CentOS 7
How to Upgrade Openfire on CentOS 7How to Upgrade Openfire on CentOS 7
How to Upgrade Openfire on CentOS 7
 
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
 
How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7
 
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
 
SystemD Usage Guide
SystemD Usage GuideSystemD Usage Guide
SystemD Usage Guide
 
How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7
 
How To Configure SNMP Logging on RHEL 7
How To Configure SNMP Logging on RHEL 7How To Configure SNMP Logging on RHEL 7
How To Configure SNMP Logging on RHEL 7
 
How to Install MariaDB Server or MySQL Server on CentOS 7
How to Install MariaDB Server or MySQL Server on CentOS 7How to Install MariaDB Server or MySQL Server on CentOS 7
How to Install MariaDB Server or MySQL Server on CentOS 7
 
LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7
 
Installation CentOS 6.3
Installation CentOS 6.3Installation CentOS 6.3
Installation CentOS 6.3
 
How to Configure OpenFiler for NFS Share
How to Configure OpenFiler for NFS ShareHow to Configure OpenFiler for NFS Share
How to Configure OpenFiler for NFS Share
 
How To Configure FirewallD on RHEL 7 or CentOS 7
How To Configure FirewallD on RHEL 7 or CentOS 7How To Configure FirewallD on RHEL 7 or CentOS 7
How To Configure FirewallD on RHEL 7 or CentOS 7
 
How To Install and Use ABRT CLI on RHEL 7
How To Install and Use ABRT CLI on RHEL 7How To Install and Use ABRT CLI on RHEL 7
How To Install and Use ABRT CLI on RHEL 7
 
How to Change Hostname in CentOS 7 or RHEL 7
How to Change Hostname in CentOS 7 or RHEL 7How to Change Hostname in CentOS 7 or RHEL 7
How to Change Hostname in CentOS 7 or RHEL 7
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7
 
How to Install Configure and Use sysstat utils on RHEL 7
How to Install Configure and Use sysstat utils on RHEL 7How to Install Configure and Use sysstat utils on RHEL 7
How to Install Configure and Use sysstat utils on RHEL 7
 
How To Install and Configure Apache SSL on CentOS 7
How To Install and Configure Apache SSL on CentOS 7How To Install and Configure Apache SSL on CentOS 7
How To Install and Configure Apache SSL on CentOS 7
 
Install and Configure RSyslog – CentOS 7 / RHEL 7
Install and Configure RSyslog – CentOS 7 / RHEL 7Install and Configure RSyslog – CentOS 7 / RHEL 7
Install and Configure RSyslog – CentOS 7 / RHEL 7
 
How To Find Package Installation Date on RHEL 7
How To Find Package Installation Date on RHEL 7How To Find Package Installation Date on RHEL 7
How To Find Package Installation Date on RHEL 7
 

Viewers also liked

Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
MongoDB
 
NETWORK SECURITY USING LINUX INTRUSION DETECTION SYSTEM
NETWORK SECURITY USING LINUX INTRUSION DETECTION SYSTEMNETWORK SECURITY USING LINUX INTRUSION DETECTION SYSTEM
NETWORK SECURITY USING LINUX INTRUSION DETECTION SYSTEM
IJORCS
 
How to Diagnose Problems Quickly on Linux Servers
How to Diagnose Problems Quickly on Linux ServersHow to Diagnose Problems Quickly on Linux Servers
How to Diagnose Problems Quickly on Linux ServersRichard Cunningham
 
Linux Audit By Kaustubh Padwad
Linux Audit By Kaustubh Padwad Linux Audit By Kaustubh Padwad
Linux Audit By Kaustubh Padwad
Kaustubh Padwad
 
Scheduling in Linux and Web Servers
Scheduling in Linux and Web ServersScheduling in Linux and Web Servers
Scheduling in Linux and Web Servers
David Evans
 
How To Manage Yum Repositories
How To Manage Yum RepositoriesHow To Manage Yum Repositories
How To Manage Yum Repositories
VCP Muthukrishna
 
The Nits and Grits of Git
The Nits and Grits of GitThe Nits and Grits of Git
The Nits and Grits of Git
Salesforce Engineering
 
Earth's hydrosphere SanDiego
Earth's hydrosphere SanDiegoEarth's hydrosphere SanDiego
Earth's hydrosphere SanDiegoEmz Sandiego
 
Samba server
Samba serverSamba server
Samba server
Santosh Khadsare
 
Mastering GIT
Mastering GITMastering GIT
Mastering GIT
Hasnaeen Rahman
 
Bash Script - How To Monitor Application Error Logs and Send Notification
Bash Script - How To Monitor Application Error Logs and Send NotificationBash Script - How To Monitor Application Error Logs and Send Notification
Bash Script - How To Monitor Application Error Logs and Send Notification
VCP Muthukrishna
 
How to configure Nagios in Fedora ?
How to configure Nagios in Fedora ?How to configure Nagios in Fedora ?
How to configure Nagios in Fedora ?
Pankaj Rane
 
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
Nagios
 
Samba server configuration
Samba server configurationSamba server configuration
Samba server configuration
Thamizharasan P
 
Debugging LAMP Apps on Linux/UNIX Using Open Source Tools - Jess Portnot - OS...
Debugging LAMP Apps on Linux/UNIX Using Open Source Tools - Jess Portnot - OS...Debugging LAMP Apps on Linux/UNIX Using Open Source Tools - Jess Portnot - OS...
Debugging LAMP Apps on Linux/UNIX Using Open Source Tools - Jess Portnot - OS...
Zohar Babin
 
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios
 
Docker - The Linux container
Docker - The  Linux containerDocker - The  Linux container
Docker - The Linux container
Balaji Rajan
 
Samba4 Introduction
Samba4 IntroductionSamba4 Introduction
Samba4 Introduction
Manfred Furuholmen
 
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
How To Create EBS Snapshot and Restore EBS Snapshot – Linux InstanceHow To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
VCP Muthukrishna
 
How To Audit Server Login and Shutdown or Reboot Activity
How To Audit Server Login and Shutdown or Reboot ActivityHow To Audit Server Login and Shutdown or Reboot Activity
How To Audit Server Login and Shutdown or Reboot Activity
VCP Muthukrishna
 

Viewers also liked (20)

Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
 
NETWORK SECURITY USING LINUX INTRUSION DETECTION SYSTEM
NETWORK SECURITY USING LINUX INTRUSION DETECTION SYSTEMNETWORK SECURITY USING LINUX INTRUSION DETECTION SYSTEM
NETWORK SECURITY USING LINUX INTRUSION DETECTION SYSTEM
 
How to Diagnose Problems Quickly on Linux Servers
How to Diagnose Problems Quickly on Linux ServersHow to Diagnose Problems Quickly on Linux Servers
How to Diagnose Problems Quickly on Linux Servers
 
Linux Audit By Kaustubh Padwad
Linux Audit By Kaustubh Padwad Linux Audit By Kaustubh Padwad
Linux Audit By Kaustubh Padwad
 
Scheduling in Linux and Web Servers
Scheduling in Linux and Web ServersScheduling in Linux and Web Servers
Scheduling in Linux and Web Servers
 
How To Manage Yum Repositories
How To Manage Yum RepositoriesHow To Manage Yum Repositories
How To Manage Yum Repositories
 
The Nits and Grits of Git
The Nits and Grits of GitThe Nits and Grits of Git
The Nits and Grits of Git
 
Earth's hydrosphere SanDiego
Earth's hydrosphere SanDiegoEarth's hydrosphere SanDiego
Earth's hydrosphere SanDiego
 
Samba server
Samba serverSamba server
Samba server
 
Mastering GIT
Mastering GITMastering GIT
Mastering GIT
 
Bash Script - How To Monitor Application Error Logs and Send Notification
Bash Script - How To Monitor Application Error Logs and Send NotificationBash Script - How To Monitor Application Error Logs and Send Notification
Bash Script - How To Monitor Application Error Logs and Send Notification
 
How to configure Nagios in Fedora ?
How to configure Nagios in Fedora ?How to configure Nagios in Fedora ?
How to configure Nagios in Fedora ?
 
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
Nagios Conference 2013 - Sam Lansing - Getting Started With Nagios XI, Core, ...
 
Samba server configuration
Samba server configurationSamba server configuration
Samba server configuration
 
Debugging LAMP Apps on Linux/UNIX Using Open Source Tools - Jess Portnot - OS...
Debugging LAMP Apps on Linux/UNIX Using Open Source Tools - Jess Portnot - OS...Debugging LAMP Apps on Linux/UNIX Using Open Source Tools - Jess Portnot - OS...
Debugging LAMP Apps on Linux/UNIX Using Open Source Tools - Jess Portnot - OS...
 
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
 
Docker - The Linux container
Docker - The  Linux containerDocker - The  Linux container
Docker - The Linux container
 
Samba4 Introduction
Samba4 IntroductionSamba4 Introduction
Samba4 Introduction
 
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
How To Create EBS Snapshot and Restore EBS Snapshot – Linux InstanceHow To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
 
How To Audit Server Login and Shutdown or Reboot Activity
How To Audit Server Login and Shutdown or Reboot ActivityHow To Audit Server Login and Shutdown or Reboot Activity
How To Audit Server Login and Shutdown or Reboot Activity
 

Similar to How to installation and configure apache2

Apache HTTP Server
Apache HTTP ServerApache HTTP Server
Apache HTTP Server
Tan Huynh Cong
 
Using aphace-as-proxy-server
Using aphace-as-proxy-serverUsing aphace-as-proxy-server
Using aphace-as-proxy-server
HARRY CHAN PUTRA
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
عطاءالمنعم اثیل شیخ
 
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
 
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...webhostingguy
 
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...webhostingguy
 
Deploy Rails Application by Capistrano
Deploy Rails Application by CapistranoDeploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
Tasawr Interactive
 
General configurations on apache directives included in the httpd.conf file
General configurations on apache directives included in the httpd.conf fileGeneral configurations on apache directives included in the httpd.conf file
General configurations on apache directives included in the httpd.conf file
Cognizant
 
Pandora FMS: Apache server monitoring
Pandora FMS: Apache server monitoring Pandora FMS: Apache server monitoring
Pandora FMS: Apache server monitoring
Pandora FMS
 
Apache installation and configurations
Apache installation and configurationsApache installation and configurations
Apache installation and configurationsNikhil Jain
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8
Kaan Aslandağ
 
Meeting 14. web server ii
Meeting 14. web server iiMeeting 14. web server ii
Meeting 14. web server ii
Syaiful Ahdan
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
Manish Bothra
 

Similar to How to installation and configure apache2 (20)

Apache - Quick reference guide
Apache - Quick reference guideApache - Quick reference guide
Apache - Quick reference guide
 
Http
HttpHttp
Http
 
Apache HTTP Server
Apache HTTP ServerApache HTTP Server
Apache HTTP Server
 
Using aphace-as-proxy-server
Using aphace-as-proxy-serverUsing aphace-as-proxy-server
Using aphace-as-proxy-server
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
 
Apache
ApacheApache
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
 
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
 
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
INSTALLING AND CONFIGURING APACHE TOOLKIT FOR SERVICEGUARD ...
 
Deploy Rails Application by Capistrano
Deploy Rails Application by CapistranoDeploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
 
Apache
ApacheApache
Apache
 
General configurations on apache directives included in the httpd.conf file
General configurations on apache directives included in the httpd.conf fileGeneral configurations on apache directives included in the httpd.conf file
General configurations on apache directives included in the httpd.conf file
 
Pandora FMS: Apache server monitoring
Pandora FMS: Apache server monitoring Pandora FMS: Apache server monitoring
Pandora FMS: Apache server monitoring
 
Apache installation and configurations
Apache installation and configurationsApache installation and configurations
Apache installation and configurations
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8
 
Meeting 14. web server ii
Meeting 14. web server iiMeeting 14. web server ii
Meeting 14. web server ii
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
 

More from VCP Muthukrishna

How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7
VCP Muthukrishna
 
How To Install and Configure GNome on CentOS 7
How To Install and Configure GNome on CentOS 7How To Install and Configure GNome on CentOS 7
How To Install and Configure GNome on CentOS 7
VCP Muthukrishna
 
How To Connect to Active Directory User Validation
How To Connect to Active Directory User ValidationHow To Connect to Active Directory User Validation
How To Connect to Active Directory User Validation
VCP Muthukrishna
 
How To Connect To Active Directory PowerShell
How To Connect To Active Directory PowerShellHow To Connect To Active Directory PowerShell
How To Connect To Active Directory PowerShell
VCP Muthukrishna
 
How To List Files on Remote Server - PowerShell
How To List Files on Remote Server - PowerShellHow To List Files on Remote Server - PowerShell
How To List Files on Remote Server - PowerShell
VCP Muthukrishna
 
How To List Files and Display In HTML Format
How To List Files and Display In HTML FormatHow To List Files and Display In HTML Format
How To List Files and Display In HTML Format
VCP Muthukrishna
 
How To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShellHow To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShell
VCP Muthukrishna
 
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
VCP Muthukrishna
 
How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7
VCP Muthukrishna
 
How To Install and Configure Open SSH Server on Ubuntu
How To Install and Configure Open SSH Server on UbuntuHow To Install and Configure Open SSH Server on Ubuntu
How To Install and Configure Open SSH Server on Ubuntu
VCP Muthukrishna
 
Windows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics - How To List PSDrive InfoWindows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics - How To List PSDrive Info
VCP Muthukrishna
 
How To List Nginx Modules Installed / Complied on CentOS 7
How To List Nginx Modules Installed / Complied on CentOS 7How To List Nginx Modules Installed / Complied on CentOS 7
How To List Nginx Modules Installed / Complied on CentOS 7
VCP Muthukrishna
 
Windows PowerShell Basics – How To Create powershell for loop
Windows PowerShell Basics – How To Create powershell for loopWindows PowerShell Basics – How To Create powershell for loop
Windows PowerShell Basics – How To Create powershell for loop
VCP Muthukrishna
 
How To Construct IF and Else Conditional Statements
How To Construct IF and Else Conditional StatementsHow To Construct IF and Else Conditional Statements
How To Construct IF and Else Conditional Statements
VCP Muthukrishna
 
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create PowerShell Function Mandatory Parameter and Optional ParameterHow To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
VCP Muthukrishna
 
How To Create Power Shell Function Mandatory Parameter Value
How To Create Power Shell Function Mandatory Parameter ValueHow To Create Power Shell Function Mandatory Parameter Value
How To Create Power Shell Function Mandatory Parameter Value
VCP Muthukrishna
 
How To Create PowerShell Function
How To Create PowerShell FunctionHow To Create PowerShell Function
How To Create PowerShell Function
VCP Muthukrishna
 
How To Disable IE Enhanced Security Windows PowerShell
How To Disable IE Enhanced Security Windows PowerShellHow To Disable IE Enhanced Security Windows PowerShell
How To Disable IE Enhanced Security Windows PowerShell
VCP Muthukrishna
 
How To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShellHow To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShell
VCP Muthukrishna
 
Nginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failedNginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failed
VCP Muthukrishna
 

More from VCP Muthukrishna (20)

How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7
 
How To Install and Configure GNome on CentOS 7
How To Install and Configure GNome on CentOS 7How To Install and Configure GNome on CentOS 7
How To Install and Configure GNome on CentOS 7
 
How To Connect to Active Directory User Validation
How To Connect to Active Directory User ValidationHow To Connect to Active Directory User Validation
How To Connect to Active Directory User Validation
 
How To Connect To Active Directory PowerShell
How To Connect To Active Directory PowerShellHow To Connect To Active Directory PowerShell
How To Connect To Active Directory PowerShell
 
How To List Files on Remote Server - PowerShell
How To List Files on Remote Server - PowerShellHow To List Files on Remote Server - PowerShell
How To List Files on Remote Server - PowerShell
 
How To List Files and Display In HTML Format
How To List Files and Display In HTML FormatHow To List Files and Display In HTML Format
How To List Files and Display In HTML Format
 
How To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShellHow To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShell
 
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
 
How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7
 
How To Install and Configure Open SSH Server on Ubuntu
How To Install and Configure Open SSH Server on UbuntuHow To Install and Configure Open SSH Server on Ubuntu
How To Install and Configure Open SSH Server on Ubuntu
 
Windows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics - How To List PSDrive InfoWindows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics - How To List PSDrive Info
 
How To List Nginx Modules Installed / Complied on CentOS 7
How To List Nginx Modules Installed / Complied on CentOS 7How To List Nginx Modules Installed / Complied on CentOS 7
How To List Nginx Modules Installed / Complied on CentOS 7
 
Windows PowerShell Basics – How To Create powershell for loop
Windows PowerShell Basics – How To Create powershell for loopWindows PowerShell Basics – How To Create powershell for loop
Windows PowerShell Basics – How To Create powershell for loop
 
How To Construct IF and Else Conditional Statements
How To Construct IF and Else Conditional StatementsHow To Construct IF and Else Conditional Statements
How To Construct IF and Else Conditional Statements
 
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create PowerShell Function Mandatory Parameter and Optional ParameterHow To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
 
How To Create Power Shell Function Mandatory Parameter Value
How To Create Power Shell Function Mandatory Parameter ValueHow To Create Power Shell Function Mandatory Parameter Value
How To Create Power Shell Function Mandatory Parameter Value
 
How To Create PowerShell Function
How To Create PowerShell FunctionHow To Create PowerShell Function
How To Create PowerShell Function
 
How To Disable IE Enhanced Security Windows PowerShell
How To Disable IE Enhanced Security Windows PowerShellHow To Disable IE Enhanced Security Windows PowerShell
How To Disable IE Enhanced Security Windows PowerShell
 
How To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShellHow To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShell
 
Nginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failedNginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failed
 

Recently uploaded

From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 

Recently uploaded (20)

From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 

How to installation and configure apache2

  • 1. How To - Apache2 Installation and Configuration Contents Overview.......................................................................................................................................................1 Applies To..................................................................................................................................................1 Update Operating System Patches ...........................................................................................................1 Install Apache2 Packages..........................................................................................................................1 Start / Stop / Restart Service ....................................................................................................................1 Reload Apache2 Configuration .................................................................................................................1 Important Configuration Files and Directories .............................................................................................2 Global Configuring Attributes .......................................................................................................................2 ServerName – FQDN.................................................................................................................................2 Listen – Default Port .................................................................................................................................3 Timeout.....................................................................................................................................................3 KeepAlive ..................................................................................................................................................3 MaxKeepAliveRequests.............................................................................................................................3 KeepAliveTimeout.....................................................................................................................................3 Default Virtual Host – Sites-Available...........................................................................................................4 Virtual Host Directives and Values............................................................................................................5 Virtual Host Port and Document Root Directives .................................................................................5 Directory Directive and Options for Root Folder..................................................................................5 Custom Directory Directive and Options ..............................................................................................5 Error Log Directive ................................................................................................................................5 Log Level, Custom Log Directive ...........................................................................................................5 Alias and Directory Directives...............................................................................................................6 Virtual Host – Definition & Directives...........................................................................................................6 <VirtualHost *:80> Directive.....................................................................................................................6 Virtual Host – ServerAdmin & DocumentRoot Directives ........................................................................6 <Directory /> - Directory Tag Directive.....................................................................................................6 Alias and ScriptAlias Directives .................................................................................................................7 Alias Doc....................................................................................................................................................8 Enabling Modules and Sites in Apache2.......................................................................................................9 Apache2 Managing Modules ....................................................................................................................9 Enabling Apache2 Module(s) ................................................................................................................9
  • 2. How To - Apache2 Installation and Configuration Disabling Apache2 Module(s) ...............................................................................................................9 Apache2 Managing Sites.........................................................................................................................10 Enabling Apache2 Site(s).....................................................................................................................10 Disabling Apache2 Site(s)....................................................................................................................10
  • 3. How To - Apache2 Installation and Configuration 1 | P a g e Overview This guide will help in installing and configuration Apache2 on Ubuntu operating system, Apache is an open source web server. Applies To ubuntu 12.04 To know the Ubuntu release execute the command lsb_release -a Update Operating System Patches First and foremost thing is to update operating system with latest OS patches, to update the system patches execute the update command. sudo apt-get update Install Apache2 Packages In order to install Apache2, additional dependent packages have to installed, which also are specified in the command below. sudo apt-get install apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2- common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap Start / Stop / Restart Service To start, stop, restart the apache2 service, execute the commands accordingly sudo service apache2 start sudo service apache2 stop sudo service apache2 restart Reload Apache2 Configuration To reload the configuration execute the command sudo apache2 reload
  • 4. How To - Apache2 Installation and Configuration 2 | P a g e Important Configuration Files and Directories File / Directory Name Purpose Type apache2.conf This is the main configuration file for the server. Almost all configuration can be done. It is recommended to use separate, designated files for simplicity. This file will configure defaults and be the central point of access for the server to read configuration details. File ports.conf This file is used to specify the ports that virtual hosts should listen on. Always ensure that, file is correct if you are configuring SSL. File conf.d/ It’s used for controlling specific aspects of the Apache configuration. It is often used to define SSL configuration and default security options. Directory fqdn.conf This file is used to specify the fully qualified domain name. File sites-available/ This directory contains all of the virtual host files that define different web sites. These will establish which content gets served for which requests. These are available configurations, not active configurations. Directory sites-enabled/ This directory establishes which virtual host definitions are actually being used. Typically, this directory consists of symbolic links to files defined in the "sites-available" directory. Directory mods-enabled This directory is similar in function to the sites directories and modules are enabled Directory mods- available This directory is similar in function to the sites directories and modules that are available which could be enabled optionally. Directory Global Configuring Attributes ServerName – FQDN The purpose of this setting is to configure “Server Name” of the web server, to add the entry execute the below command. echo "ServerName vcpubuntu.effonetech.com" | sudo tee /etc/apache2/conf.d/fqdn.conf Note: The above command will create the file and add the text <ServerName> <FQDN> It will overwrite the existing content
  • 5. How To - Apache2 Installation and Configuration 3 | P a g e Listen – Default Port The purpose of this setting is to modify the default listening port of the web server. vi /etc/apache2/ports.conf Listen 80 Timeout The purpose of this setting is to configure the time out value of the request (send and receive). By default, this parameter is set to "300" vi /etc/apache2/apache2.conf Timeout 300 KeepAlive The purpose of this setting is to allow each connection to continue open to handle multiple request from the same client; wherein it’s set to "On" If this is setting is set to "Off", each request will have to establish a new connection, which would result in significant overhead depending on your setup and traffic. vi /etc/apache2/apache2.conf KeepAlive On MaxKeepAliveRequests The purpose of this setting is to control how many separate request each connection will handle before dying. Keeping this number high will allow Apache to serve content to each client more effectively. Setting this value to 0 will allow Apache to serve an unlimited amount of request for each connection. vi /etc/apache2/apache2.conf KeepAliveRequest 0 KeepAliveTimeout The purpose of this setting specifies how long to wait for the next request after finishing the last one. If the timeout threshold is reached, then the connection will die. Which means that the next time content is requested, the server will establish a new connection to handle the request for the content that make up the page the client is visiting. vi /etc/apache2/apache2.conf KeepAliveTimeout 0
  • 6. How To - Apache2 Installation and Configuration 4 | P a g e Default Virtual Host – Sites-Available Virtual host directive is required for name based virtual hosts, each directive have a definitive purpose. Default configuration file is default To edit the default configuration file, execute the command sudo vi /etc/apache2/sites-available/default Snippet: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </VirtualHost>
  • 7. How To - Apache2 Installation and Configuration 5 | P a g e Virtual Host Directives and Values Each and every directive plays a significant role in apache webserver behavior, hence configuring directive is very crucial. Virtual Host Port and Document Root Directives This directive defines the virtual host’s port wherein the webpage would be severed with specific document root associated to it. <!--# Virtual Host Listening on port 80 --> <VirtualHost *:80> ServerAdmin webmaster@vcpubuntu.effonetech.com DocumentRoot /var/www Directory Directive and Options for Root Folder This directive defines directory access with options and methods of access for the root directory. <!--# Root Directory Options Configuration for a Virtual Host --> <Directory /> Options FollowSymLinks AllowOverride None </Directory> Custom Directory Directive and Options In addition to the root directory access, custom directory access should also be set and configured accordingly. <!--# /var/www/ Directory options for a Virtual Host --> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> Error Log Directive Error log directive defines the error logs that would be written on to the file and its location. <!--# Defines Error Log file Configuration for a Virtual Host --> ErrorLog ${APACHE_LOG_DIR}/vcp_ubuntu_error.log Log Level, Custom Log Directive LogLevel and CustomLog directives defines the diffent types of logs that could be generated and its associated log file. <!--# Possible values include: debug, info, notice, warn, error, crit, alert, emerg. --> LogLevel warn
  • 8. How To - Apache2 Installation and Configuration 6 | P a g e CustomLog ${APACHE_LOG_DIR}/vcp_ubuntu_access.log combined Alias and Directory Directives Alias directive defines mapping of URL alias to file system location and directory directive defines access permissions and methods of access and accessibility from IP and subnet ranges to specific directory. <!--# Alias Configuration - Virtual Host --> Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> Virtual Host – Definition & Directives <VirtualHost *:80> Directive Default Virtual Host is configured to handle any request on port 80, the standard http port. This is defined in the declaration header where it says "*:80", meaning port 80 on any interface. This does not mean that it will necessarily handle each request to the server on this port however. Apache uses the most specific Virtual Host definition that matches the request. This means that if there was a more specific definition, it could supersede this definition. Virtual Host – ServerAdmin & DocumentRoot Directives Directive Purpose ServerAdmin Define Server Administrator E-Mail ID DocumentRoot Define Document Root Folder <Directory /> - Directory Tag Directive The first directory directive applies rules for the "/", or root, directory on the server. This will provide the baseline configuration for your Virtual Host entry, as it applies to all files served on the filesystem. Note: Ubuntu does not set up any access restrictions to the filesystem by default. Though, Apache recommends you to configure some default access restrictions.
  • 9. How To - Apache2 Installation and Configuration 7 | P a g e <Directory /> Options FollowSymLinks AllowOverride None Order Deny,Allow Deny from All </Directory> Directive Purpose <Directory /> Define Directory option, in this case its “/” – Starting Tag Options FollowSymLinks Follow Symbolic Links in the directory; tells the web server to follow the symbolic links. This option permits Apache to follow Symbolic link directory. AllowOverride None When this directive is set to None; then .htaccess files are completely ignored This option allows webserver to validate user access based on the override option. Order Deny,Allow Order deny, allow means that the deny rules are processed before the allow rules. If the client does not match the deny rule or it does match the allow rule, then it will be granted access. Deny from All Deny all requests by default </Directory> Directory Options – Ending Tag The above setting signifies FollowSymLinks means if a directory is a symbol link, follow the link It will deny access to all content unless specified otherwise in subsequent directory definitions. The next directory definition is for the document root, so it specifies the "allow from all" option that overrides the "/" option for this directory. The "AllowOverride" option is used to decide whether an ".htaccess" file can override settings if it is placed in the content directory. This is not allowed by default, but can be useful to enable in a variety of circumstances. "Order Deny, Allow" option means that deny rules would be processed before allow rules. Alias and ScriptAlias Directives Directory definitions are sometimes preceded by "Alias" or "ScriptAlias" statements. Alias maps a URL path to a directory path. ScriptAlias operates in the same way, but is used to define directories that will have executables. Example: This line in a Virtual Host that handles request to "f1tech.com" would allow access to content within "/path/to/content/" by navigating to "http://f1tech.com/cgi-bin/": Alias /cgi-bin/ /usr/lib/cgi-bin/
  • 10. How To - Apache2 Installation and Configuration 8 | P a g e Following the alias, always remember to define the directory with access privileges as defined in the directory section. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> Directive Purpose ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ Define Script alias in the URL mapping and the actual location of the script folder "cgi-bin" location <Directory "/usr/lib/cgi-bin"> Define Directory option AllowOverride None When this directive is set to None; then .htaccess files are completely ignored This option allows webserver to validate user access based on the override option. Options +ExeCGI -MultiViews +SymLinksIfOwnerMatch +ExeCGI is set, execution of CGI Script is permitted. -MultiViews is not set, content negotiation is disabled. +SymLinksIfOwnerMatch is set, server will only follow symbolic links for which the target file or directory is owned by the same user id as the link. Order allow,deny Order deny, allow means that the deny rules are processed before the allow rules. If the client does not match the deny rule or it does match the allow rule, then it will be granted access. Allow from all Deny all requests by default </Directory> Directory Options – Ending Tag Alias Doc Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> Directive Purpose Alias /doc/ "/usr/share/doc/" Define doc alias in the URL mapping and the actual location of the doc folder "doc" location <Directory "/usr/share/doc/"> Define Directory option
  • 11. How To - Apache2 Installation and Configuration 9 | P a g e Options Indexes MultiViews FollowSymLinks Indexes enable indexing on the directory. MultiViews is not set, content negotiation is enabled. Follow Symbolic Links in the directory; tells the web server to follow the symbolic links. This option permits Apache to follow Symbolic link directory. AllowOverride None When this directive is set to None; then .htaccess files are completely ignored This option allows webserver to validate user access based on the override option. Order deny, allow Order deny, allow means that the deny rules are processed before the allow rules. If the client does not match the deny rule or it does match the allow rule, then it will be granted access. Allow from all allow all requests by default </Directory> Directory Options – Ending Tag Enabling Modules and Sites in Apache2 After configuring and validating Virtual Host file according to requirements; enable the sites for the live environment. For creating a symbolic link automatically in the "sites-enabled" directory to an existing file in the "sites- available" directory, execute the following command: sudo a2ensite <virtual host file name> Example: sudo a2ensite f1tech.com After enabling a site, issue the following command to tell Apache to re-read its configuration files, allowing the change to propagate: sudo service apache2 reload There is also a command for disabling a Virtual Host. It operates by removing the symbolic link from the "sites-enabled" directory: sudo a2dissite virtual_host_file_name Again, reload the configuration changes are reflected execute; sudo service apache2 reload Apache2 Managing Modules Enabling Apache2 Module(s) Modules can be enabled by executing command "sudo a2enmod". Disabling Apache2 Module(s) Modules can be enabled by executing command "sudo a2dismod".
  • 12. How To - Apache2 Installation and Configuration 10 | P a g e Apache2 Managing Sites Enabling Apache2 Site(s) Modules can be enabled by executing command "sudo a2ensite". Disabling Apache2 Site(s) Modules can be enabled by executing command "sudo a2dissite".