Search results

  1. L

    Configure PHP by Directory or File Error Using Rewrite Method

    if you are using rule like this RewriteRule ^test/.*$ - [H=application/x-httpd-lsphp70] it will match all the request to run as lsphp , even its png , jpg , or css , js ...etc , that .* matches everything. you will need a rewrite cond to check if it's PHP before redirect, or set...
  2. L

    What is the complete difference beetwen OpenLiteSpeed & LiteSpeed Enterprise? OLS vs LSWS

    Hi, by that means anything you did to .htaccess, will requires OLS restart to take effect. restarting it is simple as systemctl restart lsws or service lsws restart auto-load is something different , in older OLS , you will need to set in OLS to tell it to read htaccess file , with...
  3. L

    proxy to a backend web server (reverse proxy)

    https://forum.openlitespeed.org/threads/tracking-real-visitors-ip-address-in-access-log.4058/page-2#post-7813 in that rule set RewriteCond %{HTTPS} !=on RewriteRule (.*) https://DOMAINNAME/$1[R=301,L] #for https RewriteCond %{REQUEST_URI} !admin RewriteRule .* [E=Cache-Control: public...
  4. L

    proxy to a backend web server (reverse proxy)

    what do you mean ? if you want to set OLS for HTTPS , then just set it as normal OLS sites , SSL setting in listener or vhost setting and then set reverse proxy to Apache's HTTP port , but be aware, some sites , like wordpress, will also have its own HTTPS redirection if you set site URL to...
  5. L

    Tracking real visitors IP address in access log

    RewriteCond %{HTTPS} !=on RewriteRule (.*) https://DOMAINNAME/$1[R=301,L] #for https RewriteCond %{REQUEST_URI} !admin RewriteRule .* [E=Cache-Control: public, max-age=120] #if URL does not contain admin , then cache it for 120 seconds RewriteRule ^.(*)$ http://apachehttps/$1 [P,L] # if not...
  6. L

    Tracking real visitors IP address in access log

    Hi, OK , just tested you will have to it in one of the following 2 ways 1. use PHP header function , e.g. header('x-litespeed-cache: public, max-age=120'); to tell OLS to cache it. 2. use rewrite rule in OLS rewrite tab so your rule will be like HTTPS redirection rule LiteSpeed...
  7. L

    Tracking real visitors IP address in access log

    Ohhhhh, sorry I was mistaken. Rewrite rule in Apache htaccess may not work, it will require HTTP header to tell OLS what to cache. I only tested with WordPress on Apache + OLS, which the LSCWP plugin will send the HTTP header OLS needed. But didn't test other Let me do some test and...
  8. L

    Tracking real visitors IP address in access log

    the OLS should only have 2 rules 1. HTTPS redirection 2. proxy rule for Apache in that order , the order of rules are also important any other rules you should apply in apache's htaccess.
  9. L

    Tracking real visitors IP address in access log

    I am not sure what you mean ?
  10. L

    Tracking real visitors IP address in access log

    Hi, That rule can be added in apache's htaccess.
  11. L

    Basic auth protection to allow ACME Challenge

    could you please screenshot me the context main page and each individual context setting in webadmin console ?
  12. L

    Basic auth protection to allow ACME Challenge

    location /home/<site>/public_html this is wrong , you need to set it to /home/<site>/public_html/.well-known/ , assuming the well-known directory should be generated under that public_html
  13. L

    LScache crawlers causing error: Too many open files

    please try raise Max connection and max SSL connection in webadmin console , it should raise max open files accordingly.
  14. L

    Bug in Litespeed cache plugin

    Hi, I do see x-litespeed-cache hit header , do you still have problem to get it cached or any other issue ? Best regards,
  15. L

    LScache crawlers causing error: Too many open files

    Hi, 86400 is 1 days , so you could try clean up files that is old than 24 hours , or 25 hours to make it safe.
  16. L

    LScache crawlers causing error: Too many open files

    what about the /usr/local/lsws/cachedata ? how many files inside of that ? my guess is that , even the cache is expired or purged , since the file is still there , it's still mapped with OLS process, so if you have a huge number of cached file there , might trigger that error. I can not...
  17. L

    LScache crawlers causing error: Too many open files

    Hi, Could you please check how many files/inodes that cachedata directory has ? Best regards,
  18. L

    Manage multiple servers with same domain name server (DNS)

    Hi, You can you want to use vps01 as nameserver to manage the domains that are hosting on vps02 ? Best regards, ---- I read the same question on DO forum , from that post , you mean you want to have multiple server use same DNS record for ns1/2.itsme.com ?
  19. L

    Basic auth protection to allow ACME Challenge

    please check in webadmin console , and make sure well-known context is ABOVE the / context
  20. L

    phpmyadmin not working in Google Cloud's openlitespeed-wordpress Image

    Hi, OK , thanks for result. we will run more test and update the doc. Do you have any other issues beside script ?
Top