Search results

  1. N

    [Resolved] .htaccess redirect 301 issue

    >Therefore the redirect rule wouldn't apply to it? unfortunately, not apply, after test. however, RedirectMatch works well by my test: >redirect 301 /oldurl.php http://www.domain.com.au/newurl/ ==> RedirectMatch 301 /oldurl.php/? http://www.domain.com.au/newurl/ >Is this going to be fixed? I...
  2. N

    [Resolved] .htaccess redirect 301 issue

    I did local test with redirect 301 /oldurl.php /newurl/ in .htaccess. and confirmed the issue you reported. also tested redirect 301 /oldurl2 /newurl/ same result -- so not specific for .php files. while under apache, one redirect only: /oldurl.php ----> /newurl the workaround is redirect 301...
  3. N

    Site freezes when processing MYSQL operation

    search "sleep" in access log, see if there are requests with "sleep" in query string. if so, most likely sql-injection attack.
  4. N

    [Resolved] set cookie with rewrite rule

    I did more local tests. now in document_root/.htaccess only: this way is easier, and no need put rewriterules in httpd.conf's "<VirtualHost ...></VirtualHost>"
  5. N

    How to maximize Throughput and small static content traffic

    >But with 400-500 requests per second, load remains low (<1.00), but response sometimes is fast, most of times is slow. how did you measure fast/slow, during benchmark (400-550 reqs/s) ? how about "ab" benchmark ? for example, #ab -k -n 100000 -c 500 http://127.0.0.1/small_file.png can see...
  6. N

    Site freezes when processing MYSQL operation

    maybe the server is under sql-injection attack -- too many "Sleep" in sql process list. or something like that -- because of wrong php code. maybe you can simulate the behavior 1. in a test php script, say test.php, connect to mysql, and run "sleep" only 2. benchmark test.php, while access...
  7. N

    [Resolved] set cookie with rewrite rule

    tried following rewrite rule RewriteEngine On RewriteCond %{HTTP_COOKIE} !mycookiename RewriteRule ^.*(/|\.html)?$ - [CO=mycookiename:mycookievalue:.example.com:0:/] [L] within a <VirtualHost ...> </VirtualHost> section in apache's httpd.conf, works in both litespeed and apache. not sure if it...
  8. N

    Litespeed and wordpress comments

    the URL is too long. maybe it reach its hard limit : 8192 bytes. see lsws web admin -> Server -> Tuning -> Max Request URL Length (bytes): 8192 "Max Request URL LengthSpecifies the maximum size of a request URL. URL is the full text address used to access a server resource including the query...
  9. N

    How to maximize Throughput and small static content traffic

    the 1G NIC may reach its limit check value of lsws web admin -> Actions -> Real-Time Stats-> Http Out when 400-500 requests/second
  10. N

    ErrorDocument failing to load

    that's fine. you can ban it in .htaccess RewriteCond %{REMOTE_ADDR} ^1.1.1.1$ [OR] RewriteCond %{REMOTE_ADDR} ^2.2.2.2$ RewriteRule .* - [F,L] the customized 403 page will be returned for access from bad IPs. so only need update .htaccess when adding a new bad IP, which lsws restart is not...
  11. N

    [Resolved] ssi conditional not being evaluated

    I confirmed the new version has fixed the issue. to test, in .htaccess, add Options +Includes AddType text/html .shtml AddOutputFilter INCLUDES .shtml then rename the test file with .shtml extension.
  12. N

    [INFO] [HTAccess] - Does Not Fall Inside Current Context

    but the error message is different now. following /cgi-bin/ no longer exist in the log ? 12:00:51.226 [INFO] [HTAccess] [/home/public_html/cgi-bin/.htaccess:2188] Redirect URL [*path1*] does not fall inside current context [/cgi-bin/], ignore! now new message: 14:53:13.094 [INFO] [HTAccess]...
  13. N

    [Resolved] Getting same version update notifications but can't update

    please check: #cd /usr/local/lsws/autoupdate #cat platform #cat release maybe either platform or release has wrong content. it's safe to delete them and the issue should be gone. the 2 files will be re-generated automatically by lsws.
  14. N

    Config Litespeed with HHVM FastCGI

    so set request_timeout_seconds to a non-zero value like 5, 60 etc resolves the issue. Thanks for the update.
  15. N

    ErrorDocument failing to load

    here's Mental's case: 1. put bad IP in lsws web admin -> Server -> Security -> Denied List 2. expectation: when the bad IP access the web server (any domain on it), the server return customized 403 error html page. my comments: 1. when bad IP in server level "Denied List" access any of the...
  16. N

    Site load speed is too slow

    from the real-time stats graph (Q3.JPG), the load is 3.x, not high. >my cpu load is too high and website speed is too slow, specially when user enters data to database. can you be more specific about the issue. how high and how slow it is.
  17. N

    mod_rewrite problem(404 Not Found)

    change RewriteCond $1 !^(index\.php|index\.html|images|uploads) to RewriteCond %{REQUEST_URI} !^/(index\.php|index\.html|images|uploads) see if works. p.s. for RewriteRule ^(.+).html sections?id=$1 [nc] RewriteRule ^(.+).html article?id=$1 [L] not sure if the 2 lines ever works, especially...
  18. N

    Gzip on static and dynamic files are enabled but gtmetrix says no

    please give a URL of gtmetrix here or in private message. to get more information before giving any advice.
  19. N

    gtmetrix shows the keep-alive is not enabled for JS and WOFF files

    try on/off lsws web admin -> Server -> Tuning -> Smart Keep-Alive see if any difference
  20. N

    [Ask] Server Build Advice

    should be nobody:nogroup instead of nobody:nobody on Debian ? since you host single domain only, it should be ok to set public_html as nobody:nogroup and will able to write. regarding Exim, have no much experience with it. usually it just works.
Top