Hey guys,
I got this working in my test library and have been playing with it for a while.
Now I'm trying to move it to a QA environment. Its no longer working.
I believe I know what the issue is, but I'm not sure how to fix it.
When I had it in my test library, both the program(REDIR) and the file(REDIR) were both in the same library.
When I move to QA, the program is in lib(QALIB) and the file is in lib(QALIBD) I then put DSPY command in various places of REDIR program and I get a -204 error code when trying to retrieve a record from the file.
SQL0204 says it can't find the file.
So I tried changing my configuration file like this
26 ScriptAlias /redir /QSYS.LIB/QALIB.LIB/REDIR.PGM
27 <Directory /QSYS.LIB/QALIB.LIB>
28 order deny,allow
29 </Directory>
30 <Directory /QSYS.LIB/QALIBD.LIB>
31 order deny,allow
32 </Directory>
Stopped and restarted the server, but I get the same error.
Since I really know nothing about working with the configuration files, I suspect this is not the correct way to allow access to a second library.
Can someone explain the correct way?
Thanks
Mike
-----Original Message-----
From: Smith, Mike
Sent: Thursday, January 10, 2013 3:35 PM
To: 'Midrange Systems Technical Discussion'
Subject: RE: http configuration confusion.
Well, I think you might be on to something mike.
I tried simply calling the command using
http://www.google.com it gave me an immediate error
CPD0050 Expression operator not allowed for parameter URL
However, I went into the file and changed one of the records to
http://www.google.com and then I typed
http://rgt:1080/redir?33 It immediately sent me to google.
Well, I just tried another test and put quotes around the url when running it from the command and presto I went to google
Fantastic.
Now to see if I can put this to work for our designed purposes.
Everyone, thanks for the help.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Thursday, January 10, 2013 2:45 PM
To: Midrange Systems Technical Discussion
Subject: Re: http configuration confusion.
I think the location needs to the full location otherwise it is trying to redirect to a page on the current server.
Add this for the location:
http://www.google.com
________________________________
From: "Smith, Mike" <Mike_Smith@xxxxxxxxxxxxxxxx>
To: 'Midrange Systems Technical Discussion' <midrange-l@xxxxxxxxxxxx>
Sent: Thursday, January 10, 2013 12:56 PM
Subject: RE: http configuration confusion.
So if I get to here:
data = 'Status: 302' + CRLF
+ 'Location: ' + %xlate(' ':'+':%trimr(location)) + CRLF
+ CRLF;
QtmhWrStout(data: %len(data): 0);
And I can see that location is = 'www.google.com'
Does this mean that there is still something wrong in the http configuration?
My log shows this
ZSRV_MSG0018: File /www/redirect/htdocs/WWW.GOOGLE.COM does not exist
ZSRV_MSG0016: URI in request GET /WWW.GOOGLE.COM HTTP/1.1 is not valid
NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.