LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Performance Tuning

Reply
 
Thread Tools Display Modes
  #11  
Old 11-10-2008, 03:22 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
Quote:
Originally Posted by hadyabed View Post
I've never had a problem with those settings. Pretty sure they're the same settings mistwang recommended in one of his posts a while back.
-Hady Abed
Most web browsers open 30 or more connections to download a page and not to mention 15 seconds may not be enough time to load a page completely on a dialup connection.

What kind of sites do you have? For forums with many js, css, php, images, there should be many banned IPs.
Reply With Quote
  #12  
Old 11-11-2008, 08:43 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
It depends on the number of images linked from that page.
FireFox 3 is more aggressive on open new connections.
You should add "Expires header" to those static files, so the client only need to load them once for a while.

Remember, only count connections in ESTABLISHED state.
Reply With Quote
  #13  
Old 11-11-2008, 09:16 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
I set the Hard Limit to 100 today and so far, there is one banned IP. The person was using Opera to browse the coppermine gallery. I don't know if their connection is slow or what.

George, maybe there should be a grace period for Hard Limit too. I can't seem to find a good value.
Reply With Quote
  #14  
Old 11-11-2008, 02:41 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
I set expires headers for images, css, and javascript to 12 hours now. But, that will have no effect on new visitors loading the content for the first time.
Reply With Quote
  #15  
Old 11-13-2008, 11:00 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
I just noticed that litespeed admin panel shows the followiing under Expires Settings in General tab.

Code:
image/*=A604800, text/css=A604800, application/x-javascript=A604800
(these are default, I believe)

But, I have the following in /usr/local/apache/conf/httpd.conf

Code:
<IfModule mod_expires.c>
ExpiresActive On  
ExpiresByType image/gif A43200
ExpiresByType image/png A43200
ExpiresByType image/jpg A43200
ExpiresByType image/jpeg A43200
ExpiresByType text/css A43200
ExpiresByType text/javascript A43200
</IfModule>
What should I do now?

Can I write ExpiresByType image/* A43200 instead of listing each image type above? And, which is correct? text/javascript or application/javascript ?

Last edited by anewday; 11-13-2008 at 11:10 PM..
Reply With Quote
  #16  
Old 11-14-2008, 06:52 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
The configuration in httpd.conf will be used for Apache vhosts. Yes, you can use image/*, if the MIME type does not exist, you have set it explicitly.
You need to find out what MIME is used for ".js" and set expiring configuration accordingly.
Reply With Quote
  #17  
Old 11-14-2008, 08:15 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
If I import Apache vhosts, the /usr/local/apache/conf/mime.types file will be used? And the LS admin panel (/config/confMgr.php?m=serv&p=general&)t=SERV_MIME_TOP edits that file, right?
Reply With Quote
  #18  
Old 11-14-2008, 09:18 AM
miracle miracle is offline
Member
 
Join Date: Mar 2008
Posts: 25
Quote:
Originally Posted by anewday View Post
I set the Hard Limit to 100 today and so far, there is one banned IP. The person was using Opera to browse the coppermine gallery. I don't know if their connection is slow or what.

George, maybe there should be a grace period for Hard Limit too. I can't seem to find a good value.
The same is happening on my forums on topics with many images/attachments. If there is a grace period for hard limit, it would eliminate many banned IPs of legitimate users. Most of the IPs are using Opera, it seems to open many connections to download the files on a page.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:54 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.