OpenLiteSpeed with DirectAdmin

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,870
Location
GMT +7.00
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.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,340
Location
LT, EU
If you have rewrite rules in .htaccess, they're read automatically :)
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,340
Location
LT, EU
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.
 

ultrasparc

Verified User
Joined
Jun 14, 2008
Messages
14
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
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,340
Location
LT, EU
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 :)
 

ultrasparc

Verified User
Joined
Jun 14, 2008
Messages
14
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
 

ultrasparc

Verified User
Joined
Jun 14, 2008
Messages
14
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
 

iworx

Verified User
Joined
Nov 21, 2006
Messages
56
Is it possible to use this in combination with CloudLinux (CageFS/...)?
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,340
Location
LT, EU
Yes, it fully supports CageFS and components depending on it (PHP Selector).
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,340
Location
LT, EU
What specific question/problem do you have with /usr/local/lsws/conf/httpd-lsrecaptcha.conf? Thank you!
 

ultrasparc

Verified User
Joined
Jun 14, 2008
Messages
14
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
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,340
Location
LT, EU
/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.
 

ultrasparc

Verified User
Joined
Jun 14, 2008
Messages
14
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.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,340
Location
LT, EU
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.
 

tong6462

New member
Joined
Oct 12, 2018
Messages
2
two things

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