netkit lab web server and browser 1.2 Giuseppe Di Battista, Maurizio Patrignani, Massimo Rimondini Version Author(s)



Similar documents
netkit lab load balancer web switch 1.1 Giuseppe Di Battista, Massimo Rimondini Version Author(s)

netkit lab Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1.

walkthrough Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1.

netkit lab load balancer dns 1.2 Massimo Rimondini Version Author(s)

netkit lab bgp: multi-homed Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

netkit lab two-hosts Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

netkit lab single-host Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

netkit lab static-routing Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

Version Author(s) Web Description

Apache HTTP Server. Implementation Guide. (Version 5.7) Copyright 2013 Deepnet Security Limited

netkit lab bgp: prefix-filtering Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

netkit lab Traffic Engineering with MPLS for Linux Version Author(s) F. Di Ciccio, F. Antonini (Kasko Networks S.r.l.)

Apache and Virtual Hosts Exercises

Subversion Server for Windows

Magento Search Extension TECHNICAL DOCUMENTATION

How to Configure URL Filtering Using the Firewall s HTTP Proxy

Blue Coat Security First Steps Solution for Deploying an Explicit Proxy

netkit lab MPLS VPNs with overlapping address spaces 1.0 S.Filippi, L.Ricci, F.Antonini Version Author(s)

Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on Oracle WebLogic Server

CPE111 COMPUTER EXPLORATION

Configuring IBM HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on IBM WebSphere Application Server

Bubble Code Review for Magento

APACHE WEB SERVER. Andri Mirzal, PhD N

CA Performance Center

SecureAware on IIS8 on Windows Server 2008/- 12 R2-64bit

Novell ZENworks 10 Configuration Management SP3

Project management integrated into Outlook

WEB2CS INSTALLATION GUIDE

WebSpy Vantage Ultimate 2.2 Web Module Administrators Guide

BusinessObjects Enterprise XI Release 2

VERALAB LDAP Configuration Guide

Tech Note 847 Installing Wonderware Information Server (WIS) on the Windows Server Window 7 64 and 32-bit Operating System

System Administration Guide

Web Browsing Examples. How Web Browsing and HTTP Works

1. When will an IP process drop a datagram? 2. When will an IP process fragment a datagram? 3. When will a TCP process drop a segment?

How To Test Your Web Site On Wapt On A Pc Or Mac Or Mac (Or Mac) On A Mac Or Ipad Or Ipa (Or Ipa) On Pc Or Ipam (Or Pc Or Pc) On An Ip

JMETER - MONITOR TEST PLAN

PingFederate. Windows Live Cloud Identity Connector. User Guide. Version 1.0

Sophos Mobile Control Installation guide. Product version: 3.5

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM with Apache Tomcat and Apache HTTP Server

FOR PARALLELS / PLESK PANEL

Manual Password Depot Server 8

Implementing HTTPS in CONTENTdm 6 September 5, 2012

How To Set Up A Virtual Host In Apa On A Linux Box On A Windows Xp Or Ipa On An Ubuntu Box On An Ipa (Windows) Or Ipo (Windows Xp) On A Ubora Box On Your Ubora

The course will be run on a Linux platform, but it is suitable for all UNIX based deployments.

Virtual Owl. Guide for Windows. University Information Technology Services. Training, Outreach, Learning Technologies & Video Production

Wolfr am Lightweight Grid M TM anager USER GUIDE

Apache Web Server System Description

Secure Web Gateway Version 11.7 High Availability

How to Configure edgebox as a Web Server

Tableau Server Trusted Authentication

IIS, FTP Server and Windows

LAE 5.1. Windows Server Installation Guide. Version 1.0

Hadoop Basics with InfoSphere BigInsights

Backup and Restore MySQL Databases

Administrator Operations Guide

White Paper. Fabasoft Folio Thin Client Support. Fabasoft Folio 2015 Update Rollup 2

2 Downloading Access Manager 3.1 SP4 IR1

Sophos Mobile Control Installation guide. Product version: 3

Module 8: Implementing Group Policy

Setting Up SSL on IIS6 for MEGA Advisor

IBM DB2 for Linux, UNIX, and Windows. Deploying IBM DB2 Express-C with PHP on Ubuntu Linux

Securing the OpenAdmin Tool for Informix web server with HTTPS

Contents Notice to Users

GestióIP IPAM v3.0 IP address management software Installation Guide v0.1

Apache Server Implementation Guide

SHARING FILE SYSTEM RESOURCES

Web Remote Access. User Guide

VB.NET - WEB PROGRAMMING

How to start with 3DHOP

Setup a Virtual Host/Website

PowerLink for Blackboard Vista and Campus Edition Install Guide

WebSphere Application Server security auditing

Dashboard Builder TM for Microsoft Access

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

Tutorial: setting up a web application

Setup Guide Access Manager 3.2 SP3

CHAPTER 7 SSL CONFIGURATION AND TESTING

Active Directory Requirements and Setup

Creating Dynamic Web Based Reporting

docs.hortonworks.com

Secure Web Development Teaching Modules 1. Security Testing. 1.1 Security Practices for Software Verification

Server Installation Guide ZENworks Patch Management 6.4 SP2

