ServerTokens OS
ServerRoot "/etc/httpd"PidFile run/httpd.pid# Keepalive settings
Timeout 120KeepAlive OnMaxKeepAliveRequests 100KeepAliveTimeout 15<IfModule prefork.c>
StartServers 8MinSpareServers 5MaxSpareServers 20ServerLimit 256MaxClients 256MaxRequestsPerChild 4000</IfModule><IfModule worker.c>
StartServers 2MaxClients 150MinSpareThreads 25MaxSpareThreads 75ThreadsPerChild 25MaxRequestsPerChild 0</IfModule>Listen 80
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.soLoadModule authn_file_module modules/mod_authn_file.soLoadModule authn_alias_module modules/mod_authn_alias.soLoadModule authn_anon_module modules/mod_authn_anon.soLoadModule authn_dbm_module modules/mod_authn_dbm.soLoadModule authn_default_module modules/mod_authn_default.soLoadModule authz_host_module modules/mod_authz_host.soLoadModule authz_user_module modules/mod_authz_user.soLoadModule authz_owner_module modules/mod_authz_owner.soLoadModule authz_groupfile_module modules/mod_authz_groupfile.soLoadModule authz_dbm_module modules/mod_authz_dbm.soLoadModule authz_default_module modules/mod_authz_default.soLoadModule ldap_module modules/mod_ldap.soLoadModule authnz_ldap_module modules/mod_authnz_ldap.soLoadModule include_module modules/mod_include.soLoadModule log_config_module modules/mod_log_config.soLoadModule logio_module modules/mod_logio.soLoadModule env_module modules/mod_env.soLoadModule ext_filter_module modules/mod_ext_filter.soLoadModule mime_magic_module modules/mod_mime_magic.soLoadModule expires_module modules/mod_expires.soLoadModule deflate_module modules/mod_deflate.soLoadModule headers_module modules/mod_headers.soLoadModule usertrack_module modules/mod_usertrack.soLoadModule setenvif_module modules/mod_setenvif.soLoadModule mime_module modules/mod_mime.soLoadModule dav_module modules/mod_dav.soLoadModule status_module modules/mod_status.soLoadModule autoindex_module modules/mod_autoindex.soLoadModule info_module modules/mod_info.soLoadModule dav_fs_module modules/mod_dav_fs.soLoadModule vhost_alias_module modules/mod_vhost_alias.soLoadModule negotiation_module modules/mod_negotiation.soLoadModule dir_module modules/mod_dir.soLoadModule actions_module modules/mod_actions.soLoadModule speling_module modules/mod_speling.soLoadModule userdir_module modules/mod_userdir.soLoadModule alias_module modules/mod_alias.soLoadModule rewrite_module modules/mod_rewrite.soLoadModule proxy_module modules/mod_proxy.soLoadModule proxy_balancer_module modules/mod_proxy_balancer.soLoadModule proxy_ftp_module modules/mod_proxy_ftp.soLoadModule proxy_http_module modules/mod_proxy_http.soLoadModule proxy_connect_module modules/mod_proxy_connect.soLoadModule cache_module modules/mod_cache.soLoadModule suexec_module modules/mod_suexec.soLoadModule disk_cache_module modules/mod_disk_cache.soLoadModule file_cache_module modules/mod_file_cache.soLoadModule mem_cache_module modules/mod_mem_cache.soLoadModule cgi_module modules/mod_cgi.soLoadModule version_module modules/mod_version.soInclude conf.d/*.conf
#ExtendedStatus On
User webadmin
Group webadmin# Main configuration
ServerAdmin pvalentino@sysxperts.com# UseCanonicalName: When set "On", Apache will use the value of the
# ServerName directive. Otherwise apache will use the client provided host nameUseCanonicalName OffDirectoryIndex index.html index.htm index.php
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being# viewed by Web clients.#<Files ~ "^\.ht">Order allow,denyDeny from all</Files>#
# TypesConfig describes where the mime.types file (or equivalent) is# to be found.#TypesConfig /etc/mime.typesDefaultType text/plain<IfModule mod_mime_magic.c>
# MIMEMagicFile /usr/share/magic.mimeMIMEMagicFile conf/magic</IfModule>HostnameLookups Off
# CACHE CONFIG AND KERNEL ACCELERATORS
<Directory "/www/">
EnableMMAP offEnableSendfile off</Directory>#CacheRoot /web_cache
#CacheDirLevels 5#CacheDirLength 3#MCacheSize 409600#MCacheMinObjectSize 1#MCacheMaxObjectSize 256000#CacheEnable disk /
#CacheEnable mem /ErrorLog /log/nohost_error.log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{Referer}i -> %U" refererLogFormat "%{User-agent}i" agentSetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
SetEnvIf Remote_Addr "-" dontlogSetEnvIf Host "^$" dontlog
SetEnvIf Request_URI \.gif dontlog
SetEnvIf Request_URI \.jpg dontlogSetEnvIf Request_URI \.jpeg dontlogSetEnvIf Request_URI \.png dontlog#CustomLog /log/nohost_access.log combinedServerSignature Off
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViewsAllowOverride NoneOrder allow,denyAllow from all</Directory># IndexOptions: Controls the appearance of server-generated directory
# listings.IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTableAddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*AddIconByType (SND,/icons/sound2.gif) audio/*AddIconByType (VID,/icons/movie.gif) video/*AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqxAddIcon /icons/tar.gif .tarAddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .ivAddIcon /icons/compressed.gif .Z .z .tgz .gz .zipAddIcon /icons/a.gif .ps .ai .epsAddIcon /icons/layout.gif .html .shtml .htm .pdfAddIcon /icons/text.gif .txtAddIcon /icons/c.gif .cAddIcon /icons/p.gif .pl .pyAddIcon /icons/f.gif .forAddIcon /icons/dvi.gif .dviAddIcon /icons/uuencoded.gif .uuAddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tclAddIcon /icons/tex.gif .texAddIcon /icons/bomb.gif coreAddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif READMEAddIcon /icons/folder.gif ^^DIRECTORY^^AddIcon /icons/blank.gif ^^BLANKICON^^DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.htmlIndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddLanguage ca .ca
AddLanguage cs .cz .csAddLanguage da .dkAddLanguage de .deAddLanguage el .elAddLanguage en .enAddLanguage eo .eoAddLanguage es .esAddLanguage et .etAddLanguage fr .frAddLanguage he .heAddLanguage hr .hrAddLanguage it .itAddLanguage ja .jaAddLanguage ko .koAddLanguage ltz .ltzAddLanguage nl .nlAddLanguage nn .nnAddLanguage no .noAddLanguage pl .poAddLanguage pt .ptAddLanguage pt-BR .pt-brAddLanguage ru .ruAddLanguage sv .svAddLanguage zh-CN .zh-cnAddLanguage zh-TW .zh-twLanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
ForceLanguagePriority Prefer Fallback
AddDefaultCharset UTF-8
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgzAddHandler type-map var
#AddType text/html .shtmlAddOutputFilter INCLUDES .shtmlAlias /error/ "/var/www/error/"
<IfModule mod_negotiation.c>
<IfModule mod_include.c><Directory "/var/www/error">AllowOverride NoneOptions IncludesNoExecAddOutputFilter Includes htmlAddHandler type-map varOrder allow,denyAllow from allLanguagePriority en es de frForceLanguagePriority Prefer Fallback</Directory></IfModule>
</IfModule>BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0BrowserMatch "RealPlayer 4\.0" force-response-1.0BrowserMatch "Java/1\.0" force-response-1.0BrowserMatch "JDK/1\.0" force-response-1.0BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefullyBrowserMatch "^WebDrive" redirect-carefullyBrowserMatch "^WebDAVFS/1.[0123]" redirect-carefullyBrowserMatch "^gnome-vfs/1.0" redirect-carefullyBrowserMatch "^XML Spy" redirect-carefullyBrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefullyFileETag MTime SizeProxyRequests OffTraceEnable OffNameVirtualHost *:80Include conf/sites/*
<VirtualHost _default_:80>ServerName www.sysxperts.comServerAlias www1-sysxperts www1-sysxperts.sysxperts.comServerAdmin pvalentino@sysxperts.comErrorLog /var/log/httpd/www1-sysxperts-error_log
CustomLog /var/log/httpd/www1-sysxperts-access_log combined env=!dontlogRewriteEngine On
RewriteRule ^/myapp/?(.*)$ https://%{HTTP_HOST}/myapp/$1 [R,L]RewriteRule ^/myapp2/?(.*)$ https://%{HTTP_HOST}/myapp2/$1 [R,L]Include conf/all_vhosts.conf
DocumentRoot /www/www.sysxperts.com
<Directory "/www/www.sysxperts.com/">
Options +Includes -IndexesAllowOverride NoneAddOutputFilter INCLUDES .htmAddOutputFilter INCLUDES .htmlOrder Allow,DenyAllow From All</Directory></VirtualHost>Listen www.sysxperts.com:443
<VirtualHost www.sysxperts.com:443>ServerName www.sysxperts.comServerAlias www1-sysxperts www1-sysxperts.sysxperts.comServerAdmin pvalentino@sysxperts.comErrorLog /var/log/httpd/www1-sysxperts-error_log
CustomLog /var/log/httpd/www1-sysxperts-access_log combined env=!dontlogRewriteEngine On
RewriteRule ^/$ http://%{HTTP_HOST}/ [R,L]SSLEngine On
SSLCertificateFile ssl/www.sysxperts.com.crtSSLCertificateKeyFile ssl/www.sysxperts.com.keyInclude conf/ssl.confInclude conf/all_vhosts.confDocumentRoot /www/www.sysxperts.com
<Directory "/www/www.sysxperts.com/">
Options +Includes -IndexesAllowOverride NoneAddOutputFilter INCLUDES .htmAddOutputFilter INCLUDES .htmlOrder Allow,DenyAllow From All</Directory>RewriteRule /myapp$ /myapp/ [R,L]
<Location "/myapp/">ProxyPass http://myapp.sysxperts.com:8080/myapp/ProxyPassReverse http://myapp.sysxperts.com:8080/myapp/ProxyPassReverse /</Location>RewriteRule /myapp2$ /myapp2/ [R,L]
<Location "/myapp2/">ProxyPass http://myapp2.sysxperts.com:8080/myapp2/ProxyPassReverse http://myapp2.sysxperts.com:8080/myapp2/ProxyPassReverse /</Location></VirtualHost>
# Rewrite engine must be turned on prior to including this config fileRewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)RewriteRule .* - [F]ProxyPass /commonapp/ http://commonapp.sysxperts.com:8080/commonapp/ProxyPassReverse /commonapp/ http://commonapp.sysxperts.com:8080/commonapp/
SSLProtocol -ALL +SSLv3 +TLSv1
SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
No comments:
Post a Comment