Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi,

    I’m not competent on WP with Nginx. But, i think it may be a rewrite rule problem. In your example, question mark is missing in url before ticket get parameter : “https://domain.com/ticket=xxxxxxxxxxxx-cas”.

    It should be like this :

    https://domain.com/?ticket=xxxxxxxxxxxx-cas”.

    Best regards.

    Thread Starter anfieldleung

    (@anfieldleung)

    Sorry there is a “?” in front of the ticket. I just deleted the “?” by mistake when modifying the URL before sent

    It is “https://domain.com/?ticket=xxxxxxxxxxxx-cas”

    Thread Starter anfieldleung

    (@anfieldleung)

    I found this error message in log

    5843#5843: *167 FastCGI sent in stderr: "PHP message: PHP Warning:  DOMDocument::loadXML(): Space required after the Public Identifier in Entity, line: 1 in /home/<WP server path>/wp_cassify_plugin.php on line 820

    There is a problem with CAS Server xml response.

    You can try to enable “dump last xml cas server response” option in debug settings.

    Then you try to connect. After that, close browser and re-auth with local admin wordpress account. In WP Cassify debug settings, you can show the last xml cas server response in textarea.

    You can also try this.

    In your wp-config.php :

    @ini_set(‘display_errors’,’Off’);
    @ini_set(‘log_errors’,’On’);
    // (Adapt path to your config)
    @ini_set(‘error_log’,’/var/www/your-website/phperrors.log’);

    In file classes/wp_cassify_plugin.php, at line 346, write this :
    error_log( print_r( $cas_server_xml_response, TRUE ) );

    Try to connect and then send me phperrors.log content.

    Thread Starter anfieldleung

    (@anfieldleung)

    Here you are

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>302 Found</title>
    </head><body>
    <h1>Found</h1>
    <p>The document has moved <a href="https://[my cas]/serviceValidate?ticket=ST-1245-ZfdSOdgBHOsMDbw1ZnA1-cas&service=https://[my WP]/wp-admin/">here</a>.</p>
    </body></html>

    Hi,

    Now, you’ve the answer. WordPress platform can’t join CAS Server to validate the ticket.

    Is it the same machine wich host wordpress blog and CAS server ?

    What’s configuration of your CAS Server (Tomcat behind Apache or NGINX, or Tomcat only in front) ? Have you enable something like Apache Mod Security ?

    I don’t know why your CAS Server make 302 redirect when WordPress try to join him.

    From my point of view, it seems to be a network problem with your specific configuration not a plugin bug.

    Best regards

    Thread Starter anfieldleung

    (@anfieldleung)

    Hi,

    The CAS is Tomcat behind Apache and we didn’t enable Apache Mod Security.
    The CAS is working fine with WP on Apache. So I think there is something to config in Nignx, do you have any suggestion how to do the configuration on Nginx?

    Unfortunately, i use only Apache config in my job. I’m not an Nginx Expert.

    So, Have you tried to make a wget on CAS home url from your WordPress host ?

    If you have also 302 redirect, i’m not sure but it may be have some problem with your Nginx configuration.

    It’s possible to see your nginx configuration file ?

    See that :https://serverfault.com/questions/612690/tomcat7-nginx-ssl-causes-redirect-loop

    Best regards.

    Thread Starter anfieldleung

    (@anfieldleung)

    It looks like our proxy or DNS cached. It is working now without any changes.
    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Nginx compatibility’ is closed to new replies.