Skip to content

Instantly share code, notes, and snippets.

@Karm
Created September 3, 2019 10:16
Show Gist options
  • Save Karm/e65b92d8e67b3775831b55b5348f94e8 to your computer and use it in GitHub Desktop.
Save Karm/e65b92d8e67b3775831b55b5348f94e8 to your computer and use it in GitHub Desktop.
ServerRoot "/home/karm/JBCS/2.4.37-ER2/jbcs-httpd24-2.4/httpd"
Listen 9800
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_socache_module modules/mod_authn_socache.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule filter_module modules/mod_filter.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule http2_module modules/mod_http2.so
LoadModule proxy_http2_module modules/mod_proxy_http2.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule status_module modules/mod_status.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so
<IfModule unixd_module>
User karm
Group karm
</IfModule>
ServerAdmin Administrator@localhost
<Directory />
AllowOverride none
Require all denied
</Directory>
DocumentRoot "htdocs"
<Directory "htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "logs/error_log"
LogLevel warn
DefaultRuntimeDir logs/
PidFile logs/httpd.pid
## IfFile Available in 2.4.34 and later.
#<IfFile modules/mod_mpm_event.so>
# LoadModule mpm_event_module modules/mod_mpm_event.so
#</IfFile>
#If the httpd has the mpm_event built-in, call it with -DSKIP_MPM_EVENT
<IfDefine !SKIP_MPM_EVENT>
LoadModule mpm_event_module modules/mod_mpm_event.so
</IfDefine>
StartServers 3
MinSpareThreads 75
MaxSpareThreads 250
ThreadsPerChild 25
MaxRequestWorkers 400
MaxConnectionsPerChild 0
Listen 9443
SSLCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES
SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES
SSLHonorCipherOrder on
SSLProtocol all -SSLv3
SSLProxyProtocol all -SSLv3
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
<VirtualHost _default_:9443>
Protocols h2 h2c
ProtocolsHonorOrder on
ProxyPass "/" "balancer://mycluster" stickysession=JSESSIONID|jsessionid scolonpathdelim=On
ProxyPassReverse "/" "https://localhost:9443"
<Proxy "balancer://mycluster">
BalancerMember "h2://127.0.0.1:8081" route=node1
BalancerMember "h2://127.0.0.1:8082" route=node2
</Proxy>
ServerName localhost:9443
ServerAdmin you@example.com
ErrorLog "logs/error_log"
TransferLog "logs/access_log"
LogLevel trace2
SSLEngine on
SSLProxyEngine on
SSLProxyCheckPeerName Off
SSLVerifyClient none
SSLProxyVerify none
SSLCertificateFile "/home/karm/go/src/github.com/summerwind/h2spec/cve/config-examples/localhost.crt"
SSLCertificateKeyFile "/home/karm/go/src/github.com/summerwind/h2spec/cve/config-examples/localhost.key"
CustomLog "logs/ssl_request_log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment