Scott,
 
Thank you I now do understand the alias is adding the .pgm on the end of url for me
and that is fine.....
 
but when I change the URL to
http://10.0.1.1/cgi-bin/cgi
 
I still get an authorization error.
 
===>

Forbidden

Forbidden - by rule.
You do not have permission to access /cgi-bin/cgi on this server.
<===
 
Is it possible I dont have CGI run rights or is it something to do with Iseries security.
From my original post I have granted *PUBLIC authority to the library (CGI_BIN) and all objects.
 
 
Thanks again for the help
Jimmy
 
 
 

Scott Klement <[EMAIL PROTECTED]> wrote:

Based on the config that you posted, you should be trying:

http://10.0.1.1/cgi-bin/cgi

This is because the config that you posted has the following line:

>  3    ScriptAliasMatch /cgi-bin/(.*) /qsys.lib/cgi_bin.lib/$1.pgm

What this line does is it takes whatever follows the /cgi-bin/ in the URL,
and adds /qsys.lib/cgi_bin.lib/ before it, and .pgm after it.

So the URL that you originally posted was:http://10.0.1.1/cgi-bin/cgi.pgm
and that means that it'll try to run an object called
/qsys.lib/cgi_bin.lib/cgi.pgm.pgm

Can you see the problem?  There are two .PGM's at the end of the pathname!
Obviously, that won't work.  When you call it with

http://10.0.1.1/cgi-bin/cgi

It'll be looking for /qsys.lib/cgi_bin.lib/cgi.pgm, which is what I think
you want to do.  If you'd prefer to specify the .PGM manually, change your
config to read:

   ScriptAlias /cgi-bin/ /qsys.lib/cgi_bin.lib/

That'll run faster, and it won't add .PGM for you, so your original URL
will work correctly.



YAHOO! GROUPS LINKS






Yahoo! FareChase - Search multiple travel sites in one click.


Yahoo! FareChase - Search multiple travel sites in one click.

SPONSORED LINKS
How to format a computer hard drive Cobol programmer Iseries 400
How to format a computer


YAHOO! GROUPS LINKS




Reply via email to