(debian-policy.info)Web servers and applications
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
/usr/lib/cgi-bin
or a subdirectory of that directory, and the script
/usr/lib/cgi-bin/.../cgi-bin-name
should be referred to as
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
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 and register the Web Application via the
doc-base package. If access to the web document root is
unavoidable then use
/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’.
automatically generated by info2www version 1.2.2.9