Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Specifying Extensions for Files That the Redirect Server Accepts (SRC CLI)

    If you do not specify the types of files that the redirect server accepts, the redirect server accepts all file types. You can identify file types by specifying the file extensions for the files that the redirect server is to accept.

    Use the following configuration statements to configure the file extensions that the redirect server accepts:

    redirect-server { check-file-extensions; file-extensions file-extensions;}

    To specify the extensions for the types of files accepted by the redirect server:

    1. From configuration mode, access the configuration statement that configures the redirect server.
      user@host# edit redirect-server
    2. Specify whether the redirect server should accept only URLs that point to files that have standard file extensions—<empty>, .asp, .htm, .html, .jsp, .php, .shtm, .shtml, and .xml.
      [edit redirect-server]user@host# set check-file-extensions

      If you enable check-file-extensions and the file does not have a standard file extension, the redirect server returns an HTTP 403 Forbidden message.

    3. List file extensions to augment the standard file extensions you configured. Precede each extension with a period. Make sure that you specify the correct case for each character; entries are case-sensitive.
      [edit redirect-server]user@host# set file-extensions file-extensions

      Separate each file extensions by a comma. For example:

      set file-extensions .cgi,.aspx

    Modified: 2016-12-29