I would recommend doing two things. First, create an ILE CL that calls the IBM db2www and put it in the library you have your CGI programs in. You'll need to put your INI file in your CGI library as well. The second thing is to remove the Directory container you defined. That makes every program in that library potentially callable from a browser which you probably don't want. Also Options +ExecCGI and ScriptAlias do the same thing. You don't need both but it doesn't hurt anything to have it defined they way you do.

Matt

________________________________________
From: web400-bounces@xxxxxxxxxxxx [web400-bounces@xxxxxxxxxxxx] On Behalf Of Nathan Andelin [nandelin@xxxxxxxxxxxx]
Sent: Saturday, April 05, 2008 4:44 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] File Attachment Utility

Nathan Andelin wrote:
NET.DATA Error: Value for PATH_INFO in URL is not set or is not valid.

For archive reference, I got past the error by a valid Apache
configuration for Net.Data. The Apache directives follow:

-----------------------------------------------
<Directory /QSYS.LIB/QHTTPSVR.LIB/>
Options +ExecCGI
Order Allow,Deny
Allow From all
</Directory>

ScriptAlias /db2www/ /QSYS.LIB/QHTTPSVR.LIB/DB2WWW.PGM/mydir/macro/
-----------------------------------------------

Note: the path of my macro directory is appended to the path to the
DB2WWW.PGM, which seemed to be the trick. The Net.Data Administration
guide has configuration directives for the classic HTTP server, but they
weren't much help for Apache, and the correct configuration was hard for
me to figure out. At least I can now move forward with a test of a
Net.Data file upload.

The installation instructions and support for the FUPLOAD utility from
www.easy400.net were excellent, and Giovanni Perotti deserves credit for
that.

I still want to check out the Net.Data approach for a couple reasons.
FUPLOAD limits uploaded files to 16 meg (in size). I hope Net.Data
doesn't have that limitation. I'll see. And there's nothing to add to
my deployment if I go with Net.Data. It's already on the box.

Nathan.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.