Importing and exporting files
To import a file by using the command line interface
-
import appfw htmlerrorpage <src> <name> -
<save> ns config
Example
import htmlerrorpage error.html HTMLError
save ns config
To import a file by using the GUI
-
Navigate to Security > NetScaler Web App Firewall > Imports.
-
Navigate to Application Firewall > Imports.
-
In the Application Firewall Imports pane, select the tab for the type of file you want to import, and then click Add.The tabs are HTML Error Page, XML Error Page, XML Schema or WSDL. The upload process is identical on all four tabs from the user point of view.
-
Fill in the dialog fields.
-
Name—A name for the imported object.
-
Import From—Choose the location of the HTML file, XML file, XML schema or WSDL that you want to import in the drop-down list:
-
URL: A web URL on a website accessible to the appliance.
-
File: A file on a local or networked hard disk or other storage device.
-
Text: Type or paste the text of the custom response directly into a text field in the GUI.
The third text box changes to the appropriate value. The three possible values are provided below. -
-
URL—Type the URL into the text box.
-
File—Type the path and filename to the HTML file directly, or click Browse and browse to the HTML file.
-
Text—The third field is removed, leaving a blank space.
-
-
Click Continue. The File Contents dialog is displayed. If you chose URL or File, the File Contents text box contains the HTML file that you specified. If you chose Text, the File Contents text box is empty.
-
If you chose Text, type or copy and paste the custom response HTML that you want to import.
-
Click Done.
-
To delete an object, select the object, and then click Delete.
To export a file by using the GUI
-
Navigate to Security > Web App Firewall > Imports.
-
In the Web App Firewall Imports pane, select the tab for the type of file you want to export.The export process is identical on all four tabs from the user point of view.
-
Select the file that you want to export.
-
Expand the Action drop-down list, and select Export.
-
In the dialog box, choose Save File and click OK.
-
In the Browse dialog box, navigate to the local file system and directory where you want to save the exported file, and click Save.
To edit an HTML or XML Error Object in the GUI
-
Navigate to Security > NetScaler Web App Firewall > Imports, and then select the tab for the type of file that you want to modify.
-
Navigate to Application Firewall > Imports, and then select the tab for the type of file that you want to modify.
-
Select the file that you want to modify, and then click Edit.The text of the HTML or XML error object is displayed in a browser text area. You can modify the text by using the standard browser-based editing tools and methods for your browser.Note: The edit window is designed to allow you to make minor changes to your HTML or XML error object. To make extensive changes, you may prefer to export the error object to your local computer and use standard HTML or XML web page editing tools.
-
Click OK, and then click Close.