Sophos Mobile Control Installation guide. Product version: 3.6

Coveo Platform 7.0. Microsoft Dynamics CRM Connector Guide

Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.2 Web Applications Deployed on BEA WebLogic Server 9.2

Use Enterprise SSO as the Credential Server for Protected Sites

IBM WEBSPHERE LOAD BALANCING SUPPORT FOR EMC DOCUMENTUM WDK/WEBTOP IN A CLUSTERED ENVIRONMENT

CS SoftDent Practice Management Software Installation Guide for Client/Server Configurations

INUVIKA OVD INSTALLING INUVIKA OVD ON RHEL 6

Create a Web Page with Dreamweaver

Proctor Caching User Guide

Novell Remote Manager Administration Guide

PaperCut Payment Gateway Module CyberSource Quick Start Guide

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

Transcription:

netkit lab web server and browser Version Author(s) E-mail Web Description 1.2 Giuseppe Di Battista, Maurizio Patrignani, Massimo Rimondini contact@netkit.org http://www.netkit.org/ A lab showing the operation of a web server accessed by a browser client

copyright notice All the pages/slides in this presentation, including but not limited to, images, photos, animations, videos, sounds, music, and text (hereby referred to as material ) are protected by copyright. This material, with the exception of some multimedia elements licensed by other organizations, is property of the authors and/or organizations appearing in the first slide. This material, or its parts, can be reproduced and used for didactical purposes within universities and schools, provided that this happens for non-profit purposes. Information contained in this material cannot be used within network design projects or other products of any kind. Any other use is prohibited, unless explicitly authorized by the authors on the basis of an explicit agreement. The authors assume no responsibility about this material and provide this material as is, with no implicit or explicit warranty about the correctness and completeness of its contents, which may be subject to changes. This copyright notice must always be redistributed together with the material, or its portions.

lab topology 2 eth0 10.0.0.0/24 A 1 eth0

lab description server runs apache2 (with a default configuration) client the user can launch a text-based web browser (links) to check the server operation

server the user can check that apache2 is up and running by using the following command: server server:~# /etc/init.d/apache2 status Apache is running (pid 485).. server:~# the default apache2 setup offers a test html page, located in /var/www/index.html <html><body><h1>it works!</h1></body></html>

client the user is supposed to start the web browser links on the client client client:~# links an empty screen is presented to the user... to access the menu bar, press F10 using the cursor keys, select Go to URL and press Enter

client enter the following URL: http://10.0.0.1/ you should get a screen saying It works!

server (again) to monitor accesses to the web server you can use the following command (on the server): server server:~# tail -f /var/log/apache2/access.log 10.0.0.2 - - [19/Oct/2011:08:04:08 +0000] "GET / HTTP/1.1 200 56 "-" " "Links (2.2; Linux 2.6.26.5-netkit netkit-k2.8 i686; 80x39)"

server (again) to monitor errors on the web server you can use the following command (on the server): server server:~# tail -f /var/log/apache2/error.log [Wed Nov 14 15:57:58 2012] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations [Wed Nov 14 16:14:07 2012] [notice] caught SIGTERM, shutting down tip: very useful when debugging configurations

apache modules most of apache s functionalities are built-in retrieve the list using apache2 -l others can be added by enabling modules to enable a module: server server:~# a2enmod rewrite Enabling module rewrite. Run '/etc/init.d/apache2 restart' to activate new configuration! server:~# apache must be (re)started afterwards

apache modules available modules are located in /etc/apache2/mods-available enabled modules are located in /etc/apache2/mods-enabled a2enmod puts a symbolic link from the relevant file(s) in /etc/apache2/mods-available to /etc/apache2/mods-enabled a2dismod removes these symbolic links

some useful apache modules userdir enables per-user web sites rewrite implements URL rewriting proxy implements a proxy/gateway cgi/cgid supports execution of CGI scripts

per-user web sites enable module userdir server server:~# a2enmod userdir Enabling module userdir. Run '/etc/init.d/apache2 restart' to activate new configuration! server:~# by default, userdir looks for per-user sites in /home/username/public_html check file /etc/apache2/mods-enabled/userdir.conf

exercise: per-user web sites hands-on: create directory /home/guest/public_html on server put a simple index.html inside that directory check operation of the user web site by accessing http://10.0.0.1/~guest/ from client

per-directory configuration apache allows configuration changes on a per-directory basis creating a special file /some/path/.htaccess with apache configuration statements applies those statements to all files and subdirectories inside /some/path.htaccess files can be nested in a directory tree nested files override their parents

per-directory configuration sample configuration statements: restrict access from specific hosts Deny from example.org test.com 10.0.0 192.168.0.0/24 perform URL rewriting (transparent) redirect to other sites restrict access to a specific subdirectory enable client-side authentication change name of file containing the default page DirectoryIndex pippo.html enable/disable directory indexing Options -Indexes

exercise: per-directory configuration when a resource name is not specified in the URL, apache serves index.html from the requested path hands-on: edit file /home/guest/public_html/.htaccess and add the following directive: DirectoryIndex custom_file.html rename previously created file /home/guest/index.html to custom_file.html try accessing http://10.0.0.1/~guest/ from client rename custom_file.html back to index.html and try accessing the page again