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

  1. Sithu Thwin
    Posted 4 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.


  2. Claude
    Plugin Author

    Posted 4 years ago #


    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']) : '');


    $request_port = '';


  3. Trebour
    Posted 3 years 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


  4. Claude
    Plugin Author

    Posted 3 years ago #

    Hi Trebour,

    the line is nox in the file toolbox.php.


  5. Trebour
    Posted 3 years 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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Social Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic