Set 13: Web Servers (configuration and security) (Chapter 21) IT452 Advanced Web and Internet Systems.

Slides:



Advertisements
Similar presentations
WordPress Installation for Beginners Sheila Bergman
Advertisements

Presentation Heading – font Arial
Dan Fleck.  WAMP – Windows Apache MySQL PHP -  LAMP – Linux Apache MySQL PHP ◦ There are.
Marketer to Developer Translation SMX West February 9, 2009.
Members Only & Login Modules Members Only works with the Login module to provide password protection to Web pages and files. Login Groups may be created.
Protecting Documents on the Web Friday Tech Briefing Timely Info for Power Users and Stanford's Technology Support Community Mark Branom ITSS Technology.
20-753: Fundamentals of Web Programming 1 Lecture 11: Web Server Case Study Fundamentals of Web Programming Lecture 11: Web Server Case Study.
Access control and user management in Apache
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Apache Access Controls. Ways to control Allow/Deny access control –By IP –By domain name Password –Apache managed passwords –Realms.
Access control and user management in Apache 1WUCM1.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
SSL (Secure Socket Layer) and Secure Web Pages Rob Sodders, University of Florida CIS4930 “Advanced Web Design” Spring 2004
APACHE SERVER By Innovationframes.com »
Setting up a Subversion repository By: Matt Krass Last Updated: 4/11/07.
Linux Operations and Administration
Web Technology – Web Server Setup : Chris Uriarte Meeting 4: Advanced Topics, Continued: Securing the Apache Server and Apache Performance Tuning Rutgers.
Configuring a Web Server. Overview Overview of IIS Preparing for an IIS Installation Installing IIS Configuring a Web Site Administering IIS Troubleshooting.

Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Cookies & Sessions.
Class 8Intro to Databases Authentication and Security Note: What we discuss in class today covers moderate to low security. Before you involve yourself.
Secure Access There are three distinct forms of secure access – authentication – verifying a user’s identity user log in via some mechanism (typically.
SIMPLE ROUTER The slide made by Salim Malakouti. Next we will create the Router  What do I we mean by a router?  Routers work similar to a map. It receives.
An introduction to Apache. Different Types of Web Servers Apache is the default web server for may Unix servers. IIS is Microsoft’s default web server.
System Administration NFS & Web Servers. NFS SERVER.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Welcome to the session! We will begin soon.. How to Log In: 1.Visit ala.org (any page) 2.Select the Login link at the top right and use your credentials.
IT:Network:Apps.  Microsoft Web Server ◦ Used by ~ 50% of Fortune 500 companies  Comes with Server OS  Expandable  Easy to use.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG 11 Kigali, Rwanda May 2010 Dorcas Muthoni Courtesy: Hervey Allen.
User authentication, passwords
Chapter 8 Cookies And Security JavaScript, Third Edition.
Module 5 Configuring Authentication. Module Overview Lesson 1: Understanding Classic SharePoint Authentication Providers Lesson 2: Understanding Federated.
Simplify and Strengthen Security with Oracle Application Server Allan L Haensgen Senior Principal Instructor Oracle Corporation Session id:
Module 7: Managing the User Environment by Using Group Policy.
Hands On Networking Network Applications Ram P Rustagi, ISE Dept Kundan Kumar, MCA Dept Manini Sahoor, MCA Dept Ravi Teja, MCA Dept Sourav.
Web Site Access Control with Apache Fort Collins, CO Copyright © XTR Systems, LLC Web Site Access Control Using the Apache Web Server Instructor: Joseph.
10/20/2015 ©2006 Scott Miller, University of Victoria 1 User Authentication Content Generation The Use of Cookies Content Pooling Rev 1.5.
Apache Security Travis Jeffries. Introduction Authentication and Authorization Strict Access Methods Defending against Attacks Bad CGI Programs Apache.
11 1 Cookies CGI/Perl Programming By Diane Zak Objectives In this chapter, you will: Learn the difference between temporary and persistent cookies.
CGI Common Gateway Interface. CGI is the scheme to interface other programs to the Web Server.
Securing the Apache Server and Apache Performance Tuning 1.
Cosc 4750 Configuring httpd, Mysql, And Samba. defaults By default httpd demean will startup and work User directories are turned off Default directory.
What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules.
1 Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG X Cairo, Egypt May 2009 Hervey Allen.
Sessions, Cookies, &.htaccess IT 210. Procedural Issues  Quiz #3 Today!  Homework #3 Due Friday at midnight UML for Lab 4  Withdraw Deadline is Wed,
CITA 310 Section 9 Securing the Web Environment (Textbook Chapter 10)
Chapter 12: How Private are Web Interactions?. Why we care? How much of your personal info was released to the Internet each time you view a Web page?
Authentication Names and Passwords Names and Passwords Also can use Groups Also can use Groups Webmaster can “require” authentication Webmaster can “require”
One Click Install Melanie Adcock
Perl – Cookie Setting #!/usr/bin/perl use CGI qw( :standard ); $cookie1 = cookie( -name=>'colour', -value=>'green', -path=>'/' ); print header( -cookie=>$cookie1.
Web Technology – Web Server Setup : Chris Uriarte Meeting 4: Advanced Topics, Continued: Securing the Apache Server and Apache Performance Tuning Rutgers.
How to maintain state in a stateless web Shirley Cohen
SlideSet #18: HTTP Authentication
PHP Form Processing * referenced from
COEN 350: Network Security E-Commerce Issues. Table of Content HTTP Authentication Cookies.
Winter 2001C.Watters1 Apache Proxy Notes. winter 2001C.Watters2 Proxy Intermediary between clients and the web Configure browser to go to the proxy Proxy.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
CS520 Web Programming Declarative Security (I) Chengyu Sun California State University, Los Angeles.
Server Performance, Scaling, Reliability and Configuration Norman White.
My Stuff & More! How to personalize your OSLIS 2.0 “dashboard” and add files to your personal space.
Authentication & Authorisation Is the user allowed to access the site?
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess
Redirection Allow requests to be moved about your file system or around the web ScriptAlias Allows you to run CGI scripts Simple to use.
Authentication & .htaccess
Enhanced Web Site Design Stanford University Continuing Studies CS 22
CSN09101 Networked Services Week 10: Using Apache
Web Server Design Week 11 Old Dominion University
Chapter 7 Searching Your Products
Web Server Design Week 11 Old Dominion University
Web Server Design Week 11 Old Dominion University
Presentation transcript:

Set 13: Web Servers (configuration and security) (Chapter 21) IT452 Advanced Web and Internet Systems

Key Questions What does a web server do? How can I control it? –URL re-writing / re-direction (and why do I care?) Access control and security –Developers –Users

One server to rule them all? Popular Web Servers

Web Server Basics What happens? Where does it come from? Are we sure? What happens? Where does it come from?

URL Guidance Things to avoid Things to do How to do this?

How to control a web server? Apache – we focus on the most popular server httpd.conf –The entire site –Must be root user to edit –Requires restart.htaccess –Per directory –Possibly each user (depends on config) –Re-read for each request

Content Control 1.Redirection 2.Rewriting 3.Content negotiation

Redirection # NOTE: this is an example.htaccess file # Redirect a subdirectory to another website Redirect /~nchamber/it452/examples # Or redirect a subdirectory to another subdirectory Redirect /~nchamber/it452/examples /~nchamber/test2 # Redirect permanently, add the ‘permanent’ option Redirect permanent /~nchamber/it452/examples

Redirection OR Rewriting # NOTE: continuation of.htaccess file, still in ‘change’ directory # Must turn on the rewrite engine first. RewriteEngine On # Sets the URL that fills in as your rewrite target’s base directory. # The default is /home/username/public_html RewriteBase /~username # Rules use the directory paths, and redirect to same server RewriteRule ^oldfile3.txt$ change/test3.txt [R,L] RewriteRule ^oldfile*.txt$ change/catchOldFiles.txt [R,L] # Behind the scenes change RewriteRule ^oldfile5.txt$ change/test5.txt [L] # More complex # redirect change/stuff/dogs to change/query.pl?q=dogs # 302 = temp change RewriteRule ^stuff/([^/]+)/?$ change/query.pl?q=$1 [R=302,L]

Exercise Create a rewrite rule: –People visit your site: –Turn all possible fillings into search terms that are sent to your script: –Make it silent so the user doesn’t see the new URL. –It should not redirect a longer URL from the user like:

Apache Access Control – Options 1.Domain/IP restrictions –Manually list the domains that are allowed or not 2.Basic password protection –Create a basic password file with usernames –Passwords are sent over plain text (or the hash is sent over plain text) 3.More advanced modules – keep passwords in DB rather than “flat file”

1. Access control: IP-based order deny,allow deny from all allow from.nadn.navy.mil allow from.usna.navy.mil allow from.usna.edu allow from.naps.edu # Naval Academy Prep School allow from # test bench allow from # test bench allow from # test bench allow from # NAPS allow from # Navy Medical allow from # Navy Medical allow from # Joint Spectrum Command allow from # Alumni Association allow from allow from allow from

2. Access Control: “Basic” Whole directory AuthType Basic AuthUserFile /home/mXXX/public_html/.htpasswd AuthName "Members Only" require valid-user Per file AuthType Basic AuthUserFile /home/mXXX/public_html/.htpasswd AuthName "Members Only" require valid-user Can also list specific users Require user nchamber needham

3. Access Control: “Digest” Same as “Basic”, but AuthType is different: AuthType Digest Both Basic and Digest can also list specific users Require user nchamber needham Create the password file: htpasswd -c c:/wamp/.htpasswd username OR htdigest -c c:/wamp/.htpasswddigest realm username “-c” creates a new file – omit to just add new entry Provide the actual path to the password file Don’t store password file in the web space!

Where to get more info Textbook (some in Chapter 21) Redirection/rewriting –Simple overview –Not-so-simple details Access control

Extra Info: Users and Passwords Don’t save passwords in plain text! Encryption: md5 –Basic approach, ok for normal sites –*Not collision resistant –Online databases can lookup common passwords! Perl requirements: –Use Digest::MD5 qw(md5 md5_hex) –my $hashed = md5_hex($password)