Fortinet FortiADC D-Series Handbook

Add to My manuals
470 Pages

advertisement

Fortinet FortiADC D-Series Handbook | Manualzz

Configuring compression rules

Figure  29: Rewriting the HTTP request port number

Chapter 4: Server Load Balancing

Configuring compression rules

To offload compression from your backend servers, you can configure FortiADC to perform HTTP compression on behalf of the server.

The following content types can be compressed: l l l l application/javascript application/soap+xml application/x-javascript application/xml

FortiADC D-Series Handbook

Fortinet Technologies, Inc.

91

Chapter 4: Server Load Balancing Configuring compression rules l l l l l l text/css text/html text/javascript text/plain text/xml custom

Not all HTTP responses should be compressed. Compression offers the greatest performance improvements when applied to URLs whose media types include repetitive text such as tagged HTML and JavaScript. Files that already contain efficient compression such as GIF images usually should not be compressed, as the CPU usage and time spent compressing them will result in an increased delay rather than network throughput improvement.

Plain text files where no words are repeated, such as configurations with unique URLs or IPs, also may not be appropriate for compression.

Before you begin: l l

You must have a good understanding of HTTP compression and knowledge of the content types served from the backend real servers.

You must have Read-Write permission for Load Balance settings.

Compression is not enabled by default. After you have configured a compression rule, you can select it in the profile configuration. To enable compression, select the profile when you configure the virtual server.

To configure compression:

1. Click Server Load Balance > Application Resources.

2. Click the Compression tab.

3. Click Add to display the configuration editor.

4. Complete the configuration as described in

Table 12

.

5. Save the configuration.

 Table 12: Compression configuration

Settings Guidelines

Name

URI List Type

Configuration name. Valid characters are A-Z, a-z, 0-9, _, and -. No spaces. You reference this name in the profile configuration.

Note: After you initially save the configuration, you cannot edit the name.

Specify whether to include or exclude items in the list from compression.

URI List Click Add and specify URIs to build the list. You can use regular expressions.

92 FortiADC D-Series Handbook

Fortinet Technologies, Inc.

advertisement

advertisement

Table of contents