Hello,
Searching for syntax information on how to add rewrite rules using a OLS native format within a virtualHost. So I want to adapt:
Currently using this block:
My very concern is about a need to restart OLS in case of using `context /xmlrpc.php` to get it working for a new WP installation. And I believe with rewrite rules we can avoid the need to restart OLS.
Another concern is about keeping error logs clear from messages like
I guess I need to adjust the following block
within a virtualHost with my rules. But what syntax should I use. I don't find any example even here: https://www.litespeedtech.com/docs/webserver/config/rewrite
Regards,
Alex.
Searching for syntax information on how to add rewrite rules using a OLS native format within a virtualHost. So I want to adapt:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(xmlrpc\.php|wp-trackback\.php) - [F,L,NC]
</IfModule>
Code:
context /xmlrpc.php {
accessControl {
deny *
}
}
My very concern is about a need to restart OLS in case of using `context /xmlrpc.php` to get it working for a new WP installation. And I believe with rewrite rules we can avoid the need to restart OLS.
Another concern is about keeping error logs clear from messages like
Code:
[ERROR] [config:server:vhosts:vhost:example.net-443:context:/xmlrpc.php] Path for context location is invalid: /home/example/domains/example.net/public_html/xmlrpc.php
Code:
rewrite {
enable 1
autoLoadHtaccess 1
}
Regards,
Alex.