It seems that there are multiple directories set up for
production and development.  So that is up to you where you
want to put them.

One thing you'll want to do is learn how to run the
configuration and set it up, change it, etc.  No tool will
teach that.

No tool will also allow you to get buy without knowing
HTML, JavaScript, Stylesheets, Server Side Includes, etc.
 These are all topics that should be learned before taking
on any production web programming tasks.

For reference, here is an example of the configuration my
eRPG SDK sets up.  

Listen 63.167.147.101:8080
DocumentRoot /www/erpgsdk/html
ErrorLog logs/error_log
LogLevel Warn
DirectoryIndex index.html

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
LogFormat "%{Cookie}n \"%r\" %t" cookie
LogFormat "%{User-agent}i" agent
LogFormat "%{Referer}i -> %U" referer
LogFormat "%h %l %u %t \"%r\" %>s %b" common

CGIConvMode %%EBCDIC/EBCDIC%%

<Directory />
   Options None
   AllowOverride None
   Order Deny,Allow
   Deny From all
</Directory>

<Directory /www/erpgsdk/html>
   Order Allow,Deny
   Allow From all
   <FilesMatch "\.html(\..+)?$">
       Options +Includes
       SetOutputFilter Includes
  </FilesMatch>
</Directory>

Alias /catalog /www/erpgsdk/catalog

<Directory /www/erpgsdk/catalog>
   Order Allow,Deny
   Allow From all
   <FilesMatch "\.html(\..+)?$">
       Options +Includes
       SetOutputFilter Includes
  </FilesMatch>
</Directory>

ScriptAliasMatch ^/e-rpg/(.*) /qsys.lib/erpgsdk.lib/$1.pgm

<Directory /qsys.lib/erpgsdk.lib>
   allow from all
   order allow,deny
   Options +ExecCGI +Includes
   SetOutputFilter Includes
</Directory>

Once installed it will set up and run the samples.  That's
one reason for the /catalog alias.  That is a seperate
shopping cart example included with the product.

But, all the source is there for the samples as well in the
ERPGSDK library.  As you can see from the config, /e-rpg
maps requests to this library (as opposed to /cgi-bin which
is normally used).

Looking through your example it's fairly easy to follow the
paths, but with Apache there is always 10 ways to do one
thing and no one seems to do it the same way, which may be
confusing.  :)

On Thu, 6 Oct 2005 14:19:53 -0700
 "Douglas W. Palme" <dpalme@xxxxxxxxxxx> wrote:
> I have decided to give Bob Cozzi's rpgtools a try for
> some web programming.  
> I have it installed, license key entered, etc. so that
> part is finished, but 
> I was looking at the httpd directives and conf file and
> noticed that there 
> is a lot of junk in here...I need to ensure that I 1.
> have a directory to 
> place our cgi programs into IE: cgi-bin but am a bit lost
> with all the crap 
> I found in the conf file.  Here is a copy of the conf
> file, any help or 
> suggestions would be appreciated on cleaning it up and
> making sure that the 
> cgi-bin is configured correctly.
> 
> 
>  ************Beginning of data*************
> # Apache Default server configuration      
>                                            
> # General setup directives                 
> HotBackup Off                              
> CgiConvMode %%MIXED/MIXED%%                
> HostNameLookups Off                        
> UseCanonicalName On                        
> TimeOut 30000                              
> KeepAlive Off                              
> DocumentRoot /www/apachedft/htdocs         
> AddLanguage en .en                         
>                                            
> # Deny most requests for any file          
> <Directory />                              
>   order allow,deny
>                                                       
>   deny from all
>                                                          
>   Options -Indexes -ExecCGI -includes
>                                    
>   AllowOverride Limit Options
>                                            
> </Directory>
>
                                                          
>  
>
                                                          
>               
> # Allow requests for files in document root
>                              
> <Directory /www/apachedft/htdocs>
>                                        
>   order allow,deny
>                                                       
>   allow from all
>                                                         
> </Directory>
>
                                                          
>  
> Listen 80
>
                                                          
>     
> #----        CGIPROD directives
>                                          
> AliasMatch /cgiprodh/(.*)\.htm
>  /QSYS.LIB/CGIPROD.LIB/HTMLSRC.FILE/$1.mbr
> Alias /cgiprodh/     /QSYS.LIB/CGIPROD.LIB/HTMLSRC.FILE/
>       
> Alias /cgiprod/       /cgiprod/
>                                
> ScriptAliasMatch /cgiprodp(.*).pgm
> /qsys.lib/cgiprod.lib/$1.pgm
> <Directory /QSYS.LIB/CGIPROD.LIB>
>                              
>    AllowOverride None
>                                          
>    Options None
>                                                
>    order allow,deny
>                                            
>    allow from all
>                                              
> </Directory>
>                                                   
> <Directory /cgiprod>
>                                           
>    AllowOverride None
>                                          
>    Options None
>                                                
>    order allow,deny
>                                            
>    allow from all
>                                              
> </Directory>
>
                                                          
> #----        CGISRC directives
>                                         
> AliasMatch /cgisrch/(.*)\.htm
>  /QSYS.LIB/CGISRC.LIB/HTMLSRC.FILE/$1.mbr
> Alias /cgisrch/     /QSYS.LIB/CGISRC.LIB/HTMLSRC.FILE/
>                 
> Alias /cgisrc/       /cgisrc/
>                                          
> ScriptAliasMatch /cgisrcp(.*).pgm
> /qsys.lib/cgisrc.lib/$1.pgm          
> <Directory /QSYS.LIB/CGISRC.LIB>
>                                       
>    AllowOverride None
>                                                  
>    Options None
>                                                        
>    order allow,deny
>                                                    
>    allow from all
>                                                      
> </Directory>
>
                                                          
> <Directory /cgisrc>
>                                                    
>    AllowOverride None
>                                                  
>    Options None
>
                                                          
> 
>    order allow,deny
>                                                        
>    allow from all
>                                                          
> </Directory>
>
                                                          
>    
> #----        QCGIPROD directives
>                                           
> AliasMatch /qcgiprodh/(.*)\.htm
>  /QSYS.LIB/QCGIPROD.LIB/HTMLSRC.FILE/$1.mbr
> Alias /qcgiprodh/
>     /QSYS.LIB/QCGIPROD.LIB/HTMLSRC.FILE/                 
> Alias /qcgiprod/       /qcgiprod/
>                                          
> ScriptAliasMatch /qcgiprodp(.*).pgm
> /qsys.lib/qcgiprod.lib/$1.pgm          
> <Directory /QSYS.LIB/QCGIPROD.LIB>
>                                         
>    AllowOverride None
>                                                      
>    Options None
>
                                                          
> 
>    order allow,deny
>                                                        
>    allow from all
>                                                          
> </Directory>         
> <Directory /qcgiprod>
>    AllowOverride None
>    Options None      
>    order allow,deny  
>    allow from all    
> </Directory>         
> 
> 
> If you bought it, it was hauled by a truck - somewhere,
> sometime.
> 
> -- 
> This is the Web Enabling the AS400 / iSeries (WEB400)
> mailing list
> To post a message email: WEB400@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/web400
> or email: WEB400-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/web400.
> 

Bradley V. Stone
BVS.Tools
www.bvstools.com

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.