SlideShare a Scribd company logo
1 of 15
Apache Web Server
Quick and Dirty
Steve Gibbard for SANOG 16
(Originally by Joel Jaeggli for AfNOG 2007)
About Apache
 Apache http server project
 http://httpd.apache.org
 Apache foundation started to support the web
server project, but now extends to a multitude
of other projects.
Stats of Web Server types
What the Busiest 1M Websites use
Totals for Active Servers Across All Domains - May 2010
Apache
59%
Microsoft
19%
Google
13%
nginx
9%
lighttpd
0%
Apache Installation on FreeBSD
 Apache can be installed from Ports
/usr/ports/www/apache22
 Can be installed from pkg_add
 Or from source if one requires a
more recent version what's on
FreeBSD source ports tree
File System Layout
 config files are in /usr/local/etc/apache22/
 files the webserver will serve are in
/usr/local/www/apache22/data/
 Startup script is
/usr/local/etc/rc.d/apache22
 Take a look in
/usr/local/etc/rc.d/apache22
 Add apache22_enable="YES" to /etc/rc.conf
 Run
/usr/local/etc/rc.d/apache22 start
 Restart
$ apachectl restart
Apache SSL
 Secure Socket Layer (SSL) port is 443
 SSL is important to protect communication
between browser and web-server
 Requires the creation of SSL certificates and
Certificate Signing Requests (CSR)
 For integrity SSL certificates are signed by a
Certificate Authority’s (CA) such as Verisign
 Self signed Certificates will also work but your
browser will not trust it and will give a warning to
users (which most don’t read)
 Refer to the Creating SSL Certificate Exercise
Section
How SSL Works
 Each SSL certificate has a Public and Private
key
 The Public Key is used to encrypt the
information
 The Public Key is accessible to everyone
 The private Key is used to decipher the
information
 The private should be not be disclosed
Role of Certificate Authority
 There are a number of CA that certify
certificates
 Most browsers have pre-included public Keys
from the CA’s
 A CA certified certificate will have validation
information signed by the CA’s private key
 The browser will decrypt the validation
information using the public key and verify
that the certificate is certified by the CA
 If this fails a warning is given
Virtual Hosting
 Apache Provides multiple options of virtual
hosting and scales
 Name Based virtual hosts
 IP Based Virtual Hosts
 Aliases
 Its recommended to use an IP address over
hostnames in virtual hosting configuration
 Refer to virtual hosting Exercise section
Installing PHP & Mysql
 PhP and Mysql implementations have increased
driven mainly by development requests
 LAMP and WAMP are the most common
implementations
 FreeBSD = “FAMP” ?
http://geekybits.blogspot.com/2007/09/creating
-famp-server.html
 Installation via ports and relatively straight
forward
 See PHP & Mysql installation exercise section
Apache and IPv6
 Apache supports IPv4 and IPv6 by default
 Set the listen option to port 80 will listen for
both IPv4 and IPv6
 listen option with IPv4 and IPv6 specific
addresses will invoke different sockets for
each protocol
Listen 196.200.219.xx:80
Listen [2001:4348:0:219:196.200.219:xx]:80
Start Apache!
 /usr/local/etc/rc.d/apache22 start
 Check that you can access
http://localhost in your browser
 Check that you can access
https://localhost in your browser, and
that you get a certificate warning
 Click on the padlock icon in your browser and
check that the certificate details are correct
 Profit!
Apache implementations
 Apache is widely used to serve many content
applications
 Webmail, Blogs, Wiki’s, CMS etc
 Attempt to install wordpress and configure it
Start Exercises

More Related Content

Similar to apache.ppt

APACHE
APACHEAPACHE
APACHE
ARJUN
 
Ch 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet ServersCh 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet Servers
webhostingguy
 
Apache
ApacheApache
Apache
jtpond
 

Similar to apache.ppt (20)

Building dynamic websites with Mod perl and apache
Building dynamic websites with Mod perl and apacheBuilding dynamic websites with Mod perl and apache
Building dynamic websites with Mod perl and apache
 
Using aphace-as-proxy-server
Using aphace-as-proxy-serverUsing aphace-as-proxy-server
Using aphace-as-proxy-server
 
are available here
are available hereare available here
are available here
 
Apache Web Server Setup 3
Apache Web Server Setup 3Apache Web Server Setup 3
Apache Web Server Setup 3
 
APACHE
APACHEAPACHE
APACHE
 
Apache1.ppt
Apache1.pptApache1.ppt
Apache1.ppt
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Apache
ApacheApache
Apache
 
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
 
