上下文
- To make a file system outside of the document root accessible.
- To block access to certain resources.
- To setup user-level authentication for certain resources.
- To create mount points for external applications.
- To redirect requests to another location.
目录
上下文属性
上下文类型
描述
The type of context created determines it's usage.:
Static context can be used to map a URI to a directory either outside document root or within it.
LiteSpeed SAPI context can be used to associate a URI with an LSAPI application.
Proxy context enables this virtual host to serve as a transparent reverse proxy server to an external web server or application server.
Fast CGI context is a mount point of Fast CGI application.
SCGI context can be used to associate a URI with an SCGI application.
CGI context can be used to specify a directory only contains CGI scripts.
Redirect context can set up an internal or external redirect URI.
Load Balancer context can be used to assign a different cluster for that context.
Java Web App context is used to automatically import a predefined Java Application in an AJPv13 compliant Java servlet engine.
Servlet context is used to import a specific servlet under a web application.
App Server context is used for Rack/Rails, WSGI, or Node.js applications.
Rack/Rails context is specifically used for Rack/Rails applications. It is recommended to configure Rack/Rails applications as an App Server context instead.
uWSGI context can be used to associate a URI with a uWSGI application.