mod_headers.c is not working

#1
Hi,
I am trying to add the following code to the .htaccess but it is not working. I am using LScache plugin in Wordpress.
<IfModule mod_headers.c>
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=600, must-revalidate"
</FilesMatch>
</IfModule>
 

MrB

New Member
#3
Hi,
I'm seraching around openlite documentation and can not find is this is possible with Openlitespeed. Would like to set RequestHeader if condition is true
This is my nginx config which works fine.
set $var_x_real_origin '';
set $var_real_origin $http_origin;
if ($http_user_agent ~* (myUserAgent)) {
set $var_x_real_origin $http_origin;
set $var_real_origin 'https://www.THEGate.com';
}
proxy_set_header 'X-Real-Origin' $var_x_real_origin;
proxy_set_header 'Origin' $var_real_origin;

Thanks
 

Pong

Administrator
#4
You should create a separate thread since you are a different question. There is no way for condition match for such option on OLS. You may need to find an alternative way to achieve your goal.
 
Top