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.
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
(Deleted)
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/
ashttp://localhost/images/package/filename
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
/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.
Providing httpd and/or httpd-cgi
All web servers should provide the virtual package
httpd
. If a web server has CGI support it should providehttpd-cgi
additionally.All web applications which do not contain CGI scripts should depend on
httpd
, all those web applications whichdo
contain CGI scripts, should depend onhttpd-cgi
.