WordPress.org

Ready to get started?Download WordPress

Forums

Social Login
[resolved] Server name and port in redirect (5 posts)

  1. Sithu Thwin
    Member
    Posted 2 years ago #

    I have setup my webserver as varnish -> nginx -> php-fpm.

    nginx is listening on port 8080 as backend server for varnish. varnish is front end webserver. I have configured port_in_redirect off and server_name_in_redirect off in nginx. But this plugin redirecting to nginx's domain and port in authenticated redirect.
    For example when I log in to http://www.domain.com. It redirect to domain.com:8080 . 8080 is only accessible on localhost. so user cannot login.

    http://wordpress.org/extend/plugins/oa-social-login/

  2. Claude
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    thank you for the bug report.
    We will have a look at it.

    In the meanwhile you can force the port to another value.
    Just open the file communication.php of the plugin and change the line 340 from

    $request_port = ((!empty ($_SERVER ['SERVER_PORT']) AND $_SERVER ['SERVER_PORT'] <> '80') ? (":" . $_SERVER ['SERVER_PORT']) : '');

    to

    $request_port = '';

    Regards,

  3. Trebour
    Member
    Posted 1 year ago #

    Hi did the code get changed?
    Im having this same issue but cant find the specified code to fix the issue as instructed above

    Regards

  4. Claude
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Trebour,

    the line is nox in the file toolbox.php.

    Regards,

  5. Trebour
    Member
    Posted 1 year ago #

    Ok great found it and its fixed the issue :)

    Many thanks

    However now its not logining the user, but it may be a nginx problem maybe not redirecting the login correctly, ill be mapping the domain later when im ready to swap servers, i think the social login is working as its registered the user.

    the site is

    http://dentalsfx.net/uk/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic