Administrator's Configuration File Reference

Searching Sun Java System Web Server Documentation


                               Top Contributors


   

UserEditsComments
s_aby 6430
Sudha.Bhat 540

Sun Java System Web Server 7.0 Update 5 Administrator's Configuration File Reference

The Sun Java System Web Server Administrator's Configuration File Reference discusses the purpose and use of the configuration files for Sun Java System Web Server (Web Server), including server.xml, magnus.conf, obj.conf, and mime.types. This document provides a comprehensive list of the elements and directives in these configuration files.

Overview of Configuration Files and Directories

The configuration and behavior of Sun Java System Web Server 7.0 (Web Server) is determined by a set of configuration files. You can use the Admin Console and the command-line interface (CLI) to change the configuration file settings. You can also manually edit these files.

This chapter has the following sections:

Syntax and Use of server.xml

The server.xml file contains most of the server configuration. This chapter describes the basic syntax of server.xml and gives a high-level view of the elements that configure server features. It contains the following sections:

Elements in server.xml

This chapter describes the elements in the server.xml file.

             A
                   C
                        D
                E
       F & H
        I & J
  • access-log
  • access-log-buffer
  • acl-cache
  • acl-db
  • acl-file
  • audit-accesses
  • auth
  • auth-db
  • auth-realm
  • cgi
  • cluster
  • connection-creation-property
  • connection-lease-property
  • convert
  • custom-resource
  • dav
  • dav-collection
  • default-auth-db-name
  • default-auth-realm-name
  • default-soap-auth-provider-name
  • display-name
  • dns
  • dns-cache
  • env-variable
  • event
  • external-jndi-resource
  • file-cache
  • http
  • http-listener
  • include
  • index
  • instance
  • jdbc-resource
  • jvm


          K & L
           M
         P
        Q
             R
               S
         T
       V & W
  • keep-alive
  • lifecycle-module
  • localization
  • lock-db
  • log
  • mail-resource
  • mime-file
  • pkcs11
  • pkcs11 bypass
  • profiler
  • property
  • property-db
  • qos
  • qos-limits
  • request-policy
  • response-policy
  • search-app
  • search-collection
  • server
  • servlet-container
  • session-replication
  • single-sign-on
  • snmp
  • soap-auth-provider
  • ssl
  • ssl2-ciphers
  • ssl3-tls-ciphers
  • ssl-session-cache
  • stats
  • thread-pool
  • time
  • token
  • variable
  • virtual-server
  • web-app

                                                                                                                                                                                                                                      [Back to top]

Syntax and Use of magnus.conf

The magnus.conf file contains NSAPI plug-in initialization directives and settings that control the way NSAPI plug-ins are run. The magnus.conf file is located in the instance_dir/config directory.

Note -
When you edit the magnus.conf file, you must restart the server for the changes to take effect.

This chapter discusses the following topics:

Predefined SAFs in magnus.conf

This chapter lists the Init Server Application Functions (SAF) that you can specify in magnus.conf. Init SAFs load and initialize server modules and NSAPI plug-ins.

Note -
When you edit the magnus.conf file, you must restart the server for the changes to take effect.

The following topics are described in detail in this chapter:

Syntax and Use of obj.conf

The obj.conf file contains directives for HTTP request processing. The obj.conf file is located in the instance_dir/config directory.

During Web Server installation an obj.conf file is created. If you configure multiple virtual servers using the Admin Console or CLI, separate obj.conf files may be created for each virtual server. These files are named virtual-server-name-obj.conf, where virtual-server-name is the name of the virtual server. The newly created virtual-server-name-obj.conf becomes functional. This can be verified from the server.xml, where the name of the functional obj.conf is updated.

When changes made through Admin Console or CLI does not impact the obj.conf, for example changing log-level, no new virtual server specific obj.conf files are created and the default obj.conf will be used for all the virtual servers of the configuration.

However, when changes made through Admin interface impacts the obj.conf, for example Java disabling, a new obj.conf file is created for each virtual server. The server.xml file is immediately updated to reflect the appropriate obj.conf file used for each virtual server. During Java disabling if there are two virtual servers, vs1 and vs2, two new virtual server specific obj.conf files are created, vs1-obj.conf and vs2-obj.conf. These new files are updated in the server.xml with the exact object-file used by these two virtual servers.

<object-file>vs1-obj.conf</object-file>

<object-file>vs2-obj.conf</object-file>

From this point onwards, the obj.conf file is neither updated, used, nor deleted. However, if the user wants to modify the obj.conf file for either of the two virtual servers, they should edit the respective file only and not the original obj.conf file.

Note -
When another new virtual server vs3 is added, a new vs3-obj.conf should be created, updated in the server.xml and become functional. However, this fails to happen and the existing obj.conf is shared by the vs3. This behavior is a known issue and is recorded as a bug CR 6754145.

When this document refers to obj.conf, it refers either to all obj.conf files or to the obj.conf file for the virtual server being discussed.

This chapter discusses the obj.conf directives; the use of Object, Client, If, ElseIf, and Else tags; the flow of control in obj.conf; and the syntax rules for editing obj.conf.

