##
## httpd.conf -- Modified for Physia HealthSuite
##

### Section 1: Global Environment
ServerType standalone
ServerRoot "/HealthSuite/apache"
PidFile logs/httpd.pid
ScoreBoardFile logs/httpd.scoreboard
ResourceConfig /dev/null
AccessConfig /dev/null
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 5
StartServers 5
MaxClients 256
MaxRequestsPerChild 0
ExtendedStatus on
#SSLProtocol -all +SSLv2
#SSLCipherSuite SSLv2:+HIGH:+MEDIUM:+LOW:+EXP

# Only required if mod_perl built as a DSO
#LoadModule perl_module        libexec/libperl.so

### Section 2: 'Main' server configuration
Port 80
User nobody
Group nobody
ServerAdmin webmaster@physia.com
ServerName machine.physia.com
DocumentRoot /HealthSuite/WebSite
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Location />
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Location>

AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

UseCanonicalName On

<IfModule mod_mime.c>
    TypesConfig /HealthSuite/apache/conf/mime.types
</IfModule>

DefaultType text/plain

<IfModule mod_mime_magic.c>
    MIMEMagicFile /HealthSuite/apache/conf/magic
</IfModule>

HostnameLookups Off

ErrorLog logs/error_log

LogLevel debug

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

CustomLog logs/access_log common
CustomLog logs/referer_log referer
CustomLog logs/agent_log agent

ServerSignature Off

<IfModule mod_setenvif.c>
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>

### Section 3: mod_perl config

PerlFreshRestart Off
PerlModule Apache::StatINC
PerlInitHandler Apache::StatINC
PerlSetEnv ORACLE_HOME /u01/app/oracle/product/8.1.5
PerlRequire conf/startup.pl
<Location />
	SetHandler perl-script
	PerlHandler Apache::HealthSuite::PracticeManagement
	Options +ExecCGI
</Location>
<Location /images>
	SetHandler default-handler
</Location>
<Location /lib>
	SetHandler default-handler
</Location>
<Location /resources>
	SetHandler default-handler
</Location>
<Location /temp>
	SetHandler default-handler
</Location>
<Location /server-status>
	SetHandler server-status
</Location>
<Location /perl-status>
	SetHandler perl-script
	PerlHandler Apache::Status
	Options +ExecCGI
</Location>
