Previous Page: Using Cache-Control Directives  Next Page: Using a Directory Service to Control User Access to Network Resources

Working with Configuration Styles

Configuration styles are an easy way to apply a set of options to specific files or directories that your server maintains. For example, you can create a configuration style that sets up access logging. When you apply that configuration style to the files and directories that you want to log, you don't have to individually configure access logging for all the files and directories.


Creating a Configuration Style

  1. Click Enterprise Web Server servername > Styles > New Style.

  2. In the Style Name field, enter the name you want to give the configuration style.

  3. Click OK.

  4. Select a configuration style to edit from the Style drop-down list and then click Edit This Style.

  5. From the list of links available, click the category you want to configure for your style. You can configure the following information:

    • LCGI File Type: Lets you activate LCGI as a file type. For more information about working with Web applications, see Extending Your Server with Programs.
    • Character Set: Lets you change the character set for a resource. For more information, see Assigning a Character Set.
    • Default Query Handler: Lets you set a default query handler for a server resource.
    • Document Footer: Lets you add a document footer to a server resource. For more information, see Specifying a Document Footer.
    • Error Responses: Lets you customize the error responses that clients see when they encounter an error from your server. For more information, see Customizing Error Responses.
    • Log preferences: Lets you set preferences for access logs. For more information, see Working with Log Files.
    • Restrict Access: Lets you restrict access to the entire server or parts of it. For more information, see Restricting Access.
    • Server Parsed HTML: Lets you specify whether the server parses files before they are sent to the client. For more information, see Customizing Parsed HTML.

  6. Fill out the form that appears and then click OK.

  7. Repeat Step 4 and Step 5 to make any other changes to the configuration style.

  8. Click OK on the form you modified.

  9. Click OK on the Edit a Style form.

  10. Click Save and Apply.


Editing a Configuration Style

  1. Click Enterprise Web Server servername > Configuration Styles > Edit Style.

  2. Select a configuration style to edit from the Style drop-down list.

  3. Click Edit This Style.

  4. From the list of links available, click the category you want to configure for your style.

    For more information on these categories, see Creating a Configuration Style.

  5. Fill out the form that appears > click OK.

  6. Repeat Steps 4 and 5 to make any other changes to the configuration style.

  7. Click OK on the form you modified.

  8. Click OK on the Edit a Style form.

  9. Click Save and Apply.


Applying a Configuration Style

Once you've created a configuration style, you can apply it to files or directories in your server. You can specify either individual files and directories or wildcard patterns, such as *.GIF.

  1. Click Enterprise Web Server servername > Configuration Styles > Assign Style.

  2. In the URL Prefix Wildcard field, enter the prefix of the URL that you are applying this configuration style to.

    If you select a directory inside the document root, only enter the path after the document root. If you enter /* after the directory, you apply the configuration style to all of the directory's contents.

  3. Select the configuration style you want to apply from the Style drop-down list.

  4. Click OK > Save and Apply.


Removing a Configuration Style

Before removing a configuration style, apply the None configuration style to any files or directories that had the configuration style applied to them. If you do not apply None before removing the configuration style, you must manually edit your OBJ.CONF file, search for the configuration style in the file, and replace it with None. If you don't do this search and replace, anyone who accesses the files or directories that the deleted configuration style was applied to will get a server configuration error message.

  1. Click Enterprise Web Server servername > Configuration Styles > Remove Style.

  2. Select the configuration style you want to remove from the Remove drop-down list.

  3. Click OK > Save and Apply.


Listing Configuration Style Assignments

After you have created configuration styles and applied them to files or directories, you can get a list of the configuration styles and where you applied them.

  1. Click Enterprise Web Server servername > Configuration Styles > List Assignments.

  2. To edit a configuration style assignment, click Edit Style Assignment next to the configuration style name.



  Previous Page: Using Cache-Control Directives  Next Page: Using a Directory Service to Control User Access to Network Resources