# 20-example.org-ssl # by Juergen Kreileder # See http://blog.blackdown.de/2005/05/18/securing-wordpress-admin-access-with-ssl/ NameVirtualHost *:443 ServerAdmin webmaster@example.org ServerName example.org SSLEngine On # The client must provide a certificate SSLVerifyClient require # which is certified by SSLCACertificateFile /etc/ssl/certs/example-ca.pem # This server's cert and private key SSLCertificateFile /etc/apache2/ssl/example-org.cert SSLCertificateKeyFile /etc/apache2/ssl/example-org.key # Proxy requests from everyone (who presented a valid certificate) Order allow,deny Allow from all # to the 10-blog server ProxyPass / http://example.org/ ProxyPassReverse / http://example.org/ # Disable compression -- un-comment this if you use WP's gzip option #RequestHeader unset Accept-Encoding # Enable filtering to fix absolute URLs SetOutputFilter proxy-html # Don't add trailing slashes to ProxyHTMLURLMap! ProxyHTMLURLMap http://example.org https://example.org # The doctype. WP uses XHTML 1.0 Transitional by default ProxyHTMLDoctype XHTML Legacy # If your blog is XHTML 1.1 compliant then use # ProxyHTMLDoctype "" XML # Whether to fix URLs in scripts too, only enable this if you # really need it ProxyHTMLExtended Off # If you enable it, you might want to un-comment the next line # ProxyHTMLStripComments Off ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn LogFormat "%h %v %t %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedssl CustomLog /var/log/apache2/access-ssl.log combinedssl ServerSignature On