• Resolved dimal

    (@dimalifragis)


    Hi.

    I have several problems with the plugin, with WAF and also FULL WAF mode. I get many “invalid web server response” and also “error 0”. Both with web server response something.

    I use LiteSpeed webserver without any problems for years now.

    Any ideas how i can find what is wrong and then solve it ?

    Thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Do you have any error logs (PHP and Litespeed)?

    Thread Starter dimal

    (@dimalifragis)

    I have no access to Litespeed error log (shared hosting plan). As for PHP, you mean debug log ?

    Also in Live log listings, i see all kind of html code … and i guess it is not normal.

    Thread Starter dimal

    (@dimalifragis)

    I would like to add also that Live view doesn’t work right in WAF mode (doesn’t show all the traffic), and those strange html code is showing in FULL WAF mode.

    Plugin Author nintechnet

    (@nintechnet)

    -Enable WP_DEBUG in your WordPress wp-config.php:
    Search for: define('WP_DEBUG', false);
    Replace with: define('WP_DEBUG', true);
    -Enable WordPress debug log too. Add this line below:
    define( 'WP_DEBUG_LOG', true );

    The log (if any) will be located in “/wp-content/debug.log”.

    Thread Starter dimal

    (@dimalifragis)

    It is already like this but the log is empty (some other undefined notices not from your plugin).

    Still i will leave it for a day or two. And update here.

    Thread Starter dimal

    (@dimalifragis)

    Here is the exact error in Live Log :

    Error: The HTTP server returned the following error code: 0
    Error: Cannot find your log file. Try to reload this page.

    No errors in debug.log

    Plugin Author nintechnet

    (@nintechnet)

    Did you check in the “Firewall Log” page too?

    What seems to happen is that when the Live Log sends an AJAX request to your site index.php file, your server return a “0” code, not a “200 OK”, hence the error.

    Thread Starter dimal

    (@dimalifragis)

    Check the Firewall log for what ? I sure can, if i know what to look for.

    When Live log sends and Ajax ? The live log can work right for hours and all of a sudden i get the error and the live log becomes disabled.

    Anyway, is that a problem of Live Log view ? Or that means some other problem also ? Because i don’t really care about Live log but i care if something else -not visible- is not working right.

    Thanks

    (also why i also get pure html code from pages sometimes ?)

    Plugin Author nintechnet

    (@nintechnet)

    When you get the error, check the firewall log to see if there’s anything that was written to it at that time. I don’t think you’ll find anything but it’s worth checking.

    You wrote in another post that you were using CIDRAM. Did you try to disable it when using Live Log?

    When enabled, Live Log sends a POST request to your index.php page every N seconds (N == “Refresh rate” option below the textarea field). The HTTP server should respond “200 OK”. You can see that from your browser “network console” (press the F12 key).

    The HTML code is likely the response body returned by your index.php page.

    Thread Starter dimal

    (@dimalifragis)

    Well there is NO time stamp in your Live stream when the error is logged, so i can’t compare with the error log. Maybe you should include a timestamp along with the error.

    Yes, CIDRAM is completely disabled since i can’t be sure that Ninja Firewall is working right for me having also a second php script. So all the errors are without CIDRAM or anything.

    I will see how this goes the next weeks.

    Thanks for your prompt replies and help.

    Plugin Author nintechnet

    (@nintechnet)

    You can test if the firewall is working well with this: https://webscanner.nintechnet.com/

    Thread Starter dimal

    (@dimalifragis)

    Passed the test, except ID 63000 php object injection. How do i enable this also ?

    Plugin Author nintechnet

    (@nintechnet)

    In “Firewall Policies > Advanced Policies > Block serialized PHP objects in the following global variables”, enable “COOKIE”.

    Thread Starter dimal

    (@dimalifragis)

    Thanks i will. And the cause was a plugin using admin-ajax for visitors. Disabling that plugin, the warning went away.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Invalid web server response’ is closed to new replies.