# Twisted.Web2 code examples

## Demo

- demo.py - A demo that shows various features of web2.

## Introduction

- simple.py - A very simple server.
- children.py - A slightly more complex example with children.

## Deployment

- standalone.tac - A standalone twisted server that serves static files.
- apache1.tac - A tac file for running a twisted.web2 server behind mod_proxy.
- apache1_twohosts.tac - The same except with two unique host names.
- apache2.tac - Also works behind mod_proxy but makes use of special HTTP headers sent by Reverse Proxies.
- scgi.tac - An SCGI server suitable for running behind apache's mod_scgi or twisted.web2's own twscgi

## Authentication

- httpauth.tac - Minimal HTTP Authentication example supporting Digest and Basic auth.
- credsetup.py - Cred support code for httpauth.tac

Index

Version: 8.1.0