Movatterモバイル変換


[0]ホーム

URL:


PPT, PDF1,195 views

Apache Web Server Setup 4

This document summarizes an advanced Apache web server training session covering security and performance tuning. The key points discussed include:1) Methods for securing an Apache server such as restricting access, disabling unneeded server technologies, running as a non-root user, using firewalls and encryption. 2) Configuring password-based authentication for protected directories using modules like mod_auth and storing passwords in text files created by the htpasswd utility. 3) An exercise where attendees set up password protection on their local Apache server website using a .htaccess file and htpasswd.4) Restricting access to protected directories by IP, hostname or domain using directives in httpd.conf or .

Embed presentation

Downloaded 61 times
Meeting 4: Advanced Topics, Continued:  Securing the Apache Server and Apache Performance Tuning Rutgers University Internet Institute Instructor:  Chris Uriarte (CU520-03- WMPUPDT)
Today’s Session Protecting your Web server against attacks.  Providing authenticated access to your Web site.  Overview of SSL-enabled Web Servers Apache Performance Tuning Wrap-up and Evaluations
Levels of Web Server Security Protecting data supplied through client browsers.  Protecting or restricting access to data stored on your Web server.  Protecting the Web server software.  Protecting the server that houses your Web server.
Common Attacks on Systems that Run Web Servers CGI exploits  Badly-written or buggy web applications (CGIs) programs allow access to restricted resources or consume server resources. DoS (Denial of Service) Software or operating system server exploits  Packet sniffers Hackers ‘sniff’ clear-text passwords Buffer overflows  Attacks that cause a piece of software to crash and possibly give unprivileged users privileged access
Securing Your Web Server Restrict access (by location or authentication) to file systems and resources. Password or IP authentication/authorization Disable server-side technologies if they are not required. Disable CGI Access and Server Side Includes Remove  ExecCGI  and  Includes  from the  Options  directive of your httpd.conf  Do not run your server as “root.”  The  User  directive in the httpd.conf should specify a user other than root (e.g. nobody, www, etc.)
Securing Your Web Server, con’t. Filter traffic with a firewall.  Use of a network device that only allows access to particular resources on a network Use encryption technologies (ssh, ssl).  Monitor your logs for problems.  Secure the system that hosts your Web server: disable ports and services not in use, install security patches, take preventative measures against popular exploits. Websites like  http://www.cert.org  and  www.securityfocus.com  have information on current exploits
Access by Authentication Standard Authentication Modules – mod_auth, mod_auth_anon, mod_auth_dbm, mod_auth_db, mod_digest  Access in Apache can be defined by user or group: For  Basic  Authentication:  <Directory /home/iti1234/htdocs/restricted>  AuthType Basic  AuthName “Restricted Access”  AuthUserFile/usr/local/apache/passwd.file AuthGroupFile /usr/local/apache/group.file  require user1 group1 group2  </Directory>
Authentication, con’t. Authenticated access often setup through a .htaccess file in the directory you want to protect, but can be setup via httpd.conf. Passwords sent  in the clear  for basic authentication.
Basic Authentication:  Line by Line You can keep authentication info in a <DIRECTORY> block in the httpd.conf or in an .htaccess file First, specify the AuthType, which is  Basic AuthType Basic  Next, Specify the text string that will be displayed when the username/pw box is presented to the user: AuthName “My Secret Webpages” Next, specify the path to a file that will contain the usernames and passwords of your users: AuthUserFile /home/apache/passwd.file   (best to keep this file out of the DocumentRoot)
Basic Authentication:  con’t. Finally, add a  require  statement within a  <Limit GET>  block, which can limit the access to a specific username, or group.  This can contain a list of groups, user names or the text “valid-user” to represent any valid user in the password file <Limit GET> require valid-user </Limit>
Basic Authentication:  con’t The final block looks like this: <Directory /home/iti1234/htdocs/restricted>  AuthType Basic  AuthName “My Secret Webpage”  AuthUserFile/home/apache/passwd.file <Limit GET> require valid-user  <Limit GET> </Directory>  … which will prompt a user for a username/pw when any document under /home/iti1234/htdocs/restricted is requested.
Creating a Password File htpasswd  is a utility for generating encrypted passwords and creating a password file Part of apache distribution, located in :  {SERVER ROOT}/bin/htpasswd  Usage:  htpasswd [-c] password-file username  The –c flag creates a new password file.  Example, adds a user  myname  and creates a new password file (type all on one line): /home/iti1234/bin/htpasswd -c /home/iti1234/apache/passwdfile username
Exercise: Password Protecting Your Website For this exercise, you will make the Website running on your workstation password restricted using a .htaccess file.  In the directory container for your document root (/home/itiXXXX/apache/htdocs), in httpd.conf set the following:  AllowOverride AuthConfig
Exercise, con’t: In /home/itiXXX/apache/htdocs, create a .htaccess file with the following contents:  AuthUserFile /home/itiXXXX/apache/.htpasswd AuthGroupFile /dev/null  AuthName “My Protected Site”  AuthType Basic <Limit GET>  require valid-user </Limit>
Exercise, con’t. Next, create a password file using htpasswd: htpasswd –c  /home/itiXXXX/apache/.htpasswd guest   Provide the password for the guest user when prompted. Access your website ( http://iti.rutgers.edu:PORT/ ) and provide the username/password.
Restrict Access by Location Authorization As discussed in Meeting 2, you can restrict access to web resources by IP address, hostname, domain name and IP block by using a <DIRECTORY> block in the httpd.conf or an .htaccess file: <Directory /home/itiXX/htdocs/restricted> order deny,allow  deny from all  allow from 165.230.30.68 .rutgers.edu </Directory>

Recommended

PPT
Apache Web Server Setup 2
PPT
Apache web server installation/configuration, Virtual Hosting
PPTX
Web server installation_configuration_apache
PDF
Apache Web server Complete Guide
PPT
Apache Web Server Setup 3
PDF
Apache Server Tutorial
PPT
Apache ppt
PPT
Apache Web Server Setup 1
PPT
Apache installation and configurations
PPT
Apache HTTP Server
PPT
Linux Webserver Installation Command and GUI.ppt
PPT
Apache
PDF
Configuring the Apache Web Server
PPT
Apache Ppt
PDF
httpd — Apache Web Server
PPT
Web Server(Apache),
PPTX
Apache web server
PPT
Apache Web Server Architecture Chaitanya Kulkarni
PPTX
Apache web server
PPTX
Apache web server
PPTX
Apache web service
PDF
Apache Tutorial
 
PPT
are available here
PPTX
Apache server configuration & optimization
PDF
Using aphace-as-proxy-server
PPT
Apache Presentation
PPT
5-WebServers.ppt
PPTX
Performance all teh things
PDF
Tomcat and apache httpd training
PDF
Apache Solr crash course

More Related Content

PPT
Apache Web Server Setup 2
PPT
Apache web server installation/configuration, Virtual Hosting
PPTX
Web server installation_configuration_apache
PDF
Apache Web server Complete Guide
PPT
Apache Web Server Setup 3
PDF
Apache Server Tutorial
PPT
Apache ppt
PPT
Apache Web Server Setup 1
Apache Web Server Setup 2
Apache web server installation/configuration, Virtual Hosting
Web server installation_configuration_apache
Apache Web server Complete Guide
Apache Web Server Setup 3
Apache Server Tutorial
Apache ppt
Apache Web Server Setup 1

What's hot

PPT
Apache installation and configurations
PPT
Apache HTTP Server
PPT
Linux Webserver Installation Command and GUI.ppt
PPT
Apache
PDF
Configuring the Apache Web Server
PPT
Apache Ppt
PDF
httpd — Apache Web Server
PPT
Web Server(Apache),
PPTX
Apache web server
PPT
Apache Web Server Architecture Chaitanya Kulkarni
PPTX
Apache web server
PPTX
Apache web server
PPTX
Apache web service
PDF
Apache Tutorial
 
PPT
are available here
PPTX
Apache server configuration & optimization
PDF
Using aphace-as-proxy-server
PPT
Apache Presentation
PPT
5-WebServers.ppt
PPTX
Performance all teh things
Apache installation and configurations
Apache HTTP Server
Linux Webserver Installation Command and GUI.ppt
Apache
Configuring the Apache Web Server
Apache Ppt
httpd — Apache Web Server
Web Server(Apache),
Apache web server
Apache Web Server Architecture Chaitanya Kulkarni
Apache web server
Apache web server
Apache web service
Apache Tutorial
 
are available here
Apache server configuration & optimization
Using aphace-as-proxy-server
Apache Presentation
5-WebServers.ppt
Performance all teh things

Viewers also liked

PDF
Tomcat and apache httpd training
PDF
Apache Solr crash course
PPT
PPTX
Building a real time, solr-powered recommendation engine
PPTX
Introduction to Apache Solr
PDF
Building a Recommendation Engine - An example of a product recommendation engine
PDF
Ca site minder r12 professional study guide
PDF
Apache module-201511
PDF
New-Age Search through Apache Solr
PPT
Introduction to Apache Solr.
Tomcat and apache httpd training
Apache Solr crash course
Building a real time, solr-powered recommendation engine
Introduction to Apache Solr
Building a Recommendation Engine - An example of a product recommendation engine
Ca site minder r12 professional study guide
Apache module-201511
New-Age Search through Apache Solr
Introduction to Apache Solr.

Similar to Apache Web Server Setup 4

PDF
Meeting 14. web server ii
PPT
Securing Apache Web Servers
PPTX
Authentication methods
PDF
Securing the Apache web server
PDF
Securing the Apache web server
PDF
Apache Cookbook Solutions And Examples For Apache Administrators 2nd Edition ...
PDF
Running the Apache Web Server
PPT
Download It
PDF
Apache2 BootCamp : Restricting Access
ODP
LAMP security practices
PPT
Htaccess info
PPT
Web application security
PPT
Setting Up Security on Apache
PPT
Securing Apache Web Servers
PPT
secure php
PPT
Durkee apache 2009_v7
PDF
Working with Apache Web ServerTime Required 35 minutesObjective.pdf
PDF
PowerPoint Presentation
PPT
Securing Your Web Server
PDF
Dip Your Toes in the Sea of Security (PHP Dorset, 2nd June 2014)
Meeting 14. web server ii
Securing Apache Web Servers
Authentication methods
Securing the Apache web server
Securing the Apache web server
Apache Cookbook Solutions And Examples For Apache Administrators 2nd Edition ...
Running the Apache Web Server
Download It
Apache2 BootCamp : Restricting Access
LAMP security practices
Htaccess info
Web application security
Setting Up Security on Apache
Securing Apache Web Servers
secure php
Durkee apache 2009_v7
Working with Apache Web ServerTime Required 35 minutesObjective.pdf
PowerPoint Presentation
Securing Your Web Server
Dip Your Toes in the Sea of Security (PHP Dorset, 2nd June 2014)

More from Information Technology

PPT
Web Hacking
PPT
MOSS 2007 Deployment Fundamentals -Part2
PPT
IIS 7: The Administrator’s Guide
PPT
Migration from ASP to ASP.NET
PPT
SharePoint Topology
PPT
WSS 3.0 & SharePoint 2007
PPT
Clustering and High Availability
PPT
PPT
Review of SQL
PPT
Microsoft Clustering
PDF
F5 beyond load balancer (nov 2009)
PPT
RAID Review
PDF
Sql Server Security Best Practices
PDF
Scalable Internet Servers and Load Balancing
PPT
MOSS 2007 Deployment Fundamentals -Part1
PPT
Sql 2005 high availability
PPT
SQL 2005 Disk IO Performance
PDF
Sharepoint Deployments
Web Hacking
MOSS 2007 Deployment Fundamentals -Part2
IIS 7: The Administrator’s Guide
Migration from ASP to ASP.NET
SharePoint Topology
WSS 3.0 & SharePoint 2007
Clustering and High Availability
Review of SQL
Microsoft Clustering
F5 beyond load balancer (nov 2009)
RAID Review
Sql Server Security Best Practices
Scalable Internet Servers and Load Balancing
MOSS 2007 Deployment Fundamentals -Part1
Sql 2005 high availability
SQL 2005 Disk IO Performance
Sharepoint Deployments

Recently uploaded

PDF
Day 1 - Cloud Security Strategy and Planning ~ 2nd Sight Lab ~ Cloud Security...
PDF
Day 2 - Network Security ~ 2nd Sight Lab ~ Cloud Security Class ~ 2020
PDF
DevFest El Jadida 2025 - Product Thinking
PDF
Security Forum Sessions from Houston 2025 Event
PDF
Unlocking the Power of Salesforce Architecture: Frameworks for Effective Solu...
PDF
Vibe Coding vs. Spec-Driven Development [Free Meetup]
PPTX
Software Analysis &Design ethiopia chap-2.pptx
PDF
Session 1 - Solving Semi-Structured Documents with Document Understanding
PDF
Unser Jahresrückblick – MarvelClient in 2025
PDF
GPUS and How to Program Them by Manya Bansal
PPTX
Cybercrime in the Digital Age: Risks, Impact & Protection
PDF
Our Digital Tribe_ Cultivating Connection and Growth in Our Slack Community 🌿...
PDF
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
PPTX
wob-report.pptxwob-report.pptxwob-report.pptx
PPTX
THIS IS CYBER SECURITY NOTES USED IN CLASS ON VARIOUS TOPICS USED IN CYBERSEC...
PPTX
Protecting Data in an AI Driven World - Cybersecurity in 2026
PDF
TrustArc Webinar - Looking Ahead: The 2026 Privacy Landscape
PDF
Energy Storage Landscape Clean Energy Ministerial
PDF
Six Shifts For 2026 (And The Next Six Years)
PPTX
Chapter 3 Introduction to number system.pptx
Day 1 - Cloud Security Strategy and Planning ~ 2nd Sight Lab ~ Cloud Security...
Day 2 - Network Security ~ 2nd Sight Lab ~ Cloud Security Class ~ 2020
DevFest El Jadida 2025 - Product Thinking
Security Forum Sessions from Houston 2025 Event
Unlocking the Power of Salesforce Architecture: Frameworks for Effective Solu...
Vibe Coding vs. Spec-Driven Development [Free Meetup]
Software Analysis &Design ethiopia chap-2.pptx
Session 1 - Solving Semi-Structured Documents with Document Understanding
Unser Jahresrückblick – MarvelClient in 2025
GPUS and How to Program Them by Manya Bansal
Cybercrime in the Digital Age: Risks, Impact & Protection
Our Digital Tribe_ Cultivating Connection and Growth in Our Slack Community 🌿...
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
wob-report.pptxwob-report.pptxwob-report.pptx
THIS IS CYBER SECURITY NOTES USED IN CLASS ON VARIOUS TOPICS USED IN CYBERSEC...
Protecting Data in an AI Driven World - Cybersecurity in 2026
TrustArc Webinar - Looking Ahead: The 2026 Privacy Landscape
Energy Storage Landscape Clean Energy Ministerial
Six Shifts For 2026 (And The Next Six Years)
Chapter 3 Introduction to number system.pptx

Apache Web Server Setup 4

  • 1.
    Meeting 4: AdvancedTopics, Continued: Securing the Apache Server and Apache Performance Tuning Rutgers University Internet Institute Instructor: Chris Uriarte (CU520-03- WMPUPDT)
  • 2.
    Today’s Session Protectingyour Web server against attacks. Providing authenticated access to your Web site. Overview of SSL-enabled Web Servers Apache Performance Tuning Wrap-up and Evaluations
  • 3.
    Levels of WebServer Security Protecting data supplied through client browsers. Protecting or restricting access to data stored on your Web server. Protecting the Web server software. Protecting the server that houses your Web server.
  • 4.
    Common Attacks onSystems that Run Web Servers CGI exploits Badly-written or buggy web applications (CGIs) programs allow access to restricted resources or consume server resources. DoS (Denial of Service) Software or operating system server exploits Packet sniffers Hackers ‘sniff’ clear-text passwords Buffer overflows Attacks that cause a piece of software to crash and possibly give unprivileged users privileged access
  • 5.
    Securing Your WebServer Restrict access (by location or authentication) to file systems and resources. Password or IP authentication/authorization Disable server-side technologies if they are not required. Disable CGI Access and Server Side Includes Remove ExecCGI and Includes from the Options directive of your httpd.conf Do not run your server as “root.” The User directive in the httpd.conf should specify a user other than root (e.g. nobody, www, etc.)
  • 6.
    Securing Your WebServer, con’t. Filter traffic with a firewall. Use of a network device that only allows access to particular resources on a network Use encryption technologies (ssh, ssl). Monitor your logs for problems. Secure the system that hosts your Web server: disable ports and services not in use, install security patches, take preventative measures against popular exploits. Websites like http://www.cert.org and www.securityfocus.com have information on current exploits
  • 7.
    Access by AuthenticationStandard Authentication Modules – mod_auth, mod_auth_anon, mod_auth_dbm, mod_auth_db, mod_digest Access in Apache can be defined by user or group: For Basic Authentication: <Directory /home/iti1234/htdocs/restricted> AuthType Basic AuthName “Restricted Access” AuthUserFile/usr/local/apache/passwd.file AuthGroupFile /usr/local/apache/group.file require user1 group1 group2 </Directory>
  • 8.
    Authentication, con’t. Authenticatedaccess often setup through a .htaccess file in the directory you want to protect, but can be setup via httpd.conf. Passwords sent in the clear for basic authentication.
  • 9.
    Basic Authentication:Line by Line You can keep authentication info in a <DIRECTORY> block in the httpd.conf or in an .htaccess file First, specify the AuthType, which is Basic AuthType Basic Next, Specify the text string that will be displayed when the username/pw box is presented to the user: AuthName “My Secret Webpages” Next, specify the path to a file that will contain the usernames and passwords of your users: AuthUserFile /home/apache/passwd.file (best to keep this file out of the DocumentRoot)
  • 10.
    Basic Authentication:con’t. Finally, add a require statement within a <Limit GET> block, which can limit the access to a specific username, or group. This can contain a list of groups, user names or the text “valid-user” to represent any valid user in the password file <Limit GET> require valid-user </Limit>
  • 11.
    Basic Authentication:con’t The final block looks like this: <Directory /home/iti1234/htdocs/restricted> AuthType Basic AuthName “My Secret Webpage” AuthUserFile/home/apache/passwd.file <Limit GET> require valid-user <Limit GET> </Directory> … which will prompt a user for a username/pw when any document under /home/iti1234/htdocs/restricted is requested.
  • 12.
    Creating a PasswordFile htpasswd is a utility for generating encrypted passwords and creating a password file Part of apache distribution, located in : {SERVER ROOT}/bin/htpasswd Usage: htpasswd [-c] password-file username The –c flag creates a new password file. Example, adds a user myname and creates a new password file (type all on one line): /home/iti1234/bin/htpasswd -c /home/iti1234/apache/passwdfile username
  • 13.
    Exercise: Password ProtectingYour Website For this exercise, you will make the Website running on your workstation password restricted using a .htaccess file. In the directory container for your document root (/home/itiXXXX/apache/htdocs), in httpd.conf set the following: AllowOverride AuthConfig
  • 14.
    Exercise, con’t: In/home/itiXXX/apache/htdocs, create a .htaccess file with the following contents: AuthUserFile /home/itiXXXX/apache/.htpasswd AuthGroupFile /dev/null AuthName “My Protected Site” AuthType Basic <Limit GET> require valid-user </Limit>
  • 15.
    Exercise, con’t. Next,create a password file using htpasswd: htpasswd –c /home/itiXXXX/apache/.htpasswd guest Provide the password for the guest user when prompted. Access your website ( http://iti.rutgers.edu:PORT/ ) and provide the username/password.
  • 16.
    Restrict Access byLocation Authorization As discussed in Meeting 2, you can restrict access to web resources by IP address, hostname, domain name and IP block by using a <DIRECTORY> block in the httpd.conf or an .htaccess file: <Directory /home/itiXX/htdocs/restricted> order deny,allow deny from all allow from 165.230.30.68 .rutgers.edu </Directory>

[8]ページ先頭

©2009-2025 Movatter.jp