##
## httpd.conf -- Apache HTTP server configuration file
##

User apache
ServerRoot /home/mikedlr/LINK/link-controller/LinkController/supertest/full-run.d
ServerType standalone
LockFile ./var/httpd.lock
PidFile ./var/httpd.pid
ScoreBoardFile ./var/httpd.scoreboard
ResourceConfig /dev/null
AccessConfig /dev/null
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 2
MaxSpareServers 4
StartServers 4
MaxClients 50
Listen 8083
BindAddress 127.0.0.1

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Please read the file README.DSO in the Apache 1.3 distribution for more
# details about the DSO mechanism and run `httpd -l' for the list of already
# built-in (statically linked and thus always available) modules in your httpd
# binary.
#
# Note: The order is which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# Example:
# LoadModule foo_module /etc/httpd/modules/mod_foo.so

#LoadModule mmap_static_module /etc/httpd/modules/mod_mmap_static.so
LoadModule vhost_alias_module /etc/httpd/modules/mod_vhost_alias.so
LoadModule env_module         /etc/httpd/modules/mod_env.so
LoadModule config_log_module  /etc/httpd/modules/mod_log_config.so
LoadModule agent_log_module   /etc/httpd/modules/mod_log_agent.so
LoadModule referer_log_module /etc/httpd/modules/mod_log_referer.so
#LoadModule mime_magic_module  /etc/httpd/modules/mod_mime_magic.so
LoadModule mime_module        /etc/httpd/modules/mod_mime.so
LoadModule negotiation_module /etc/httpd/modules/mod_negotiation.so
LoadModule status_module      /etc/httpd/modules/mod_status.so
LoadModule info_module        /etc/httpd/modules/mod_info.so
LoadModule includes_module    /etc/httpd/modules/mod_include.so
LoadModule autoindex_module   /etc/httpd/modules/mod_autoindex.so
LoadModule dir_module         /etc/httpd/modules/mod_dir.so
LoadModule cgi_module         /etc/httpd/modules/mod_cgi.so
LoadModule asis_module        /etc/httpd/modules/mod_asis.so
LoadModule imap_module        /etc/httpd/modules/mod_imap.so
LoadModule action_module      /etc/httpd/modules/mod_actions.so
#LoadModule speling_module     /etc/httpd/modules/mod_speling.so
LoadModule userdir_module     /etc/httpd/modules/mod_userdir.so
LoadModule alias_module       /etc/httpd/modules/mod_alias.so
LoadModule rewrite_module     /etc/httpd/modules/mod_rewrite.so
LoadModule access_module      /etc/httpd/modules/mod_access.so
LoadModule auth_module        /etc/httpd/modules/mod_auth.so
LoadModule anon_auth_module   /etc/httpd/modules/mod_auth_anon.so
LoadModule db_auth_module     /etc/httpd/modules/mod_auth_db.so
#LoadModule dbm_auth_module    /etc/httpd/modules/mod_auth_dbm.so
#LoadModule auth_ldap_module   /etc/httpd/modules/mod_auth_ldap.so
#LoadModule digest_module      /etc/httpd/modules/mod_digest.so
#LoadModule proxy_module       /etc/httpd/modules/libproxy.so
#LoadModule cern_meta_module   /etc/httpd/modules/mod_cern_meta.so
LoadModule expires_module     /etc/httpd/modules/mod_expires.so
LoadModule headers_module     /etc/httpd/modules/mod_headers.so
#LoadModule usertrack_module   /etc/httpd/modules/mod_usertrack.so
#LoadModule example_module     /etc/httpd/modules/mod_example.so
#LoadModule unique_id_module   /etc/httpd/modules/mod_unique_id.so
LoadModule setenvif_module    /etc/httpd/modules/mod_setenvif.so
#LoadModule bandwidth_module   /etc/httpd/modules/mod_bandwidth.so
#LoadModule put_module	       /etc/httpd/modules/mod_put.so
#LoadModule throttle_module    /etc/httpd/modules/mod_throttle.so
#LoadModule define_module      /etc/httpd/modules/mod_define.so
<IfDefine HAVE_PERL>
LoadModule perl_module        /etc/httpd/modules/libperl.so
</IfDefine>
<IfDefine HAVE_PHP>
LoadModule php_module         /etc/httpd/modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module        /etc/httpd/modules/libphp3.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module        /etc/httpd/modules/libphp4.so
</IfDefine>
<IfDefine HAVE_DAV>
LoadModule dav_module         /etc/httpd/modules/libdav.so
</IfDefine>
<IfDefine HAVE_ROAMING>
LoadModule roaming_module     /etc/httpd/modules/mod_roaming.so
</IfDefine>
<IfDefine HAVE_SSL>
LoadModule ssl_module         /etc/httpd/modules/libssl.so
</IfDefine>

