11.5. Web servers and applications

This section describes the locations and URLs that should be used by all web servers and web applications in the Debian system.

  1. Cgi-bin executable files are installed in the directory

    1. /usr/lib/cgi-bin

    or a subdirectory of that directory, and the script

    1. /usr/lib/cgi-bin/.../cgi-bin-name

    should be referred to as

    1. http://localhost/cgi-bin/.../cgi-bin-name
  2. (Deleted)

  3. Access to images

    It is recommended that images for a package be stored in /usr/share/images/package and may be referred to through an alias /images/ as

    1. http://localhost/images/package/filename
  4. Web Document Root

    Web Applications should try to avoid storing files in the Web Document Root. Instead they should use the /usr/share/doc/package directory for documents. If access to the web document root is unavoidable then use

    1. /var/www/html

    as the Document Root. This might be just a symbolic link to the location where the system administrator has put the real document root.

  5. Providing httpd and/or httpd-cgi

    All web servers should provide the virtual package httpd. If a web server has CGI support it should provide httpd-cgi additionally.

    All web applications which do not contain CGI scripts should depend on httpd, all those web applications which do contain CGI scripts, should depend on httpd-cgi.