My Apache config file is as follows
1 # Configuration originally created by Create HTTP Server wizard on Wed Nov 16 16:05:15 CST 2005
2 LoadModule jk_module /QSYS.LIB/QHTTPSVR.LIB/QZTCJK.SRVPGM
3 ScriptAliasMatch /cgi-bin/(.*) /qsys.lib/cgi_bin.lib/$1.pgm
4 Listen *:80
5 DocumentRoot /www/iseriesweb/htdocs
6 Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch +Includes -MultiViews
7 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
8 LogFormat "%{Cookie}n \"%r\" %t" cookie
9 LogFormat "%{User-agent}i" agent
10 LogFormat "%{Referer}i -> %U" referer
11 LogFormat "%h %l %u %t \"%r\" %>s %b" common
12 CustomLog logs/access_log combined
13 LogMaint logs/access_log 7 0
14 LogMaint logs/error_log 7 0
15 ServerSignature On
16 HotBackup Off
17 SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
18 SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
19 SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
20 SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
21 SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
22 SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
23 CGIMultiThreaded On
24 JkWorkersFile /www/iseriesweb/conf/workers.properties
25 JkLogFile /www/iseriesweb/logs/jk.log
26 JkLogLevel Error
27 JkMount /example/* inprocess
28 JkMount /servlet/* inprocess
29 AddOutputFilter INCLUDES .shtml
30 <Directory />
31 Order Deny,Allow
32 Deny From all
33 </Directory>
34 <Directory /www/iseriesweb/htdocs>
35 Order Allow,Deny
36 Allow From all
37 </Directory>
2 LoadModule jk_module /QSYS.LIB/QHTTPSVR.LIB/QZTCJK.SRVPGM
3 ScriptAliasMatch /cgi-bin/(.*) /qsys.lib/cgi_bin.lib/$1.pgm
4 Listen *:80
5 DocumentRoot /www/iseriesweb/htdocs
6 Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch +Includes -MultiViews
7 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
8 LogFormat "%{Cookie}n \"%r\" %t" cookie
9 LogFormat "%{User-agent}i" agent
10 LogFormat "%{Referer}i -> %U" referer
11 LogFormat "%h %l %u %t \"%r\" %>s %b" common
12 CustomLog logs/access_log combined
13 LogMaint logs/access_log 7 0
14 LogMaint logs/error_log 7 0
15 ServerSignature On
16 HotBackup Off
17 SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
18 SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
19 SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
20 SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
21 SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
22 SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
23 CGIMultiThreaded On
24 JkWorkersFile /www/iseriesweb/conf/workers.properties
25 JkLogFile /www/iseriesweb/logs/jk.log
26 JkLogLevel Error
27 JkMount /example/* inprocess
28 JkMount /servlet/* inprocess
29 AddOutputFilter INCLUDES .shtml
30 <Directory />
31 Order Deny,Allow
32 Deny From all
33 </Directory>
34 <Directory /www/iseriesweb/htdocs>
35 Order Allow,Deny
36 Allow From all
37 </Directory>
I have a program in library CGI_BIN I found somewhere (Hello)
****************************************************************
* 1. CRTRPGMOD MODULE(lib/HELLO) + *
* SRCFILE(lib/QRPGLESRC) TGTRLS(V3R7M0) *
* *
* 2. CRTPGM PGM(lib/HELLO) BNDSRVPGM(QTCP/QTMHCGI) *
* *
****************************************************************
D WPError DS
D EBytesP 1 4B 0 INZ(40)
D EBytesA 5 8B 0
D EMsgID 9 15
D EReserverd 16 16
D EData 17 56
*
D HTTPHeader C CONST('Content-type: text/html')
D NewLine C CONST(X'15')
*
D WrtDta S 1024
D WrtDtaLen S 9B 0
****************************************************************
C EXSR $Main
*
C eval *INLR = *On
****************************************************************
* Main Subroutine
****************************************************************
C $Main BEGSR
*
C eval WrtDta = '<html><head>' +
C '<title>Hello World</title>' +
C '</head><body>' +
C 'Hello World!' +
C '</body></html>' +
C NewLine
C EXSR $WrStout
*
C ENDSR
****************************************************************
* Write to Standard Output
****************************************************************
C $WrStout BEGSR
*
C ' ' CHECKR WrtDta:1024 WrtDtaLen
*
C CALLB 'QtmhWrStout'
C PARM WrtDta
C PARM WrtDtaLen
C PARM WPError
*
C ENDSR
****************************************************************
* Initialization Subroutine
****************************************************************
C *INZSR BEGSR
*
C eval WrtDta = %trim(HTTPHeader) +
C NewLine + NewLine
C EXSR $WrStout
*
C ENDSR
I have given *ALL rights to *PUBLIC to lib CGI_BIN and all objects, but when i use browser ==>http://10.0.1.1/cgi-bin/cgi.pgm
I get the following message
Forbidden
Forbidden - by rule.
You do not have permission to access /cgi-bin/cgi.pgm on this server.
Forbidden
Forbidden - by rule.
You do not have permission to access /cgi-bin/cgi.pgm on this server.
Would someone point me in the right direction?
Thanks in advance
Jimmy
Jimmy
Yahoo! FareChase - Search multiple travel sites in one click.
Yahoo! FareChase - Search multiple travel sites in one click.
YAHOO! GROUPS LINKS
- Visit your group "Easy400Group" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
