Apache HTTP Server
Apache HTTP Server
- Apache HTTP Server Project
- Versions: 1.3.x, 2.0.x, 2.2.x
- Our local installation for experimental use (version 2.0.x)
- Apache httpd Document for Apache 2.0
Experimental use
- Install ... /sw/www/bin/installwww.sh
- need to install every time (sorry)
- ~/www/conf/httpd.conf ... configuration file
- ~/www/bin/apachectl start
Standard use
- You must be a super user
- Download ... from this page
- Expand ... tar xvzf httpd-NN.tar.gz
- Configure ... cd httpd-NN; ./configure
- Make & Install ... make; make install
- Start ... /usr/local/apache2/bin/apachectl start
Configuration
- httpd.conf
- Many configurable parameters
- Quick Reference
Scopes (Context)
- Server-wide
- Virtual Host
- Directory / Location / Files
- .htaccess
URL Mapping
- Mapping URLs to the Filesystem
- DocumentRoot / Alias / ScriptAlias ...
CGI
- Common Gateway Interface
- suexec
SSI
- Server Side Includes
Quiz of the day
- ______ HTTP Server is the most popular web server on the Internet.
Homework
- Make a CGI program for apache on iMac.
- Include the program and access_log record in your report.
- Also try Python CGI module for user input string.
- example program