Sun Java System Web Server 6.1 SP12 Administrator's Guide

Using the Resource Picker

Most of the Server Manager and Class Manager pages configure the entire Sun Java System Web Server or an entire class. However, some pages can configure either the entire server (or class) or files and directories that the server (or class) maintains. These pages have the Resource Picker at the top of the page.

Figure 1–1 The Resource Picker

The Resource Picker

The Resource Picker appears on a number of pages, including the Server Manager’s Log Preferences page. Most screens are accessible from the Class Manager’s Content Management tab.

To use the Resource Picker, choose a resource from the drop-down list for configuration. Click Browse to browse your primary document directly and click Wildcard to configure files with a specific extension.

Wildcards Used in the Resource Picker

In many parts of the server configuration, you specify wildcard patterns to represent one or more items to configure. Please note that the wildcards for access control may be different from those discussed in this section.

Wildcard patterns use special characters. If you want to use one of these characters without the special meaning, precede it with a backslash (\) character.

Wildcard patterns are applied on the directory path and not just on the filename. A wildcard pattern is therefore applicable to files in a particular directory only. For example, to add files to a directory /tmp, you could specify the wildcard pattern tmp/*.html. To add index.html from all subdirectories, the pattern would be */index.html.

Table 1–1 Resource Picker wildcard patterns

Pattern  

Use  

*

Match zero or more characters. 

?

Match exactly one occurrence of any character. 

|

An or expression. The substrings used with this operator can contain other special characters such as * or $. The substrings must be enclosed in parentheses, for example, (a|b|c), but the parentheses cannot be nested.

$

Match the end of the string. This is useful in or expressions. 

[abc]

Match one occurrence of the characters a, b, or c. Within these expressions, the only character that needs to be treated as a special character is ]; all others are not special.

[a-z]

Match one occurrence of a character between a and z. 

[^az]

Match any character except a or z. 

*~

This expression, followed by another expression, removes any pattern matching the second expression. 

Table 1–2 Resource Picker wildcard examples

Pattern  

Use  

*.sun.com 

Matches any string ending with the characters .sun.com.

(products|docs).sun.com 

Matches either products.sun.com or docs.sun.com.

198.93.9[23].???

Matches a numeric string starting with either 198.93.92 or 198.93.93 and ending with any 3 characters. 

*.*

Matches any string with a period in it. 

*~sun-*

Matches any string except those starting with sun-. 

*.sun.com~docs.sun.com

Matches any host from domain sun.com except for a single host docs.sun.com.

*.sun.com~(products|docs|software).sun.com

Matches any host from domain sun.com except for hosts products.sun.com, docs.sun.com, and software.sun.com.

*.com~*.sun.com

Matches any host from domain com except for hosts from subdomain sun.com.