Search results

  1. S

    Content-Type charset and compression

    I have an issue with several MIME types, for which I want to set charset in their respective Content-Type header. One of them is regular "image/svg+xml". It looks like the only way to apply charset to the header is to manually modify mime.properties file so that it will have a line like svg...
  2. 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?
  3. 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...
  4. S

    setifempty alternative

    Hi! Does OLS have an alternative to "Header setifempty" directive possible in Apache?
  5. 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...
  6. 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...
  7. 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