Loading ...
Sorry, an error occurred while loading the content.

Re: [Easy400Group] Re: HTTP 403 Error When Trying To Run An Sample CGI Program

Expand Messages
  • Bryan Neal
    Mr. Giovanni Thank you so very much for all your help. I made the correct changes to the http config. and all works now. I do not know what I did to make
    Message 1 of 15 , Mar 1, 2010
    • 0 Attachment
      Mr. Giovanni
       
      Thank you so very much for all your help.  I made the correct changes to the http config. and all works now.  I do not know what I did to make those changes but apparently I did.  Since I am very new to cgi programming I will take your advice amd some time on the web page you suggested.
       
      Again thanks to all that responed to my requests.
       
      Bryan Neal
       
       
       

      On Fri, Feb 26, 2010 at 4:41 PM, Giovanni B. Perotti <gb_perotti@...> wrote:
       

      I made a mistake.
      Replace directive (about at the end)
       
      alias /cgi400/ /cgi400/
       
      with
       
      alias /cgi400obj/ /cgi400obj/
       
      Giovanni
       
      ----- Original Message -----
      From: Giovanni
      Sent: Friday, February 26, 2010 10:25 PM
      Subject: [Easy400Group] Re: HTTP 403 Error When Trying To Run An Sample CGI Program

       

      Bryan,

      after taking a closer look at your HTTP directives,
      I came to the conclusion that you have altered some of them
      and that is the cause of the failures.

      You should not play with HTTP directives expecting them to work
      if you do not yet know what they mean.
      Take a look at page
          http://www.easy400.net/easy400apc/
      and spend some time on it.

      I have reconstructed your HTTP directives in a way that make sense,
      and here they are.
      (please make sure that you have an IFS directory /cgi400obj
      and that the *public can access it).

      Giovanni

      #=========================================================================
      # APACHE directives to run CGIDEV2
      #

      # To start the HTTP instance for CGIDEV2,
      # execute the following command:
      # STRTCPSVR SERVER(*HTTP) HTTPSVR(CGIDEV2)
      # Then, run command WRKACTJOB SBS(QHTTPSVR) and make sure that more than
      # one CGIDEV2 job is running.
      # If not, the CGIDEV2 HTTP instance failed being started.
      # You should then look in the joblogs for CGIDEV2 jobs and find out
      # what the error was.
      #
      # To run CGIDEV2, type the following in the location line of your browser:
      # http://yourAS400IpAddr:8015/cgidev2/start
      #
      #=========================================================================
      #  PART 1
      #=========================================================================
      ServerRoot /cgidev/conf
      DocumentRoot /cgidev/conf/hotdocs
      Listen 8015
      DefaultType text/html
      #  CGI
      CGIConvMode %%EBCDIC/EBCDIC%%
      ThreadsPerChild      53
      MaxCGIJobs          100
      StartCGI              2    QTMHHTP1
      Timeout             1800
      #  PERSISTENT CGI
      MaxPersistentCGI     5
      CGIRecyclePersist    on
      PersistentCGITimeout 60
      #  PERFORMANCE
      DynamicCache         on
      CacheLocalSizeLimit  25000
      FRCAEnableFileCache On
      FRCACacheLocalFileRunTime /cgidev/*.gif
      #=========================================================================
      #  PART 2
      #=========================================================================
      Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch +Includes -MultiViews -Indexes
      IdentityCheck Off
      AlwaysDirectoryIndex off
      DirectoryIndex index.html welcome.html
      # The following directives regard the HTTP instance logs
      # They are commented out. Uncomment them to have the logs generated
      #ErrorLog /cgidev/conf/logs/basic_error_log
      #LogFormat "%h %l %u %t \"%r\" %>s %b" common
      #CustomLog /cgidev/conf/logs/access_log Common
      #LogMaint /cgidev/conf/logs/basic_error_log 60 0
      #LogMaint /cgidev/conf/logs/access_log 30 0
      #LogLength 512000000
      #
      BrowserMatch "Mozilla/2" nokeepalive
      BrowserMatch "JDK/1\.0" force-response-1.0
      BrowserMatch "Java/1\.0" force-response-1.0
      BrowserMatch "RealPlayer 4\.0" force-response-1.0
      BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
      <Directory /cgidev/conf/htdocs>
         Order Allow,Deny                  
         Allow From all                    
      </Directory>
      #=========================================================================
      #  PART 3
      #=========================================================================
      #----        CGIDEV2 directives
      AliasMatch /cgidev2h/(.*)\.htm   /QSYS.LIB/CGIDEV2.LIB/HTMLSRC.FILE/$1.mbr
      AliasMatch /cgidev2o/(.*)\.htm   /QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/$1.mbr
      AliasMatch /cgidev2oit/(.*)\.htm /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/$1.mbr
      Alias /cgidev2/start  /qsys.lib/cgidev2.lib/demohtml.file/demoframe.mbr
      Alias /cgidev/        /cgidev/
      Alias /cgidevf/       /cgidev/
      Alias /cgidevexthtml/ /cgidevexthtml/
      Alias /cgidev2/       /qsys.lib/cgidev2.lib/
      Alias /cgidev2h/      /QSYS.LIB/CGIDEV2.LIB/HTMLSRC.FILE/
      Alias /cgidev2o/      /QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/
      Alias /cgidev2oit/    /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/
      Alias /tmp/           /tmp/
      ScriptAliasMatch /cgidev2p/(.*).cgi /qsys.lib/cgidev2.lib/$1.pgm
      ScriptAliasMatch /cgidev2p/(.*)     /qsys.lib/cgidev2.lib/$1
      <Directory /cgidev>
         AllowOverride None
         Options None
         order allow,deny
         allow from all
      </Directory>
      <Directory /cgidevexthtml>
         AllowOverride None
         Options None
         order allow,deny
         allow from all
      </Directory>
      <Directory /QSYS.LIB/CGIDEV2.LIB>
         AllowOverride None
         Options None
         order allow,deny
         allow from all
      </Directory>
      <Directory /tmp>
         AllowOverride None
         Options None
         order allow,deny
         allow from all
      </Directory>
      #----        AS400CGI directives
      ScriptAliasMatch /cgi400objp/(.*)  /qsys.lib/cgi400obj.lib/$1
      alias /cgi400/ /cgi400/
      <Directory /QSYS.LIB/CGI400OBJ.LIB>
         AllowOverride None
         Options None
         order allow,deny
         allow from all
      </Directory>
      <Directory /cgi400obj>
         AllowOverride None
         Options None
         order allow,deny
         allow from all
      </Directory>


    Your message has been successfully submitted and would be delivered to recipients shortly.