items tagged with apache
Written By: Administrator
Section: Internet www
Category: Apache
2007-02-25 22:56:43
![]() | Since I am facing performance problem due to the load of visitors and a badly configured server, I decide today to document my findings in this new series of articles. As soon as PHP run as FastCGI and no more inside an Apache module (mod_php4.so is not multi threaded), You should be able to switch the default MPM setting of Apache from MPM prefork to MPM worker. So, what's the difference between prefork and worker? Quoting from the Apache MPM Prefork page: http://httpd.apache.org/docs/2.0/mod/prefork.html MPM Prefork implements a non-threaded, pre-forking web server that handles requests in a manner similar to Apache 1.3. And for the Apache MPM Worker says: http://httpd.apache.org/docs/2.0/mod/worker.html MPM Worker implements a hybrid multi-process multi-threaded server. By using threads to serve requests, it is able to serve a large number of requests with less system resources than a process-based server. Server: Strato (www.strato.de) Operating system: SuSE / openSuSE Requirements: root access and basic Unix knowledge |
Read More About Speed Up Your Apache Server Running PHP...
Written By: Administrator
Section: Internet www
Category: Apache
2007-09-30 20:18:43
This module controls the setting of the Expires
HTTP header and the max-age directive of the
Cache-Control HTTP header in server responses. The
expiration date can set to be relative to either the time the
source file was last modified, or to the time of the client
access.
These HTTP headers are an instruction to the client about the document's validity and persistence. If cached, the document may be fetched from the cache rather than from the source until this time has passed. After that, the cache copy is considered "expired" and invalid, and a new copy must be obtained from the source.
How to activate mod_expires.so
# vi /etc/apache2/conf.d/mod_expires.conf
config is rough right now, but it is better than nothing,put the following in the file
LoadModule evasive20_module /usr/lib/apache2/mod_expires.so
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
#ExpiresByType text/html "access plus 1 month 15 days 2 hours"
#ExpiresByType image/gif "modification plus 1 month"
#ExpiresByType image/png "modification plus 1 month"
#ExpiresByType image/jpg "modification plus 1 month"
#ExpiresByType text/css "access plus 1 month 15 days 2 hours"
#ExpiresByType text/javascript "access plus 1 month 15 days 2 hours"
</IfModule>
You can also set the expire header by type, but it wa snot working in my case, that is why I use the ExpiresDefault directive
Written By: Administrator
Section: Internet www
Category: security
2006-08-30 23:19:26
This are my mod_evasive settings:
LoadModule evasive20_module /usr/lib/apache2/mod_evasive20.so
<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600
DOSEmailNotify This e-mail address is being protected from spambots. You need JavaScript enabled to view it
</IfModule>
And this is a small documentation I've forget to add in the previous article:
- DOSHashTableSize: is the size of the table of URL and IP combined. The greater this setting, the more memory is required for the look up table, but also the faster the look ups are processed. This option will automatically round up to the nearest prime number.
- DOSPageCount: is the number of same page requests from the same IP during an interval that will cause that IP to be added to the block list.
- DOSSiteCount: is the number of pages requested of a site by the same IP during an interval which will cause the IP to be added to the block list.
- DOSPageInterval: Interval for the 'DOSPageCount' threshold in second intervals.
- DOSSiteInterval:Interval for the 'DOSSiteCount' threshold in second intervals.
- DOSBlockingPeriod: is the time the IP is blacked (in seconds
- DOSEmailNotify: can be used to notify by sending an email everytime an IP is blocked
- DOSSystemCommand: is the command used to execute a command when an IP is blocked. It can be used to add a block the user from a firewall or router.
- DOSWhiteList: can be used to whitelist IPs such as 127.0.0.1
Read More About 1 Week Of Mod_evasive Some Nasty Bots Get Blacklisted...
Written By: Administrator
Section: Internet www
Category: security
2006-08-21 19:32:50
![]() | ModSecurityTM is an open source intrusion detection and prevention engine for web applications (or a web application firewall). Operating as an Apache Web server module or standalone, the purpose of ModSecurity is to increase web application security, protecting web applications from known and unknown attacks. from http://www.modsecurity.org/ |
Installing mod_security as DSO is easier, and the procedure is the same for both Apache branches. First unpack the distribution somewhere (anywhere will do, I copy the .c files in my home),
| # cd # wget http://www.modsecurity.org/download/mod_security-1.9.4.tar.gz # tar -zxfv mod_security-1.9.4.tar.gz # cd mod_security-1.9.4/apache2 |
and compile the module with:
| apache1 | apache2 |
| /usr/local/psa/admin/bin/apxs -cia ~/mod_security.c | /usr/sbin/apxs2 -cia ~/mod_security.c |
Read More About Adding Mod_security To Better Protect Your Webserver...
Written By: Administrator
Section: Java
Category: Apache Ant
2005-02-04 20:12:13
Read More About Ant Scripts How To......
There are 28 items tagged with apache. You can view all our tags in the Tag Cloud



















