-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid URL Prefix Error #309
Comments
Can you paste the debug logs here from when you see a failed request? |
If I trigger the WAF on purpose it throws this error:
I solved the invalid URL prefix error by executing the WAF at the end of the block. It seems like when the WAF executed at the beginning it ignored all the code below and tried to do a proxy_pass with a blank variable. It works all fine if the WAF is not triggered, but as soon as it is triggered the 500 error appears. For now I have set the 500 error page to the WAF deny page. But I do need a permanent solution to this, I can't push this into production. Thank You |
It seems lua-resty-waf is not installed correctly. How did you install this? |
I used luarocks to install it, using the command below.
|
Can someone help me resolve this issue? |
hello xemose, have you solve this problem? |
@xemose @V1og This error means the waf module cannot find the lua-aho-corasick library which should have been installed as libac.so to /usr/local/openresty/site/lualib (check the Makefile), most probably this step is not the issue, probably the issue is that you should specify |
Problem: The following error shows up when the waf is executed through
waf:exec()
. It was working before, but something changed and it now gives out a 500 internal server error.Error Log
2018/10/07 20:32:42 [error] 6830#0: *1 invalid URL prefix in "http://", client: 192.168.1.225, server: $http_host, request: "GET / HTTP/1.1", host: "test.beta:8080"
Edit: Found a more concise error log. There is a previous issue for this but there is no solution for it.
Installation Process: Used luarocks
Configuration:
The text was updated successfully, but these errors were encountered: