Apache HTTP Server

Apache HTTP Server

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

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