This chapter has the following sections:

                                                                                                                                                                                                                                      [Back to top]

Predefined SAFs and Filters in obj.conf

This chapter describes the predefined Server Application Functions (SAFs) and filters that are used in the obj.conf file. For details about the syntax and use of the obj.conf file, see Syntax and Use of obj.conf.

Each SAF has its own parameters which are passed to it by an obj.conf directive. SAFs may examine, modify, or create server variables. Each SAF returns a result code that indicates whether it succeeded, did nothing, or failed.

The SAFs in this chapter are grouped by the type of directive that calls them. For an alphabetical list of predefined SAFs and server configuration elements, see Appendix G: Alphabetical List of Server Configuration Elements and Predefined SAFs

This chapter contains the following sections:

MIME Types

The MIME types file in the config directory contains mappings between the Multipurpose Internet Mail Extensions (MIME) types and file extensions. For example, the MIME types file maps the extensions .html and .htm to the type text/html:

type=text/html exts=htm,html

When the Web Server receives a request from a client, it uses the MIME type mappings to determine the kind of resource that is requested.

MIME types are defined by three attributes: language (lang), encoding (enc), and content type (type). At least one of these attributes must be present for each type. The most commonly used attribute is type. The server frequently considers the type when deciding how to generate the response to the client. The enc and lang attributes are rarely used. The default MIME types file is mime.types.

This chapter discusses the following sections:

ACL Files

This chapter describes the access control list (ACL) files and their syntax. ACL files are text files containing lists that define who can access resources stored on Web Server. By default, Web Server uses one ACL file that contains the access list. You can, however, create multiple ACL files and reference them in the obj.conf file.

After installation, a default access control list is written to the default.acl file in the instance_dir/config directory. You can change access control rules by editing this file or by creating additional ACL files.

When you make changes to ACL files, you must restart or reconfigure the server for the changes to take effect. For information on reconfiguring the server without restarting, see Dynamic Reconfiguration.

This chapter contains the following sections:

                                                                                                                                                                                                                                      [Back to top]

Other Server Configuration Files

This chapter summarizes the configuration files that are not discussed in other chapters. Configuration files that should never be modified are not listed in this chapter. The following configuration files are described in detail:

Appendix A: Using Variables, Expressions, and String Interpolation

This appendix describes variables, expressions, and string interpolation in the following sections:

Appendix B: Using Wildcard Patterns

This appendix describes the wildcard patterns used by the Sun Java System Web Server. Wildcards use special characters and are applicable in the obj.conf file, built-in SAFs, and NSAPI functions. To use a wildcard character without any special meaning, precede it with a backslash ( \ ) character.

This appendix has the following sections

Appendix C: Using the Custom Log File Format

This appendix contains information about the log format used by Web Server. Use these format options to customize the format of your log files. You can enter them through the Admin Console, or edit the format subelement of the access-log element in server.xml. For more information, see access-log.

You can use variables and expressions in log formats with the syntax $variable and $(expression). For more information, see Variables, and Expressions.

This appendix contains the following section:

                                                                                                                                                                                                                                      [Back to top]

Appendix D: Using Time Formats

This appendix describes the format strings used for dates and times in the server log. These formats are used by the NSAPI function util_strftime, by some built-in SAFs such as append-trailer, and by server-parsed HTML (parse-html). For more information about server-parsed HTML, see Sun Java System Web Server NSAPI Developer's Guide.

The formats are similar to those used by the strftime C library routine, but not identical. For more information on the NSAPI function, util_strftime, see Sun Java System Web Server NSAPI Developer's Guide.

This appendix contains the following section:

Appendix E: Configuration Changes Between Sun ONE Web Server 6.1 and Sun Java System Web Server 7.0

This appendix summarizes the major configuration file changes between the 6.1 and the 7.0 version of Sun Java System Web Server. The following sections are discussed:

Appendix F: Web Server Interfaces

This appendix describes the interfaces in Web Server and their stability level. Sun products classify public interfaces according to their expected stability level so that you can make informed decisions when creating dependencies on these interfaces. For example, you can confidently create programmatic dependencies (for example, shell scripts) which rely on stable interfaces, knowing these will not change often (if ever).

Note that the word interface is used in a very broad sense. Any implementation detail on which your code might rely on can be an interface. This includes APIs but also includes aspects such as CLI option names, file system paths, file names and so forth.

This appendix contains the following section:

Appendix G: Alphabetical List of Server Configuration Elements and Predefined SAFs

This appendix provides an alphabetical list of server configuration elements, including server.xml elements, and predefined SAFs in magnus.conf and obj.conf files.

                                                                                                                                                                                                                                      [Back to top]

Labels

sunjava sunjava Delete
webserver70 webserver70 Delete
webtier webtier Delete
system system Delete
application application Delete
webserver webserver Delete
web web Delete
java java Delete
server server Delete
sun sun Delete
configurationfile configurationfile Delete
configuration configuration Delete
file file Delete
guide guide Delete
administrator's administrator's Delete
+configguide +configguide Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact