× 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'd also suggest against your ALLOW from all statement. Setting up an
apache config to run CGI applications isn't that difficult to keep it safe.

Here's an article with an example of one:
http://www.fieldexit.com/forum/display?threadid=15

Notice how it's deny, allow. That shuts down everything. Then I
specifically say where it can have access.

As far as the ScriptAliasMatch, Craig's suggestion is how do them as well.

Brad
www.bvstools.com

On Tue, Jun 30, 2015 at 2:27 PM, Craig Pelkie <craig@xxxxxxxxxx> wrote:

Try

ScriptAliasMatch ^/rest/(.*) /qsys.lib/EUR_2VAROB.lib/$1.pgm

Craig Pelkie

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
gio.cot
Sent: Tuesday, June 30, 2015 9:14 AM
To: midrange-l@xxxxxxxxxxxx
Subject: My First REST Web Service

Hi
following the Scott Klement's document (
<
http://www.scottklement.com/presentations/Providing%20RPG%20Web%20Services%
20on%20IBM%20i.pdf> http://www.scottklement.com/presenta...%20IBM%20i.pdf)
i'm try to write my first REST Web service

this is the configuration HTTP Server file :
1 LoadModule mod_ibm_lwi /QSYS.LIB/QHTTPSVR.LIB/QLWIIHSMOD.SRVPGM
2 HotBackup Off
3 KeepAlive Off
4 DocumentRoot /www/WSERVICE/htdocs
5 AddLanguage en .en
6 LogMaint logs/error_log 7 0
7 LogFormat "%h %T %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
8 Listen *:10066
9 AccessFileName .htaccess
10 DirectoryIndex index.html
11
12 order allow,deny
13 allow from all
14
15 LwiPluginConfig /www/WSERVICE/conf/lwi-plugin-cfg.xml
16
17 LwiAssignUserID myuser
18 LwiAutostartOption StartEnd
19 LwiStartJobQueue QHTTPSVR/QZHBHTTP HTTPWWW
20
21
22 # My RESTFULL webservices
23 ScriptAliasMatch /rest/([a-z0-9]*)/(.*) /qsys.lib/EUR_2VAROB.lib/$1.pgm
24
25 Order Allow,Deny
26 Allow From All

my pgm TESTREST is located in EUR_2VAROB library

from browser i run <http://myiseries:10066/rest/testrest>
http://myiseries:10066/rest/testrest

i receive HTTP 404 impossible to find Web page

how can i find the error

Thanks

--
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.



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.