Open brcontainer opened 7 years ago
According to the docs site:
RewriteRules {
* {
pattern = regex pattern same as Apache's
to = target format same as Apache's
qsa = false
redirect = 0 (default: off) | 302 | 301 | other status code
conditions {
* {
pattern = regex pattern to match
type = host | request
negate = false
}
}
}
}
The position you are putting the flag in is a glob. The name you assign does not get used. The whole point is to allow for a vector of conditions. In this case you are just labeling the entries in the vector as -d
, and -f
.
There is not support for those flags.
@mofarrell it's pseudo-code, is only a example :)
I would just like to know if there is any way to check the file exists within [conditions]
.
Not currently. The only option available for related to that is the global one. Adding logic to support that shouldn't be too hard. The rewrite system is pretty self contained. https://github.com/facebook/hhvm/blob/master/hphp/runtime/server/virtual-host.cpp
HHVM Version
3.18.1
Standalone code, or other way to reproduce the problem
I expected to ignore only files, the folders would still go through rewrite (note that the ini is "commented"):
Expected result
Ignore rewrite_rules from form pattern
I reviewed the documentation, but only found the "check_existence_before_rewrite", Is there any way to check for the existence of specific files using proxygen before applying rewrite?