IBM AS/400E Network Router User Manual


 
place they originally appeared. The 0x6B would be converted to 0xF6C2, and
the resultant escape sequence would be 0x6CF6C2.
For the second approach, leave the data in its EBCDIC form and replace the
original escape sequence (three characters) with the single character. In this
case, replace 0x6CF2C3 with 0x6B.
Note: The CGI program should preserve an escape sequence that represents
the character %.
3. Call QtmhCvtDB to convert the input stream.
Note: 7-bit ASCII CCSID 367 is standard on browsers.
Symptom
Error 403: Forbidden - Path not valid for this server.
Whenever a Forbidden - Path not valid for this server occurs when running a
CGI program, the configuration directives have not been specified correctly.
Cause when a CGI program is requested: When a CGI program is requested, a
Pass directive appears before an Exec directive. For example:
Pass /qsys.lib/htmlcgi.lib/*
Exec /qsys.lib/htmlcgi.lib/*
In this example any programs in library htmlcgi will not run because the Pass
occurred before the Exec. Once a Pass condition is true, then the server does not go
further.
Solution when a CGI program is requested: The best way to avoid this problem
is to use one of the following:
1. Use Exec and Pass directives with mapping:
Pass /doc/* qsys.lib/html.lib/*
Exec /cgi-bin/* qsys.lib/html.lib/*
2. Put the CGI programs in a separate library:
Exec /qsys.lib/htmlcgi.lib/*
Pass /qsys.lib/htmldoc.lib/html.file/*
Cause when a document is requested: When a document is requested, an Exec
directive appears before a Pass directive. For example:
Exec /qsys.lib/html.lib/*
Pass /qsys.lib/html.lib/*
In this example any documents in library html will not be found because the Exec
occurred before the Pass.
Solution when a document is requested: Change the order of the directives to
correct the problem. For example:
Pass /qsys.lib/html.lib/*
Exec /qsys.lib/html.lib/*
Note: Since the value mapped /qsys.lib/html.lib/ is the same for both Pass and
Exec, the combination above would correct a problem with using an
incorrect directive. It also would leave a directive in the file that could never
be used.
142 Web Programming Guide V4R5