ServerName 127.0.0.1
ServerRoot "/opt/apache"
PidFile /var/apache/run/ussw.pid
<IfDefine ADP>
	Timeout 300
	UNITYUsmwTimeOut 180
	KeepAlive Off
	StartServers 1
	MaxClients 4
	MaxRequestsPerChild 10000
</IfDefine>

<IfDefine !ADP>
	Timeout 180
	UNITYUsmwTimeOut 60
	KeepAlive Off
	KeepAliveTimeout 5
	MaxKeepAliveRequests 15
	StartServers 5
	MaxClients 75
	MaxRequestsPerChild 10000
</IfDefine>

User apache
Group unity

AcceptMutex Default

Listen 80
#Listen 443

#<IfModule !mod_proxy.c>
#	LoadModule proxy_module /usr/lib/apache2-worker/mod_proxy.so
#</IfModule>
<IfModule !mod_unity.c>
	LoadModule unity_module /usr/lib/apache2/libunity.so
</IfModule>
<IfModule !mod_rewrite.c>
	LoadModule rewrite_module /usr/lib/apache2/mod_rewrite.so
</IfModule>
<IfModule !mod_log_config.c>
	LoadModule log_config_module /usr/lib/apache2/mod_log_config.so
</IfModule>
<IfModule !mod_ssl.c>
	LoadModule ssl_module /usr/lib/apache2-worker/mod_ssl.so
</IfModule>
#<IfModule !mod_mime.c>
#	LoadModule mime_module /usr/lib/apache2-worker/mod_mime.so
#</IfModule>
#<IfModule !mod_negotiation.c>
#	LoadModule negotiation_module /usr/lib/apache2-worker/mod_negotiation.so
#</IfModule>
<IfModule !mod_include.c>
	LoadModule include_module /usr/lib/apache2-worker/mod_include.so
</IfModule>
#<IfModule !mod_dir.c>
#	LoadModule dir_module /usr/lib/apache2-worker/mod_dir.so
#</IfModule>
#<IfModule !mod_actions.c>
#	LoadModule actions_module /usr/lib/apache2-worker/mod_actions.so
#</IfModule>
<IfModule !mod_setenvif.c>
	LoadModule setenvif_module /usr/lib/apache2-worker/mod_setenvif.so
</IfModule>
<IfModule !mod_suexec.c>
	LoadModule suexec_module /usr/lib/apache2/mod_suexec.so
</IfModule>

#ProxyRequests On
#ProxyVia On
#<Proxy *>
#	Order deny,allow
#	Deny from all
#	Allow from 127.0.0
#</Proxy>

#ProxyPass /webmin	http://127.0.0.1:10123/
#ProxyPass /webmin/	http://127.0.0.1:10123/
#ProxyPassReverse /webmin/	http://127.0.0.1:10123/
#ProxyPassReverse /webmin/	http://localhost:10123/

<Directory "/opt/apache/htdocs/pubdocs">
    Order deny,allow
    Allow from all
</Directory>

<Directory "/opt/unity/htdocs/public">
    Order deny,allow
    Allow from all
</Directory>

<Directory "/opt/unity/htdocs/common/help">
    Order deny,allow
    Allow from all
</Directory>

<Directory "/opt/apache/htdocs/HTTP">
    Order deny,allow
    Allow from all
</Directory>
 
<Location "/USSW/notify">
    SetHandler ussw-notify
    Order deny,allow
    deny from all
    allow from all
</Location>


DirectoryIndex index.shtml. index.html. index.cgi index.shtml index.html

UseCanonicalName Off
#TypesConfig conf/mime.types
DefaultType text/plain
ServerSignature Off

ErrorDocument 403 /HTTP/error-403.shtml
ErrorDocument 404 /HTTP/error-404.shtml
ErrorDocument 406 /HTTP/error-406.shtml
ErrorDocument 500 /HTTP/error-500.shtml

ServerTokens Prod

<IfDefine !DEBUGLOG>
ScriptLog /tmp/http_cgi_log.txt
#ErrorLog "|/opt/apache/bin/pipelogs /var/log/apache2/error_log 64000"
ErrorLog "/var/log/apache2/error_log"
# Possible values: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug
LogFormat "%h %l %u %t \"%r\" %>s %b Port: %p Pid: %P User-Agent: \"%{User-Agent}i\" Cookie: \"%{Cookie}i\""
#TransferLog /var/log/apache2/access_log
</IfDefine>

<IfDefine DEBUGLOG>
ErrorLog "|/opt/apache/bin/pipelogs /var/log/apache2/error_log 64000"
LogLevel info
</IfDefine>

AddType text/html .shtml
AddHandler server-parsed .shtml
#AddHandler cgi-script  .cgi

#<FilesMatch "\.cgi$">
#    Options +ExecCGI
#</FilesMatch>

#AddType application/x-x509-ca-cert .crt

#Include conf.d/mime.conf
#Include conf.d/mls.conf

#Include conf.d/timo.conf
UNITYSessionCache        shm:/var/apache/run/unity_scache(262144)
UNITYMutex               file:/var/apache/run/unity_mutex
UNITYTitlePrefixFile     /opt/secm/cfg/http_title.conf
UNITYTitlePrefixDefault  "HiPath4000 - "

#SSLSessionCache      shmcb:/var/apache/run/ssl_scache(131072)
#SSLSessionCacheTimeout  600
#SSLMutex  file:/var/apache/run/ssl_mutex
#SSLRandomSeed startup builtin
#SSLRandomSeed connect builtin
#SSLPassPhraseDialog exec:/opt/apache/bin/getpp


RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteRule ^/USSW/notify$ - [L]
RewriteRule ^/public/(.*) /opt/unity/htdocs/public/$1 [L]
RewriteRule ^/common/help/(.*) /opt/unity/htdocs/common/help/$1 [L]
RewriteRule ^/HTTP/(.*)  /opt/apache/htdocs/HTTP/$1 [L]
RewriteRule ^/favicon.ico$ /opt/unity/htdocs/public/images/favicon.ico [L]
RewriteLog "/var/log/apache2/rewrite_log"
RewriteLogLevel 3

#<IfModule mod_jk.c>
#JkWorkersFile /opt/apache/tomcat/conf/workers.properties
#JkExtractSSL off
#<IfDefine DEBUGLOG>
#JkLogFile /var/apache/logs/mod_jk.log
#### debug, warn, error and emerg
#JkLogLevel error
#</IfDefine>
#</IfModule>
