Support » Localhost Installs » wp-login POST to https but http on different port (not port 80)

Viewing 4 replies - 1 through 4 (of 4 total)
  • I just realised I have found

    define(‘FORCE_SSL_LOGIN’, true);

    in my wp-config.php file. So I can solve the login over HTTP which now works

    However if I do want to do it over SSL but keep the site on port 8080 I’m going to need to try maybe forcing port 80 to redirect to port 8080 for non SSL traffic.

    Hmm I can’t work out who to do that redirect because in fact my server will never “see” the port 8080 traffic since it’s listening on port 80 but seeing URLs with :8080 on them (NAT + port redirect on router).

    http://dev.example.com:8080 -> port redirect 192.168.0.8:80
    https://dev.example.com -> direct NAT 192.168.0.8:443

    Can I get this to work?

    WordPress doesn’t really work well over non-port 80s.

    Why can’t you use 80?

    fruey

    (@fruey)

    Just by the way, WordPress works fine on other ports (as long as you don’t want to use SSL for logins, so mainly only for dev environments) as long as you set siteurl and home in wp_options to the full URL (including port, e.g. “http://dev.example.com:8080”). Tested on WP 3.3.1

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp-login POST to https but http on different port (not port 80)’ is closed to new replies.