Changes

Jump to navigation Jump to search
526 bytes added ,  12:04, 22 March 2019
m
Line 90: Line 90:     
====VirtualHost ProxyPass====
 
====VirtualHost ProxyPass====
<syntaxhighlight lang="apache">
+
<syntaxhighlight lang="apacheconf">
<VirtualHost *:*>
+
<IfModule mod_ssl.c>
    ProxyPreserveHost On
+
        <VirtualHost *:443>
 +
                ServerAdmin webmaster@rra.lan
 +
                ServerName splunk.rra.lan
   −
    # Servers to proxy the connection, or;
+
                ErrorLog ${APACHE_LOG_DIR}/error.log
    # List of application servers:
+
                CustomLog ${APACHE_LOG_DIR}/access.log combined
    # Usage:
+
                ServerAlias splunk.rra.lan
    # ProxyPass / http://[IP Addr.]:[port]/
+
                SSLEngine on
    # ProxyPassReverse / http://[IP Addr.]:[port]/
+
                SSLCertificateFile      /etc/ssl/certs/splunk.rra.lan.crt
    # Example:
+
                SSLCertificateKeyFile /etc/ssl/private/splunk.rra.lan.key
    ProxyPass / http://0.0.0.0:8080/
  −
    ProxyPassReverse / http://0.0.0.0:8080/
     −
    ServerName localhost
+
                <Proxy *>
</VirtualHost>
+
                    AddDefaultCharset Off
 +
                    Order deny,allow
 +
                    Allow from all
 +
                </Proxy>
 +
 
 +
                ProxyRequests Off
 +
                ProxyPreserveHost On
 +
                # SSLProxyEngine on
 +
                ProxyPass / http://0.0.0.0:8000/
 +
                ProxyPassReverse / http://0.0.0.0:8000/
 +
 
 +
        </VirtualHost>
 +
</IfModule>
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Navigation menu