#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#  [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
#AddModule mod_mmap_static.c
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
#AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
#AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_db.c
#AddModule mod_digest.c
#AddModule mod_proxy.c
#AddModule mod_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
#AddModule mod_usertrack.c
#AddModule mod_example.c
#AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
#AddModule mod_bandwidth.c
#AddModule mod_put.c
<IfDefine HAVE_PERL>
AddModule mod_perl.c
</IfDefine>
<IfDefine HAVE_PHP>
AddModule mod_php.c
</IfDefine>
<IfDefine HAVE_PHP3>
AddModule mod_php3.c
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
<IfDefine HAVE_DAV>
AddModule mod_dav.c
</IfDefine>
<IfDefine HAVE_ROAMING>
AddModule mod_roaming.c
</IfDefine>
<IfDefine HAVE_SSL>
AddModule mod_ssl.c
</IfDefine>

Port 8083
ServerAdmin root@localhost
ServerName 127.0.0.1
DocumentRoot "/home/mikedlr/LINK/link-controller/LinkController/supertest/full-run.d/html"

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.cgi

<Directory "/home/mikedlr/LINK/link-controller/LinkController/supertest/full-run.d/html">
    Options Indexes Includes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>


AccessFileName .htaccess

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

UseCanonicalName On
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off

ErrorLog log/error_log
LogLevel notice

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 log/access_log combined
ServerSignature On
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz

AddLanguage en .en
AddLanguage fr .fr
AddLanguage de .de
AddLanguage da .da
AddLanguage el .el
AddLanguage it .it

LanguagePriority en fr de

<IfModule mod_php4.c>
  AddType application/x-httpd-php .php4 .php3 .phtml .php
  AddType application/x-httpd-php-source .phps
</IfModule>

<IfModule mod_php3.c>
  AddType application/x-httpd-php3 .php3
  AddType application/x-httpd-php3-source .phps
</IfModule>

<IfModule mod_php.c>
  AddType application/x-httpd-php .phtml
</IfModule>

AddType application/x-tar .tgz
AddType text/html .shtml
AddHandler server-parsed .shtml

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 mod_perl.c>
  Alias /perl/ /var/www/perl/
  <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options +ExecCGI
  </Location>
</IfModule>

#Alias /doc/ /usr/share/doc/
#<Location /doc>
#  order deny,allow
#  deny from all
#  allow from localhost .localdomain
#  Options Indexes FollowSymLinks
#</Location>

<IfDefine HAVE_SSL>

Listen 8084

SSLSessionCache shm:/var/cache/ssl_gcache_data(524288)

<VirtualHost _default_:8084>

DocumentRoot "/home/mikedlr/LINK/link-controller/LinkController/supertest/full-run.d/html"

SSLEngine on

SSLCertificateFile /home/mikedlr/LINK/link-controller/LinkController/supertest/full-run.d/etc/ssl.crt/server.crt

SSLCertificateKeyFile /home/mikedlr/LINK/link-controller/LinkController/supertest/full-run.d/etc/ssl.key/server.key

<Files ~ "\.(cgi|shtml)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>

SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

CustomLog /var/log/httpd/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

</IfDefine>
