OpenLiteSpeed with DirectAdmin

OK, thanks. I could not replicate the issue on my end afterwards, so can't say for sure what was it caused by. If I see the same misbehavior again I will definitely file a bug report.

So far it looks fine.
 
If you have rewrite rules in .htaccess, they're read automatically :)
 
Access control list can be found in /usr/local/lsws/conf/httpd-accesscontrol.conf, just add all the CloudFlare IPs there, and don't forget to copy the config to /usr/local/directadmin/custombuild/custom/openlitespeed/conf, so that it wouldn't get overwritten. Another setting name is "useIpInProxyHeader 2". It can be added to /usr/local/lsws/conf/httpd-includes.conf which is not overwritten by CustomBuild :) Please let us know if you still have any questions on it.
 
Thank you, it works.
But still the question is how to activate the webadmin?
As well as the question of how to deny access to the file to all and allow certain? In .htaccess records "allow,deny" do not work
 
You may find accessDenyDir{} and accessControl{} examples in /usr/local/lsws/Example/html/httpd_config.conf. WebAdmin can be activated in /usr/local/lsws/conf/httpd-defaults.conf, but I strongly suggest not doing so for the reasons mentioned above :)
 
when I change the disableWebAdmin parameter to 0,
WebAdmin does not work when I delete this parameter, it does not work either.
netstat -na |grep 7080 and netstat -na |grep 7080 - no output
 
found a solution
cp /usr/local/lsws/admin/fcgi-bin/admin_php5 /usr/local/lsws/admin/fcgi-bin/admin_php
ln -s /usr/local/lsws/admin/html.open /usr/local/lsws/admin/html

and include /usr/local/lsws/admin/conf/admin_config.conf
 
Is it possible to use this in combination with CloudLinux (CageFS/...)?
 
Yes, it fully supports CageFS and components depending on it (PHP Selector).
 
What specific question/problem do you have with /usr/local/lsws/conf/httpd-lsrecaptcha.conf? Thank you!
 
I change in file httpd-lsrecaptcha.conf parametr enabled to 1
and in .htaccess push

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*
RewriteRule .* - [E=verifycaptcha]

then restart openlitespeed
but captcha dont work
 
Did you add recaptcha codes there? Anything in error log?
 
/usr/local/lsws/conf/httpd-lsrecaptcha.conf has the following lines:
Code:
#  siteKey                 Your_SITE_KEY
#  secretKey               Your_SECRET_KEY

They should be uncommented and real site/secret keys should be placed there.
 
Entered the keys, but does not work
Also tried to make these settings in the user's personal virtualhost, also does not work.
There is no captcha in the logs.
 
Please make sure you're running OpenLiteSpeed 1.5.2, as 1.4.x did not have this feature at all. If you suspect it's a bug, I'd suggest contacting OpenLiteSpeed on this.
 
two things

1. how can i access to admin web console via port 7080
2. lscache not working
 
Back
Top