|
|

11-10-2008, 03:22 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 729
|
|
Quote:
Originally Posted by hadyabed
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.
|

11-11-2008, 08:43 AM
|
|
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.
|

11-11-2008, 09:16 AM
|
|
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. 
|

11-11-2008, 02:41 PM
|
|
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.
|

11-13-2008, 11:00 PM
|
|
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..
|

11-14-2008, 06:52 AM
|
|
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.
|

11-14-2008, 08:15 AM
|
|
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?
|

11-14-2008, 09:18 AM
|
|
Member
|
|
Join Date: Mar 2008
Posts: 25
|
|
Quote:
Originally Posted by anewday
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:54 PM.
|
|