If the connection start with www, then it won't mach "RewriteCond %{HTTP_HOST} !^www." and will skip "RewriteRule ^(.*)$ https://www.%{SERVER_NAME}/$1 [L,R=301]"
Hi,
It should works on WordPress site, did you restart php yet?
killall -9 lsphp
PHP --version shows 7.3.17 is normal, because it has a softlink to lsphp73. Feel free to use follow command to link php74
ln -sfn /usr/local/lsws/lsphp74/bin/php /usr/bin/php
Please keep php73 exist
Best,
Eric
Any more error shows if you run follow commands?
/usr/local/lsws/bin/lswsctrl stop
/usr/local/lsws/bin/lswsctrl start
Any output from ps?
ps axu | grep -i http
Hi,
I installed the docker desktop version on my windows NB and ran the openlitespeed-docker-env solution, all went well. Did not change anything yet.
Please see below image that I can visit phpmyadmin (https://localhost:8443), also I can visit openlitespeed web admin (https://localhost:7080)...
https://stackoverflow.com/questions/63873274/cors-policy-issues-regarding-fonts-on-aws-cloudfront
OLS doesn't read .htaccess for Header directive, you need to use Context way openlitespeed.org/kb/how-to-set-up-custom-headers
Hi,
Are you using https://github.com/litespeedtech/ols-docker-env?
I am not so sure about dockerstation, can you find any docker-machine ip from that docker tool? then you can try to visit https://docker-machine:7080 instead of localhost IP
Check if you can edit in Manual mode?
If you scroll down the manual page, can you see
accessControl{
allow ALL
}
If so, update it to
accessControl {
allow ALL, 103.21.244.0/22T, 103.22.200.0/22T, 103.31.4.0/22T, 104.16.0.0/12T...
No problem, happy to help.
By the way, we would appreciate if you can left us a the positive feedback on Google https://t.co/YhmP3MFl4f?amp=1
Thank you in advance :)
Here's the example log I saw when I clicking the suspend button from web admin
tail -f /usr/local/lsws/logs/error.log
2020-09-10 01:49:12.117329 [NOTICE] [LocalWorker::workerExec] VHost:_AdminVHost suExec check uid 997 gid 33 setuidmode 2.
2020-09-10 01:49:12.117467 [INFO]...
Hi,
I tried v1.6.15 no issue. Then upgrade to v1.7.4, tried it again, still no issue. No issue here means no need to restart web server.
If you feel it's a bug and reproducible, please submit a ticket to bug@litespeedtech.com
Correct me if I am wrong, I guess the config was generated by aapanel so you can not write anything via OLS config. You might want to contact aapanel see if they have an option for user to whitelist IP on OLS config.
Hi,
a2 commands is for apache only.
Well, you can also update the openlitespeed config directly, or even a shell command to change it. But there's no existing script/module like a2disconf/a2enconf for OLS.
Best,
Eric
1. https://docs.litespeedtech.com/cloud/images/wordpress/#web-server-control-panel-access
2. Sure, if you don't want it at all. rm -rf /var/www/phpmyadmin/, it won't affect wordperss.
To add extra headers, check https://openlitespeed.org/kb/setting-up-cors-on-openlitespeed/.
About PHP version, you can find the php.ini file and set expose_php = Off. FYI, lsphp should be off by default.
Hi,
How about
RewriteCond %{HTTP_HOST} ^12\.34\.56\.789$
RewriteRule ^(.*)$ http://www.domainname.com/$1 [L,R=301]
Remember to restart web server
service lsws restart
Best
Hi,
Check doc here https://docs.litespeedtech.com/cloud/images/wordpress/#how-do-i-secure-phpmyadmin.
You can 1. change URL, 2. strict IP or 3. password required.
Best,
Eric