APACHE 2 HTTPS.ppt
APACHE 2 HTTPS.pptAPACHE 2 HTTPS.ppt
APACHE 2 HTTPS.ppt
 
Ch 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet ServersCh 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet Servers
 
ITB2019 NGINX Overview and Technical Aspects - Kevin Jones
ITB2019 NGINX Overview and Technical Aspects - Kevin JonesITB2019 NGINX Overview and Technical Aspects - Kevin Jones
ITB2019 NGINX Overview and Technical Aspects - Kevin Jones
 
Apache windows
Apache windowsApache windows
Apache windows
 
Securing Your Web Server
Securing Your Web ServerSecuring Your Web Server
Securing Your Web Server
 
Introduction to Apache Web Services using latex
 Introduction to Apache Web Services using latex Introduction to Apache Web Services using latex
Introduction to Apache Web Services using latex
 
Lumen
LumenLumen
Lumen
 
Scale Apache with Nginx
Scale Apache with NginxScale Apache with Nginx
Scale Apache with Nginx
 
Installing WampServer
Installing WampServerInstalling WampServer
Installing WampServer
 
Appache.ppt
Appache.pptAppache.ppt
Appache.ppt
 
Apache
ApacheApache
Apache
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 

apache.ppt

  • 1. Apache Web Server Quick and Dirty Steve Gibbard for SANOG 16 (Originally by Joel Jaeggli for AfNOG 2007)
  • 2. About Apache  Apache http server project  http://httpd.apache.org  Apache foundation started to support the web server project, but now extends to a multitude of other projects.
  • 3. Stats of Web Server types
  • 4. What the Busiest 1M Websites use Totals for Active Servers Across All Domains - May 2010 Apache 59% Microsoft 19% Google 13% nginx 9% lighttpd 0%
  • 5. Apache Installation on FreeBSD  Apache can be installed from Ports /usr/ports/www/apache22  Can be installed from pkg_add  Or from source if one requires a more recent version what's on FreeBSD source ports tree
  • 6. File System Layout  config files are in /usr/local/etc/apache22/  files the webserver will serve are in /usr/local/www/apache22/data/  Startup script is /usr/local/etc/rc.d/apache22  Take a look in /usr/local/etc/rc.d/apache22  Add apache22_enable="YES" to /etc/rc.conf  Run /usr/local/etc/rc.d/apache22 start  Restart $ apachectl restart
  • 7. Apache SSL  Secure Socket Layer (SSL) port is 443  SSL is important to protect communication between browser and web-server  Requires the creation of SSL certificates and Certificate Signing Requests (CSR)  For integrity SSL certificates are signed by a Certificate Authority’s (CA) such as Verisign  Self signed Certificates will also work but your browser will not trust it and will give a warning to users (which most don’t read)  Refer to the Creating SSL Certificate Exercise Section
  • 8. How SSL Works  Each SSL certificate has a Public and Private key  The Public Key is used to encrypt the information  The Public Key is accessible to everyone  The private Key is used to decipher the information  The private should be not be disclosed
  • 9. Role of Certificate Authority  There are a number of CA that certify certificates  Most browsers have pre-included public Keys from the CA’s  A CA certified certificate will have validation information signed by the CA’s private key  The browser will decrypt the validation information using the public key and verify that the certificate is certified by the CA  If this fails a warning is given
  • 10. Virtual Hosting  Apache Provides multiple options of virtual hosting and scales  Name Based virtual hosts  IP Based Virtual Hosts  Aliases  Its recommended to use an IP address over hostnames in virtual hosting configuration  Refer to virtual hosting Exercise section
  • 11. Installing PHP & Mysql  PhP and Mysql implementations have increased driven mainly by development requests  LAMP and WAMP are the most common implementations  FreeBSD = “FAMP” ? http://geekybits.blogspot.com/2007/09/creating -famp-server.html  Installation via ports and relatively straight forward  See PHP & Mysql installation exercise section
  • 12. Apache and IPv6  Apache supports IPv4 and IPv6 by default  Set the listen option to port 80 will listen for both IPv4 and IPv6  listen option with IPv4 and IPv6 specific addresses will invoke different sockets for each protocol Listen 196.200.219.xx:80 Listen [2001:4348:0:219:196.200.219:xx]:80
  • 13. Start Apache!  /usr/local/etc/rc.d/apache22 start  Check that you can access http://localhost in your browser  Check that you can access https://localhost in your browser, and that you get a certificate warning  Click on the padlock icon in your browser and check that the certificate details are correct  Profit!
  • 14. Apache implementations  Apache is widely used to serve many content applications  Webmail, Blogs, Wiki’s, CMS etc  Attempt to install wordpress and configure it