[wp-hackers] SSL Domain Mapping with WP Multisite

Dion Hulse (dd32) wordpress at dd32.id.au
Mon Jun 4 14:46:29 UTC 2012

I can't directly help, but since SSL is handled at the server layer,
there isn't much you need to do really..
Wildcard SSL certs are generally *.domain.com, or, you can get a ssl
cert that has multiple domains, ie. domain1.com, domain2.org, etc.
You may want to do something similar to WordPress.com, All mapped
domains are front-end only, and there's a *.wordpress.com SSL cert for
the admin area (in every case, xxxxx.wordpress.com for admin)

The only catch is that at the server level, you need to ensure that
all VirtualHost's for the domains map into the same common web
directory (And yes, If you're using Apache, I believe you'd need a
seperate VirtualHost for every domain so that you can define the
domains SSL certs).

Example for Apache:

Example for Nginx you'd do something similar (although, you can
probably use Variables in the config file so that you don't need so
many server defs):

Note, that if you're using PHP-FPM/Cgi, You'll need to add extra SSL
lines into your WordPress config so that it can detect the SSL-ness of
the site correctly (As it's basically acting as a Reverse-Proxy in
that case)

On 4 June 2012 23:40, SWORD Studios <info at swordstudios.net> wrote:
> I'm looking to host a couple hundred sites on a WordPress Multisite
> Network.  Each site will have it's own mapped domain.  I've done all this
> many many times.
> My new issue is that about a dozen of these sites need SSL to be compliant
> (with their industry manufacturers).  I'm having some real issues
> accomplishing https://domain.com as a mapped domain to these sites.
>  Everything I've read (some links below) makes it seem possible as long as
> you are using SNI or a WildCard SSL to support multiple ssl's on the same
> IP.
> I'm looking for a real solution to this problem.  I've spent hours reading
> many forum posts, articles, tutorials and everything seems to be
> theoretical.  I have yet to see anyone actual say "Yes I've done this and
> this is how I did it."   Has anyone actually accomplished this task?    If
> not can anyone provide me with instructions on how to move forward.
> Thank you in advance for any help.
> http://wordpress.org/support/topic/plugin-wordpress-mu-domain-mapping-ssl-and-mapped-domain
> http://wordpress.org/support/topic/plugin-wordpress-mu-domain-mapping-ssl-with-mapped-domain
> http://lists.automattic.com/pipermail/wp-hackers/2011-August/040649.html
> Jesse
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list