Search results

  1. S

    Conditional headers

    Nope. I am guessing, that anything else besides rewrite conditions is part of "Reads Apache's configuration files directly" feature.
  2. S

    Conditional headers

    Nope. I think OLS simply ignores "Header" clause.
  3. S

    setifempty alternative

    I know that you can set custom headers there, but it does not support setifmepty. I am asking whether there is an alternative approach I can use with OLS, that would simulate this somehow?
  4. S

    Conditional headers

    I know that, but I can't apply any conditions there, aside from directory root. And, to be honest, migrating a couple of dozens of rules from Apache into separate contexts, even if they rules were based on directories, seems like an extreme chore
  5. S

    Conditional headers

    Hm... Does it really read the headers from .htaccess, though? I tried just "Header set x-test-htaccess true" (for test purpose) and <IfModule headers_module> Header set x-test-htaccess true </IfModule> But the header was not added, even though, I know that .htaccess file was read, since to...
  6. S

    Conditional headers

    Well, it would have made sense to support that in the headers section directly, as well Will try using what we have, though. Thanks for the info.
  7. S

    Conditional headers

    Do I have to use them in an .htaccess file specifically? Because I've tried IF conditions in "Context" module's headers and it did not work: OLS generated headers with those names, instead. Are Litespeed's differences in expressions support documented somewhere?
  8. S

    Conditional headers

    Is there a way to set headers based on some condition? In Apache I could use <IF> statement or something like set Cache-Control "max-age=2592000,public" "expr=%{CONTENT_TYPE} =~ m#image/svg\+xml#i" but I do not see a way to do that in OLS. Or am I missing something?
  9. S

    "onsuccess" condition is not recognized

    "Header operations" tell that they support "condition" same as Apache's mod_headers. Apache's module supports "always" and "onsuccess" condition, but looks like OLS does not recognize "onsuccess" condition, instead creating "onsuccess" headers: Granted, in most cases using "always" should be...
  10. S

    setifempty alternative

    Hi! Does OLS have an alternative to "Header setifempty" directive possible in Apache?
  11. S

    Header merge works as append

    I am not sure if it's a bug or I am doing something incorrectly, but it looks like when I try to use "merge" for custom headers (through "Context" feature), instead of merging the headers, it appends the new values. Simplest example, which does work in Apache: I want to ensure that "Vary" header...
  12. S

    Custom Error Page: using script path

    "/httperror/404" is not a physical page, it's a page generated by "index.php", if the URL of the actual page is "/httperror/404" or if a 404-like error is triggered internally in the script. Custom error pages are already setup like shown below: With current setup, if I remove the custom page...
  13. S

    Custom Error Page: using script path

    Hi! I have a setup, where through rewrite rules on "/" context level I direct [almost] everything to index.php file, where I process the "route" in URL, that is "/fftracker/search/" for example will be processed by the main PHP script and content will be shown based on the logic designed...
  14. S

    Context: Matching a "dynamic" route

    Hi! I have a setup, where through rewrite rules on "/" context level I direct [almost] everything to index.php file, where I process the "route" in URL, that is "/fftracker/search/" for example will be processed by the main PHP script and content will be shown based on the logic designed...
Top