If you proxy to Apache, doesn't that mean Apache needs to handle the PHP request?
For general OLS, you can set the handler via the web admin. See https://docs.openlitespeed.org/configuration#set-up-script-handlers-at-the-server-level for more information.
Sure, because OpenLiteSpeed supports only rewrite rules in .htaccess file, whereas, LSWS supports all rules.
See editions: https://www.litespeedtech.com/products/litespeed-web-server/editions
It will be released in the next few days. If you want to try the binary, you could use the following command to upgrade it.
/usr/local/lsws/admin/misc/lsup.sh -v 1.7.19
I tried the same settings, and the PHP env variable works in my test.
Added "X_DMC_USR=11111" to the environment.
Test script
<?php
foreach($_SERVER as $key => $value){
echo "<b>$key:</b> $value<br>\n";
}
Browser displays
X_DMC_USR: 11111
PATH: /bin:/usr/bin
HTTP_ACCEPT:...
It will be released in the next few days. If you want to try the binary, you could use the following command to upgrade it.
/usr/local/lsws/admin/misc/lsup.sh -v 1.7.19
Because OLS v1.7.19 package is not ready yet, if you want to try the binary, you could use the following command to upgrade it.
/usr/local/lsws/admin/misc/lsup.sh -v 1.7.19
For openlitespeed, the browser cache is controlled by the server, please go to openlitespeed web console > Server Configuration > General > Expires Settings and add type from there.