Search results

  1. N

    Directory directive error

    please give a simple example rules in .htaccess, I'll show the "per server" rules. this will make the discuss easier. I believe general instruction is well documented in apache's site.
  2. N

    Directory directive error

    please refer apache's document: http://httpd.apache.org/docs/2.2/mod/core.html#directory "Context:server config, virtual host" Directory directive is not part of rewrite rules, so not work, it should be removed. also, rewrite rules here is "per server", while rewrite rules in .htaccess is "per...
  3. N

    [Resolved] Gzip

    I tried, following curl works: curl -o t1.html -i -H "Accept-Encoding: gzip ,deflate" http://blog.litespeedtech.com curl -o t2.html -i --compress http://blog.litespeedtech.com above t1.html/t2.html has "Content-Encoding: gzip" response header while curl -o t3.html -i...
  4. N

    Private vs Public Cache

    I just installed a bare wordpress 3.9.2 and tested cache function yesterday(for another trouble-shooting). here's the .htaccess the cache policy is: Enable Cache:No Cache Request with Query String:yes Cache Request with Cookie:Yes Cache Response with Cookie:Yes Ignore Request Cache-Control:Yes...
  5. N

    [Resolved] setlocale does not work for php as a suEXEC daemon

    beautiful result from strace. Thanks!
  6. N

    [Resolved] setlocale does not work for php as a suEXEC daemon

    the issue is because setlocale(LC_ALL, 'nl_NL')=false I did simple tests on local box, it's working well as on command line >setlocale does not work for php as a suEXEC daemon 1. does it work on non-daemon mode ? 2. does it work under apache ?
  7. N

    Using access control

    Hi, I think I've just got the whole picture of this case. the best solution should be: 1. lsws web admin -> Server -> General -> Use Client IP in Header:Yes 2. lsws web admin -> Server -> Security -> Access Control, revert back to default settings e.g,, Allowed List: ALL Denied List: (Not Set)...
  8. N

    Using access control

    I mimic above rules on local litespeed box, looks working -- if the 1.2.3.4T is allow list, even deny list is ALL, still can access from 1.2.3.4T so if you remove ALL from "Denied List", there should be no "403 Forbidden" ? and can you test on a simple static page, like /readme.html ? also be...
  9. N

    Using access control

    so: 199.27.128.0/21T 173.245.48.0/20T 103.21.244.0/22T 103.22.200.0/22T 103.31.4.0/22T 141.101.64.0/18T 108.162.192.0/18T 190.93.240.0/20T 188.114.96.0/20T 197.234.240.0/22T 198.41.128.0/17T 162.158.0.0/15T 104.16.0.0/12T 2400:cb00::/32T 2606:4700::/32T 2803:f800::/32T 2405:b500::/32T...
  10. N

    Using access control

    can you post the detail info here? maybe need put a trailing T to cloudflare's IPs
  11. N

    Using access control

    can you be more specific about "access control feature of litespeed"? here's link about how to have litespeed work with cloudflare: https://support.cloudflare.com/hc/en-us/articles/200170676-How-do-I-restore-original-visitor-IP-with-a-LiteSpeed-server-
  12. N

    [Resolved] Website unavailable when using Apache config

    I'd quote the answer here:
  13. N

    PHP / Mysql - Basic Questions

    same question in tickets -- I'd quota some reply from sales: also I took a quick look at CPVLab website. it is a typical php+mysql app. php performance is critical. then litespeed + lsphp may be the best choice, it outperform nginx + fpm + php. It looks like it's all dynamic content, cache...
  14. N

    Virtual Host Template and Redirects

    I thinl $VH_NAME is not supported in rewrite rules. for a list of supported variables, please refer: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond
  15. N

    [Resolved] Gzip

    I can log into your server to trouble shoot this issue if you provide the access through PM (or a conversation)
  16. N

    Configuring virtualhost template

    please refer https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:config:virtual-host-template
  17. N

    Access to context [/] is denied!

    I think php is running as user "fj398fifu3u8fh", so it's ok. but .htaccess and static file like readme.html is processed by litespeed process which running as nobody. so nobody must be able to read them under /var/www/vhosts/aspkin.com/httpdocs/shop/ #curl -I http://shop.aspkin.com/readme.html...
  18. N

    Access to context [/] is denied!

    this folder is ok. I think the problem is why permission is denied ? this is a linux issue, not related to any web server. need check the permission from /var to /var/www/vhosts/aspkin.com/httpdocs/shop
  19. N

    Access to context [/] is denied!

    what's the owner/group, permission ? #ls -ald /var/www/vhosts/aspkin.com/httpdocs/shop
Top