I'm trying to call my CGIDEV2 RPGIV pgm from the browser.
The pgm is in library CGIDEV2 on the i5.
I'm getting HTTP 404 when I execute the following from the browser...
http://192.168.168.220:10088/cgi-bin/TESTPGM4.PGM (or without the .PGM)
Log shows this...
[Fri Sep 20 09:51:02 2013] [error] [client 192.168.168.127] ZSRV_MSG0016: URI in request GET /cgi-bin/TESTPGM4.PGM HTTP/1.1 is not valid
the following is my conf file for the http server... (can someone help me out?)
Display Configuration File HTTP server: ZENDSVR
Selected file: /www/zendsvr/conf/httpd.conf
1 # Configuration originally created by Create HTTP Server wizard on Tue Apr 11 01:53:18 CDT 2006
2
3 LoadModule zend_enabler_module /QSYS.LIB/QHTTPSVR.LIB/QZFAST.SRVPGM
4
5 Listen *:10088
6 NameVirtualHost *:10088
7 DocumentRoot /www/zendsvr/htdocs
8
9 Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes -Indexes -MultiViews
10 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
11 LogFormat "%{Cookie}n \"%r\" %t" cookie
12 LogFormat "%{User-agent}i" agent
13 LogFormat "%{Referer}i -> %U" referer
14 LogFormat "%h %l %u %t \"%r\" %>s %b" common
15 CustomLog logs/access_log combined
16 SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
17 SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
18 SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
19 SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
20 SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
21 SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
22
23 DirectoryIndex index.php index.html
24 TimeOut 30000
25 KeepAlive Off
26 HotBackup Off
27
28 #AddCharset UTF-8 .utf8
29 #AddCharset utf-8 .utf8
30 #AddCharset utf-7 .utf7
31 AddCharset UTF-8 .htm .html .xml
32
33 # zend fastcgi
34 AddType application/x-httpd-php .php
35 AddType application/javascript .js
36 AddType text/css .css
37 AddType application/json .json
38 AddHandler fastcgi-script .php
39
40
41 RewriteEngine on
42
43 ## Deny most requests for any file
44 #
45 # Options FollowSymLinks
46 # order allow,deny
47 # allow from all
48 # AllowOverride all
49 #
50
51 # Allow requests for files in document root
52 Header Always Set Access-Control-Allow-Origin "*"
53
54 Options FollowSymLinks
55 order allow,deny
56 allow from all
57 AllowOverride all
58
59
60
61 Order Allow,Deny
62 Allow From all
63
64
65
66
67 Options FollowSymLinks
68 Order allow,deny
69 Allow from 127.0.0.1
70
71
72
73 Order deny,allow
74 Allow from all
75
76
77 ScriptAlias /cgi-bin/(.*) /QSYS.LIB/CGIDEV2.LIB/$1.PGM
78 Alias /ZendServer "/usr/local/zendsvr/gui/html"
79
80
81 AllowOverride All
82
83
84
85
86 Order deny,allow
87 Allow from all
88
89
90
91 Order deny,allow
92 Allow from all
93
94
95 Alias /Zend5250Demos /usr/local/zendsvr/5250/demos
96 Alias /Zend5250Login /usr/local/zendsvr/5250/Generator/Form
97 Alias /Zend5250Appl /usr/local/zendsvr/5250/Welcome
98 Alias /phpmyadmin /usr/local/zendsvr/phpMyAdmin
99 Alias /iseries /usr/local/zendsvr/iseries
100 Alias /js_html /usr/local/zendsvr/js_html
101
102
103
104 Options FollowSymLinks
105 AllowOverride All
106
107
108
109
110 Options FollowSymLinks
111 Order allow,deny
112 Allow from 127.0.0.1
113
114
115
116 Order deny,allow
117 Allow from all
118
119
120
121 Include /usr/local/zendsvr/etc/sites.d/zend-default-vhost-10088.conf
123
124
125 Include /usr/local/zendsvr/etc/sites.d/globals-*.conf
File "/usr/local/zendsvr/etc/sites.d/globals-*.conf" was not found.
126 Include /usr/local/zendsvr/etc/sites.d/vhost_*.conf
File "/usr/local/zendsvr/etc/sites.d/vhost_*.conf" was not found.
127
The pgm is in library CGIDEV2 on the i5.
I'm getting HTTP 404 when I execute the following from the browser...
http://192.168.168.220:10088/cgi-bin/TESTPGM4.PGM (or without the .PGM)
Log shows this...
[Fri Sep 20 09:51:02 2013] [error] [client 192.168.168.127] ZSRV_MSG0016: URI in request GET /cgi-bin/TESTPGM4.PGM HTTP/1.1 is not valid
the following is my conf file for the http server... (can someone help me out?)
Display Configuration File HTTP server: ZENDSVR
Selected file: /www/zendsvr/conf/httpd.conf
1 # Configuration originally created by Create HTTP Server wizard on Tue Apr 11 01:53:18 CDT 2006
2
3 LoadModule zend_enabler_module /QSYS.LIB/QHTTPSVR.LIB/QZFAST.SRVPGM
4
5 Listen *:10088
6 NameVirtualHost *:10088
7 DocumentRoot /www/zendsvr/htdocs
8
9 Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes -Indexes -MultiViews
10 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
11 LogFormat "%{Cookie}n \"%r\" %t" cookie
12 LogFormat "%{User-agent}i" agent
13 LogFormat "%{Referer}i -> %U" referer
14 LogFormat "%h %l %u %t \"%r\" %>s %b" common
15 CustomLog logs/access_log combined
16 SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
17 SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
18 SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
19 SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
20 SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
21 SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
22
23 DirectoryIndex index.php index.html
24 TimeOut 30000
25 KeepAlive Off
26 HotBackup Off
27
28 #AddCharset UTF-8 .utf8
29 #AddCharset utf-8 .utf8
30 #AddCharset utf-7 .utf7
31 AddCharset UTF-8 .htm .html .xml
32
33 # zend fastcgi
34 AddType application/x-httpd-php .php
35 AddType application/javascript .js
36 AddType text/css .css
37 AddType application/json .json
38 AddHandler fastcgi-script .php
39
40
41 RewriteEngine on
42
43 ## Deny most requests for any file
44 #
45 # Options FollowSymLinks
46 # order allow,deny
47 # allow from all
48 # AllowOverride all
49 #
50
51 # Allow requests for files in document root
52 Header Always Set Access-Control-Allow-Origin "*"
53
54 Options FollowSymLinks
55 order allow,deny
56 allow from all
57 AllowOverride all
58
59
60
61 Order Allow,Deny
62 Allow From all
63
64
65
66
67 Options FollowSymLinks
68 Order allow,deny
69 Allow from 127.0.0.1
70
71
72
73 Order deny,allow
74 Allow from all
75
76
77 ScriptAlias /cgi-bin/(.*) /QSYS.LIB/CGIDEV2.LIB/$1.PGM
78 Alias /ZendServer "/usr/local/zendsvr/gui/html"
79
80
81 AllowOverride All
82
83
84
85
86 Order deny,allow
87 Allow from all
88
89
90
91 Order deny,allow
92 Allow from all
93
94
95 Alias /Zend5250Demos /usr/local/zendsvr/5250/demos
96 Alias /Zend5250Login /usr/local/zendsvr/5250/Generator/Form
97 Alias /Zend5250Appl /usr/local/zendsvr/5250/Welcome
98 Alias /phpmyadmin /usr/local/zendsvr/phpMyAdmin
99 Alias /iseries /usr/local/zendsvr/iseries
100 Alias /js_html /usr/local/zendsvr/js_html
101
102
103
104 Options FollowSymLinks
105 AllowOverride All
106
107
108
109
110 Options FollowSymLinks
111 Order allow,deny
112 Allow from 127.0.0.1
113
114
115
116 Order deny,allow
117 Allow from all
118
119
120
121 Include /usr/local/zendsvr/etc/sites.d/zend-default-vhost-10088.conf
123
124
125 Include /usr/local/zendsvr/etc/sites.d/globals-*.conf
File "/usr/local/zendsvr/etc/sites.d/globals-*.conf" was not found.
126 Include /usr/local/zendsvr/etc/sites.d/vhost_*.conf
File "/usr/local/zendsvr/etc/sites.d/vhost_*.conf" was not found.
127
Comment