
Showing paste #jVSG:
#
ServerRoot "C:/Apache24"
#
# Dynamic Shared Object (DSO) Support
#
#
LoadModule headers_module modules/mod_headers.so
LoadModule alias_module modules/mod_alias.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
#LoadModule headers_module modules/mod_headers.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule status_module modules/mod_status.so
LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule ssl_module modules/mod_ssl.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
Include conf/extra/httpd-ssl.conf
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon
</IfModule>
</IfModule>
EnableSendfile Off
EnableMMAP Off
# 'Main' server configuration
#
ServerAdmin admin@beleriand.local
#ServerName TCS.beleriand.local:8080
DocumentRoot "C:/Apache24/htdocs"
ServerSignature Off
ServerTokens Prod
TraceEnable off
LimitRequestBody 1048576
LimitRequestFields 24
LimitRequestFieldSize 2048
LimitRequestLine 512
<Directory />
Options None
AllowOverride None
Require all denied
</Directory>
<Directory "C:/Apache24/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<FilesMatch "\.(ht|inc|sql|php~)$">
Require all denied
#Satisfy All
</FilesMatch>
LogLevel debug
ErrorLog "logs/error.log"
<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "logs/access.log" common
#CustomLog "logs/access.log" combined
</IfModule>
#DefaultType text/plain
<IfModule mime_module>
TypesConfig conf/mime.types
#AddType application/x-gzip .tgz
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#AddHandler cgi-script .cgi
# For type maps (negotiated resources):
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
</IfModule>
KeepAlive On
MaxKeepAliveRequests 50
KeepAliveTimeout 15
ProxyTimeout 1800
# Limit access
<Location />
Require all granted
# Internal network
</Location>
# Proxy configuration
# Test
Listen *:4503
Listen *:7070
<VirtualHost *:4503>
ProxyRequests On
#SSLProxyEngine On
#Header unset Proxy-agent
allowCONNECT 5222
</VirtualHost>
<VirtualHost *:7070>
Header set Access-Control-Allow-Origin "*"
allowCONNECT 7070
RewriteEngine On
RewriteRule ^/http-bind/([^/]+)$ http://$1:7070/http-bind/ [P,L]
</VirtualHost>
Make a new paste