Invalid web server response
-
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
-
Do you have any error logs (PHP and Litespeed)?
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.
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.
-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”.
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.
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
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.
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 ?)
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
F12key).The HTML code is likely the response body returned by your index.php page.
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.
You can test if the firewall is working well with this: https://webscanner.nintechnet.com/
Passed the test, except ID 63000 php object injection. How do i enable this also ?
In “Firewall Policies > Advanced Policies > Block serialized PHP objects in the following global variables”, enable “COOKIE”.
Thanks i will. And the cause was a plugin using admin-ajax for visitors. Disabling that plugin, the warning went away.
The topic ‘Invalid web server response’ is closed to new replies.