Search results

  1. N

    Litespeed charset problem

    https://httpd.apache.org/docs/2.4/mod/core.html#adddefaultcharset please try AddDefaultCharset utf-8 in .htaccess
  2. N

    Cache Header

    you can follow this apache document: http://httpd.apache.org/docs/current/mod/mod_headers.html#header in this case, for example, add Header add my-cache-control "max-age=900" in .htaccess or httpd.conf
  3. N

    Cache Header

    tested on a server, for cloudflare's "Cache Everything" feature, there is a "Browser Cache TTL" option. the available values: https://support.cloudflare.com/hc/en-us/articles/218411427 "Free, Pro, and Business customers can set TTLs ranging from 30 minutes to 1 year; Enterprise customers have...
  4. N

    Failed to start one instance.

    I think the error is related to "PHP suEXEC Max Conn" setting 1. increase it 2. watch real-time stats, when the error happen, see if WaitQ number is big (normally it's 0) 3. adjust lsws web admin->Server->Dynamic Requests/second = 1, may mitigate the error number
  5. N

    Failed to start one instance.

    is cloudlinux running ? maybe LVE limit too low when on busy time. please check and adjust LVE: Concurrent connections(EP) and/or Number of processes(nPROC)
  6. N

    Cache Header

    great tip ! never know this option before. will try and confirm its exact behavior later.
  7. N

    disalow url

    in general, I think no way since you have no control on that server. however, you can try following: run a javascript in every page to check the site's domain, if not yours, redirect.
  8. N

    Cache Header

    it's likely cloudflare remove or modify "cache-control:max-age" header, depending on your price plan with cloudflare. you can add another header like "my-cache-control:max-age=900", cloudflare won't modify it and just bypass, so you can see the customized header.
  9. N

    use litespeed cache only for non logged in users

    I think following rules are enough: <IfModule LiteSpeed> RewriteEngine on RewriteRule .* - [E=Cache-Control:no-cache] # Default cache for all pages RewriteCond %{HTTP_COOKIE} !^.*user_logged_in=yes.*$ [NC] RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed)$...
  10. N

    Question about CPU-upgrade config changes

    configuration file has no change at all. there is a master litespeed process running as root. for 1-CPU, will fork one litespeed worker, 2-CPU 2 workers, 4-CPU 4 workers ... and so on. you can think the configuration is for each worker, or each worker is independent
  11. N

    Rewrite rule against ddos ?

    just searched a bit more, you've a similar post before : https://www.litespeedtech.com/support/forum/threads/black-hole-with-litespeed.7599/
  12. N

    Rewrite rule against ddos ?

    please refer https://store.litespeedtech.com/store/knowledgebase.php?action=displayarticle&id=86 RewriteRule .* /empty.html [E=dontlog:1,E=nokeepalive:1,F] create an empty.html (0 byte) so that minimize http body size; donlog:1 so not log the request. > to stop answering the requst completly...
  13. N

    Increasing LSAPI_CHILDREN

    maybe it's from "PHP suEXEC Max Conn" ? show your settings of lsws web admin -> Server -> General -> Using Apache Configuration File
  14. N

    Increasing LSAPI_CHILDREN

    1-CPU: 120 LSAPI_CHILDREN as you set in https://www.litespeedtech.com/support/forum/attachments/screenshot_8-jpg.849/ then: 2-CPU: 120 x 2 = 240 4-CPU: 120 x 4 = 480
  15. N

    [Resolved] redirection

    happy to know... but there is a typo in one line: RewriteRule ^$ /page.html [R=301,R] should be RewriteRule ^$ /page.html [R=301,L] does RewriteRule ^$ /page.html [R=301,R] work well ?
  16. N

    WebP Support

    webp is an image format, like jpg / png. since it's a static file, litespeed won't cache it, just serve it directly. litespeed only cache dynamic page. just tested latest lsws 5.1.11, it can serve .webp well just like serve a jpg/png image. for web server to support webp, just need add an MIME...
  17. N

    [Resolved] redirection

    can you try: RewriteEngine On #DirectoryIndex index.php RewriteRule ^$ /page.html [R=301,R] RewriteRule ^page.html$ index.php
  18. N

    [Resolved] redirection

    following code should work: RewriteEngine On DirectoryIndex index.php RewriteRule ^page.html$ index.php [L]
  19. N

    How to block evil majestic bot

    in .htaccess, RewriteCond %{HTTP_USER_AGENT} majestic[NC,OR] RewriteRule .* - [F] can block it.
  20. N

    litespeed running but no website open

    please refer https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:admin:upgrade-notification?s[]=autoupdate "We normally wait a week or two to push it to autoupdate. Then your web server will show information about the available upgrade and send you an upgrade notification. After...
Top