Information Systems:WEBTEST - Apache instance for testing

From uniWIKI
Jump to navigation Jump to search
# This config file has been minified. Check the wiki for details.
Listen 172.30.18.5:8081

DocumentRoot /www/webtest/htdocs
Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes -Indexes -MultiViews
ServerTokens Full
SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
SetEnv ESDI_USE_GETPARM4 1

CGIConvMode %%EBCDIC/MIXED%%
CGIMultiThreaded On

Header always Set Access-Control-Allow-Origin http://unipharm.exwaresolutions.com
Header always Set Access-Control-Expose-Headers set-cookie
Header always Set Access-Control-Allow-Credentials true
Header always Set Access-Control-Allow-Methods GET,POST,PUT
<Directory />
   Order Deny,Allow
   Deny From all
</Directory>

# -------------------------------------------
# Directives for ProGen WebSmart
#
 
<Directory /www/webtest/htdocs>
   Order Allow,Deny
   Allow From all
</Directory>

<Directory /esdi/unipharm>
   Order Allow,Deny
   Allow From all
</Directory>

<Directory /webroot/unipharm>
   Order Allow,Deny
   Allow From all
</Directory>

<Directory /webroot/uniqa>
   Order Allow,Deny
   Allow From all
</Directory>

<Directory /webroot/unidev>
   Order Allow,Deny
   Allow From all
</Directory>

# ProGen WebSmart pgms in directory /wsdemo uses library XL_WEBDEMO. 
# Programs in directory /webapps use XL_WEBAPPS. 
ScriptAliasMatch ^/webapps/(.*)\.pgm$ /QSYS.LIB/XL_WEBAPPS.LIB/$1.pgm 
AliasMatch ^/webapps/(.*) /esdi/websmart/wsdemo/$1 
<Directory /QSYS.LIB/XL_WEBAPPS.LIB/>
   Order Allow,Deny 
   Allow From All 
</Directory>

ScriptAliasMatch ^/wsdemo/(.*)\.pgm$ /QSYS.LIB/XL_WEBDEMO.LIB/$1.pgm 
AliasMatch ^/wsdemo/(.*) /esdi/websmart/wsdemo/$1 
<Directory /QSYS.LIB/XL_WEBDEMO.LIB/>
   Order Allow,Deny 
   Allow From all 
</Directory>

# For ProGen WebSmart sample, product, and graphic files located in the IFS. 
AliasMatch ^/websmart/(.*) /esdi/websmart/$1 
<Directory /esdi/websmart>
   order allow,deny 
   allow from all 
</Directory>

<Directory /esdi/websmart/wcm/>
   order allow,deny 
   deny from all 
</Directory>


# -----------------------For uniPHARM------------------------------------

# For UniPharm - initial prototype
ScriptAliasMatch ^/uniproto/(.*)\.pgm$ /QSYS.LIB/XL_WEBAPPS.LIB/$1.pgm 
AliasMatch ^/uniproto/(.*) /esdi/unipharm/$1 

# For Unipharm development 
<Directory /QSYS.LIB/WEBDEVP.LIB/>
  Order Allow,Deny 
  Allow From All 
</Directory>
ScriptAliasMatch ^/unidev/(.*)\.pgm$ /QSYS.LIB/WEBDEVP.LIB/$1.pgm 
AliasMatch ^/unipharm/(.*) /webroot/unipharm/$1

#SSR 20091217 - change unidev to map to unidev instead of unipharm
AliasMatch ^/unidev/(.*) /webroot/unidev/$1 

#StephRabbani 20090818 - add a unidev 2 environment so we can use the ifs files in the unidev folder
ScriptAliasMatch ^/unidev2/(.*)\.pgm$ /QSYS.LIB/WEBDEVP.LIB/$1.pgm
AliasMatch ^/unidev2/(.*) /webroot/unidev/$1