An HTTP context defines the context path that is used to access a server’s document root, HTML pages that display, and allowed operations.
Select the HTTP Contexts folder, right-click, and click Add.
In the wizard, enter a name for the HTTP context, and select Finish.
Expand the HTTP Contexts folder, and select the HTTP context to configure.
In the right pane, edit the following properties, then click Apply:
Context Path The URL context to access the document root. The configuration property name is contextPath, and the default value is “/”.
Resource Base The document root for HTML files. The configuration property name is resourceBase. The value of resourceBase for the default HTTP context is ${djc.home}/html.
Welcome Files The HTML file that displays when users access the document root. If you enter a comma-separated list of files, the first file in the list displays, unless it is not available, in which case the second file in the list displays, and so on. To display welcome files, select Redirect to Welcome Page. The configuration property name is welcomeFiles.
Handlers A comma-separated list of error handlers. The configuration property name is handlers. For the default HTTP context, the value is “Resource, NotFound.”
Allowed Methods Select the methods that are allowed to be performed in a server’s context; the default value is “GET.” The configuration property name is allowedMethods.
Directory Browsing Allowed Select to enable users to browse server directories. The configuration property name is dirAllowed.
Redirect to Welcome Page Select to display a welcome file when users access the document root. The configuration property name is redirectWelcome. If this property is not selected, the value of welcomeFiles is ignored.