× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm going to assume that your jonslib.lib is a typo, but I expect your actual problem is that you're trying a ScriptAlias vs a ScriptAliasMatch with a bunch of stuff trailing after your first parameter.

Try

ScriptAliasMatch ^/restsrv1(.*)$ /qsys.lib/jons.lib/restsrv1.pgm


Cheers,
Ryan

On 23/01/2012 10:15 AM, Jon Paris wrote:
I cannot for the life of me get a simple REST service to work no matter what I try ...

The URL I want to use is http://xyz.com/restsrv1/request1/request2/etc.

The config entry I have is:

ScriptAlias /restsrv1 /qsys.lib/jons.lib/restsrv1.pgm
<Directory /qsys.lib/jonslib.lib>
Order Allow,Deny
Allow From All
</Directory>

> From the first attempt I don't appear to be getting a match because it is trying to locate it as a file in my default directory - the log shows that is attempting to locate file /www/jon/htdocs/restsrv1

In the config I also have a generic CGI config entry:

ScriptAliasMatch ^/CGI/(.*) /QSYS.LIB/PARTNER400.LIB/$1.PGM
<Directory /QSYS.LIB/PARTNER400.LIB>
order allow,deny
allow from all
SetHandler cgi-script
Options +ExecCGI
</Directory>

Which will run most anything in the named library - but not this program - get a 500 error and the program itself never gets called. Is this related to the additional entries in the URL? I had read else where that the default was the back-end of the URL was available for CGI programs but ...


I know it is something daft - but brain is not functioning today.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com






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.