Last active
April 4, 2017 08:10
-
-
Save liangzai-cool/048f35e0e8e525e6e40e7fb92f112b35 to your computer and use it in GitHub Desktop.
apache reverse proxy settings.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`conf/httpd.conf`: | |
``` | |
Define SRVROOT "D:\ProgramFiles\httpd-2.4.25-x64-vc14-r1\Apache24" | |
LoadModule access_compat_module modules/mod_access_compat.so | |
LoadModule headers_module modules/mod_headers.so | |
LoadModule proxy_module modules/mod_proxy.so | |
LoadModule proxy_http_module modules/mod_proxy_http.so | |
Include conf/extra/httpd-vhosts.conf | |
``` | |
`conf/extra/httpd-vhosts.conf`: | |
``` | |
<VirtualHost *:80> | |
ServerAdmin xxx@xxx.xxx | |
ServerName xxx.xxx.xxx | |
ServerAlias xxx.xxx | |
ErrorLog "logs/xxx.xxx.xxx-error.log" | |
CustomLog "logs/xxx.xxx.xxx-access.log" common | |
<Directory www/xxx.xxx.xxx> | |
AllowOverride None | |
Order Deny,Allow | |
Allow from all | |
</Directory> | |
# reverse proxy settings | |
RequestHeader set Front-End-Httpsss "On" | |
SSLProxyEngine On | |
ProxyPass /lan http://127.0.0.1:8080 | |
ProxyPassReverse / http://127.0.0.1:8080 | |
</VirtualHost> | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment