Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.0
Download PDF
Copy Link

system replacemsg webproxy

The web proxy returns messages for user authentication failures and HTTP errors.

config system replacemsg webproxy
    edit {msg-type}
    # Replacement messages.
        set msg-type {string}   Message type. size[28]
        set buffer {string}   Message string. size[32768]
        set header {none | http | 8bit}   Header flag.
                none  No header type.
                http  HTTP
                8bit  8 bit.
        set format {none | text | html}   Format flag.
                none  No format type.
                text  Text format.
                html  HTML format.
    next
end

Additional information

The following section is for those options that require additional explanation.

buffer <message>

Type a new replacement message to replace the current replacement message. Maximum length 32,768 characters.

Replacement message tags

Replacement messages can include replacement message tags. When users receive the replacement message, the replacement message tag is replaced with content relevant to the message.

The http-err replacement message requires the following tags:

%%HTTP_ERR_CODE%%

The returned HTTP error code, “404” for example.

%%HTTP_ERR_DESC%%

The returned HTTP error message, “Not Found” for example.

%%PROTOCOL%%

The protocol that applies to the traffic, “http://” for example.

%%URL%%

The URL (not including protocol) that caused the error.

 

system replacemsg webproxy

The web proxy returns messages for user authentication failures and HTTP errors.

config system replacemsg webproxy
    edit {msg-type}
    # Replacement messages.
        set msg-type {string}   Message type. size[28]
        set buffer {string}   Message string. size[32768]
        set header {none | http | 8bit}   Header flag.
                none  No header type.
                http  HTTP
                8bit  8 bit.
        set format {none | text | html}   Format flag.
                none  No format type.
                text  Text format.
                html  HTML format.
    next
end

Additional information

The following section is for those options that require additional explanation.

buffer <message>

Type a new replacement message to replace the current replacement message. Maximum length 32,768 characters.

Replacement message tags

Replacement messages can include replacement message tags. When users receive the replacement message, the replacement message tag is replaced with content relevant to the message.

The http-err replacement message requires the following tags:

%%HTTP_ERR_CODE%%

The returned HTTP error code, “404” for example.

%%HTTP_ERR_DESC%%

The returned HTTP error message, “Not Found” for example.

%%PROTOCOL%%

The protocol that applies to the traffic, “http://” for example.

%%URL%%

The URL (not including protocol) that caused the error.