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
H2O.next.call(env) breaks with too many paths #2207
Comments
@utrenkner I couldn't reproduce Aside from that, it's odd that the behavior depends on the number of path entries. If it's possible, would you mind sharing your whole configuration to see deeper into the problem? |
@i110 Thank you for your reply. Indeed, I should have just reused I was able to come up with a very simple configuration, which demonstrates how to trigger the problem. h2o.conf (just the host section)
/usr/local/etc/h2o/purgeall_cache.rb (it usually looks for a certain header field and if it finds it, issues a http_request to a URL which triggers the purging of a cache, there - for the test/demo it is irrelevant):
This works! But if I add another path, e.g.
I get an Internal Server Error. The error log then says:
Why would that happen? Is there anything I could change to make it work, or is it a bug? |
Refiled this as a bug report. |
I have a h2o.conf with various paths. One is for the
/wp-admin
directory of a WordPress installation which gets reproxied:This works fine - until I add one more path to the host config. No matter what it contains, it breaks the MRuby line
H2O.next.call(env)
. E.g. adding a/robots2.txt
file, breaks it:A browser request to e.g.
https://www.example.test/wp-admin/css/login.min.css
is not answered - with no entry in either the access or error log.After many tests, it seems as if only the number of path-entries triggers the problem. I deleted some paths and added others without any problem. But always at the same number of paths,
H2O.next.call(env)
stops working. Any call to the/wp-admin
directory fails.Other paths are not affected and continue to function as intended.
Any ideas as to why this problem shows up? Any work-around?
The text was updated successfully, but these errors were encountered: