Skip to content

Instantly share code, notes, and snippets.

@codexss
Created September 16, 2016 16:35
Show Gist options
  • Save codexss/c4d51625a6e0992a086af2d9606f8724 to your computer and use it in GitHub Desktop.
Save codexss/c4d51625a6e0992a086af2d9606f8724 to your computer and use it in GitHub Desktop.
#全局指令
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