enable-cgi-file-type <connect_options> [--echo|-e] [--no-prompt|-Q] [--verbose|-v] [--uri-pattern|-t pattern] [--server-user|-r user-id] [--group|g group-id] [--directory|-d path] [--chroot|-H path] [--nice|-i value] [--vs|-s vs-name] --config|-c config-name
Use this command to enable the common gateway interface (CGI) support for certain files types registered in the mime-types file. If a URI pattern is specified, then this support is limited to files that match the given pattern and whose extension is a registered CGI mime-type.
For connect_options description, see help(1).
Specify this option to print this command on the standard output before executing. This option also prints the default value for all the non-mandatory options that you do not provide in the command.
If you specify this option, wadm will not prompt you for passwords while executing this command. Use this option if you have defined all passwords in a password file and specified the file using the --password-file connect_option.
Specify this option to display a verbose output.
Specify the URI wildcard pattern.
The name of the user to execute the CGI programs.
The name of the group to execute the CGI programs.
The additional root directory that you create to limit the server to specific directories.
The directory to change to after chroot but before the execution of the CGI program
The nice value is an increment that determines the priority of the CGI program's relative to the server. Typically, the server runs with a nice value of 0 and the nice increment would be between 0 (the CGI program runs at the same priority as the server) and 19 (the CGI program runs at a much lower priority than the server). You can increase the priority of the CGI program above that of the server by specifying a nice increment of -1.
Specify the name of the configuration for which the stored CGI properties are displayed.
Specify the name of the virtual server that resides within the same physical location as the Sun Java System Web Server.
wadm enable-cgi-file-type --user=admin --host=serverhost --password-file=../admin.passwd --port=8989 --ssl=true --no-prompt --rcfile=null --config=config1 --vs=vs --group=group1 --nice=0 --directory=/foo --server-user=admin_user --chroot=/foo --uri-pattern=/foo*
The following exit values are returned:
command executed successfully
error in executing the command