Announcement Announcement Module
Collapse
No announcement yet.
A little help with CGIDEV2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • A little help with CGIDEV2

    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

  • #2
    I am not an expert on the config file but the below is what I have at the bottom of mine. I know you don't need all the combinations but maybe this will help you get it working.

    71 #---- CGIDEV2 directives
    72 AliasMatch /cgidev2h/(.*)\.htm /QSYS.LIB/CGIDEV2.LIB/HTMLSRC.FILE/$1.mbr
    73 AliasMatch /cgidev2o/(.*)\.htm /QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/$1.mbr
    74 AliasMatch /cgidev2o/(.*)\.mbr /QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/$1.mbr
    75 AliasMatch /cgidev2oit/(.*)\.htm /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/$1.mbr
    76 AliasMatch /cgidev2oit/(.*)\.mbr /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/$1.mbr
    77 Alias /cgidev2/start /qsys.lib/cgidev2.lib/demohtml.file/demoframe.mbr
    78 Alias /cgidev/ /cgidev/
    79 Alias /cgidevf/ /cgidev/
    80 Alias /cgidevexthtml/ /cgidevexthtml/
    81 Alias /cgidev2/ /qsys.lib/cgidev2.lib/
    82 Alias /cgidev2h/ /QSYS.LIB/CGIDEV2.LIB/HTMLSRC.FILE/
    83 Alias /cgidev2o/ /QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/
    84 Alias /cgidev2oit/ /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/
    85 Alias /tmp/ /tmp/
    86 ScriptAliasMatch /cgidev2p/(.*).cgi /qsys.lib/cgidev2.lib/$1.pgm
    87 ScriptAliasMatch /cgidev2p/(.*) /qsys.lib/cgidev2.lib/$1
    88
    89 Options None
    90 order allow,deny
    91 allow from all
    92

    93
    94 Options None
    95 order allow,deny
    96 allow from all
    97

    98
    99 Options None
    100 order allow,deny
    101 allow from all
    102

    103
    104 Options None
    105 order allow,deny
    106 allow from all
    107

    Comment


    • #3
      thank you! I'll have a look at mine, and compare and add/troubleshoot.

      Comment

      Working...
      X