Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Apache2
(view source)
Revision as of 12:04, 22 March 2019
526 bytes added
,
12:04, 22 March 2019
m
→VirtualHost ProxyPass
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>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version