Dear forum members,
I am not much familiar with DirectAdmin and need to add a RewriteRule to proxy specific directories under a subdomain to another server.
I am using LiteSpeed v5.4 in which ProxyPass cannot be defined, so I am inserting my RewriteCond lines and RewriteRule in the httpd.conf file located in /usr/local/directadmin/data/users/user1/ (user1 is the main domain user) where the config is containing all the subdomains virtual hosts config.
I inserted my code inside the following tag under the desired virtual host.
<IfModule Litespeed>
CacheRoot lscache
</IfModule>
Everything works correctly until any changes are made to subdomains from DirectAdmin and the aforementioned config file gets rewritten by DirectAdmin.
Any help would be appreciated!
Regards
I am not much familiar with DirectAdmin and need to add a RewriteRule to proxy specific directories under a subdomain to another server.
I am using LiteSpeed v5.4 in which ProxyPass cannot be defined, so I am inserting my RewriteCond lines and RewriteRule in the httpd.conf file located in /usr/local/directadmin/data/users/user1/ (user1 is the main domain user) where the config is containing all the subdomains virtual hosts config.
I inserted my code inside the following tag under the desired virtual host.
<IfModule Litespeed>
CacheRoot lscache
</IfModule>
Everything works correctly until any changes are made to subdomains from DirectAdmin and the aforementioned config file gets rewritten by DirectAdmin.
Any help would be appreciated!
Regards