ServerRoot "/u01/apache/httpd"
Listen 18080
Listen 18082

LoadModule access_compat_module modules/mod_access_compat.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule mime_module modules/mod_mime.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule headers_module modules/mod_headers.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so
LoadModule jk_module modules/mod_jk.so
LoadModule tr_http_redirect_module modules/mod_tr_http_redirect.so
# Include and Rewrite requres to serve static index.html
LoadModule include_module modules/mod_include.so
LoadModule rewrite_module modules/mod_rewrite.so

# To proccess includes generated on JBoss side
LoadModule filter_module modules/mod_filter.so

# Enable compression
LoadModule deflate_module modules/mod_deflate.so

<IfModule unixd_module>
    User cortellis
    Group users
</IfModule>

ServerAdmin you@example.com

<Directory />
    AllowOverride none
    ## Combined with above line the next one disables .htaccess files.
    AllowOverrideList None
    Require all denied
</Directory>

<Files ".ht*">
    Require all denied
</Files>

<LocationMatch /WEB-INF/>
    Require all denied
</LocationMatch>

DocumentRoot "/u01/apache/httpd/htdocs"
<Directory "/u01/apache/httpd/htdocs">
    Require all granted
</Directory>

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

ErrorLog "logs/error_log"
LogLevel warn
<IfModule log_config_module>
    LogFormat "%{REMOTEADDRESS}i %h %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%{REMOTEADDRESS}i %h %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog "logs/access_log" common
</IfModule>

<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
</IfModule>

<Location /redirect>
    SetHandler tr_http_redirect
</Location>





# Seconds in 8hrs : 28800
# Seconds in a day : 86400
# Seconds in a week : 604800
# Seconds in a month : 2678400
# Seconds in a year : 32140800
# Seconds spent to calculate this : 210


FileETag Size

<IfModule mod_expires>

ExpiresActive On

#          <FilesMatch "\.(ico|jpeg|jpg|png|gif|swf|js|css)$">
          <FilesMatch "\\.(ico|jpg|jpeg|png|gif|swf|js|css|htm|html|php|pack)$">
                      ExpiresDefault "access plus 8 hours"
          </FilesMatch>
# Favicon
  ExpiresByType image/x-icon       	       	"access plus 8 hours"

# Media: images, video, audio
  ExpiresByType audio/ogg          	      	"access plus 8 hours"
  ExpiresByType image/gif          	      	"access plus 8 hours"
  ExpiresByType image/jpeg         	      	"access plus 8 hours"
  ExpiresByType image/png          	      	"access plus 8 hours"
  ExpiresByType video/mp4          	      	"access plus 8 hours"
  ExpiresByType video/ogg           	      	"access plus 8 hours"
  ExpiresByType video/webm			"access plus 8 hours"
  ExpiresByType application/x-shockwave-flash	"access plus 8 hours"

# HTC files  (css3pie)
  ExpiresByType text/x-component          	"access plus 8 hours"

# Webfonts
  ExpiresByType application/vnd.ms-fontobject 	"access plus 8 hours"
  ExpiresByType application/x-font-ttf    	"access plus 8 hours"
  ExpiresByType application/x-font-woff   	"access plus 8 hours"
  ExpiresByType font/opentype             	"access plus 8 hours"
  ExpiresByType image/svg+xml             	"access plus 8 hours"

# CSS and JavaScript
  ExpiresByType application/javascript    	"access plus 8 hours"
  ExpiresByType text/css                  	"access plus 8 hours"
  ExpiresByType application/x-javascript  	"access plus 8 hours"

# HTML
  ExpiresByType text/html			"access plus 8 hours"


</IfModule>
<IfModule mod_headers>
        <FilesMatch "\\.(ico|jpg|jpeg|png|gif|swf|js|css|htm|html|php|pack)$">
                Header set Cache-Control "max-age=28800, public"
        </FilesMatch>
#        <FilesMatch "\\.(css)$">
#                Header set Cache-Control "max-age=28800, public"
#        </FilesMatch>
#        <FilesMatch "\\.(js)$">
#                Header set Cache-Control "max-age=28800, private"
#        </FilesMatch>
#        <FilesMatch "\\.(htm|html)$">
#                Header set Cache-Control "max-age=28800, private"
#        </FilesMatch>
#        <FilesMatch "\\.(pack)$">
#                Header set Cache-Control "max-age=28800, private"
#        </FilesMatch>
#        <FilesMatch "\\.(x?html?|php)$">
#                Header set Cache-Control "max-age=28800, private, must-revalidate"
#        </FilesMatch>
</IfModule>




JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel warn
Include conf/vhosts.conf

