Created
September 16, 2016 16:35
-
-
Save codexss/c4d51625a6e0992a086af2d9606f8724 to your computer and use it in GitHub Desktop.
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
#全局指令 | |
LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so | |
LoadModule substitute_module /usr/lib/apache2/modules/mod_substitute.so | |
#虚拟主机的指令* | |
SSLProxyEngine On | |
ProxyPass / https://username.wordpress.com/ | |
ProxyPassReverse / https://username.wordpress.com/ | |
ProxyPassReverseCookieDomain .wordpress.com yourdomain.sample | |
AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html text/xml | |
Substitute s|//username.wordpress.com|//yourdomain.sample|i | |
Header edit Location "username.wordpress.com" "yourdomain.sample" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment