Saturday, November 13, 2010

Wordpress with HTTPS/SSL on a custom port

I wasted a few hours trying to configure Wordpress to run on a non-default (not 443) SLL port. Well, it looks it is impossible due to how the WP code is written. Switching from HTTP to HTTPS just replaces the 'http://' URL part with 'https://' part and the port is ignored. The developers assumed that SSL is always on port 443, which obviously can be a huge problem if you are willing to run a few WP with SLL on the same machine.

Playing with .htaccess can not do the trick either. At least I did not found how to do that.

2 comments:

Darryl Robinson said...

Did you ever resolve this? I can't even get it to work using the WordPress HTTPS plugin.

David Mail said...

No, I did not :(
Dropped it and did it differently