Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/03/2008, 18:45
nuss
 
Fecha de Ingreso: febrero-2006
Mensajes: 22
Antigüedad: 18 años, 8 meses
Puntos: 0
Re: Como medir la capacidad de un servidor

Perdon por 2 post seguidos, pero no me alcanzaban los caracteres.

httpd.conf

Cita:

AccessFileName .htaccess


Timeout 5
KeepAlive Off

<IfModule prefork.c>
StartServers 4
MinSpareServers 3
MaxSpareServers 6
ServerLimit 100
MaxClients 150
MaxRequestsPerChild 0
RLimitCPU 10 20
#RLimitMEM 52428800 62914560
RLimitNPROC 5 10
</IfModule>


LoadModule evasive20_module /usr/lib64/httpd/modules/mod_evasive20.so

<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 30
DOSSiteCount 50
DOSPageInterval 5
DOSSiteInterval 10
DOSBlockingPeriod 3600
DOSBlockingPeriod 3600
#bots de google - rangos de ip
DOSWhitelist 66.249.65.*
DOSWhitelist 66.249.66.*
</IfModule>


#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
ServerRoot "/usr/local/apache2"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
# Example:
# LoadModule foo_module modules/mod_foo.so
LoadModule php4_module modules/libphp4.so
#

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>

User apache
Group apache

</IfModule>
</IfModule>

ServerAdmin [email protected]

#ServerName www.example.com:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot /home

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/home">


Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>





# ScriptAlias: This controls which directories contain server scripts.
#
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"

</IfModule>


#
# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

#
# DefaultType: the default MIME type the server will use for a document

DefaultType text/plain

<IfModule mime_module>
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
TypesConfig conf/mime.types

#
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
#
#AddType application/x-gzip .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

# For type maps (negotiated resources):
#AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
</IfModule>
NameVirtualHost 11.111.111.111:80


# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
#Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-perl .pl .p
AddType application/x-httpd-php .php4

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
<VirtualHost 11.111.111.111:80>
ServerName FFFFFFFFF.com
ServerAlias www.FFFFFFFFF.com
DocumentRoot /home/XXXXXXXX/public_html/english
ErrorLog /home/FFFFFFFFF/logs/error_log
CustomLog /home/FFFFFFFFF/logs/access_log combined
ScriptAlias /cgi-bin/ /home/FFFFFFFFF/cgi-bin/
<Directory "/home/XXXXXXXX/public_html/english">
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/FFFFFFFFF/cgi-bin>
allow from all
</Directory>
</VirtualHost>
<VirtualHost 11.111.111.111:80>
ServerName XXXXXXXX.com.ar
ServerAlias www.XXXXXXXX.com.ar
DocumentRoot /home/XXXXXXXX/public_html
ErrorLog /home/XXXXXXXX/logs/error_log
CustomLog /home/XXXXXXXX/logs/access_log combined
ScriptAlias /cgi-bin/ /home/XXXXXXXX/cgi-bin/
<Directory /home/XXXXXXXX/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/XXXXXXXX/cgi-bin>
allow from all
</Directory>
</VirtualHost>
<VirtualHost 11.111.111.111:80>
ServerName VVVVVVVVV.com.ar
ServerAlias www.VVVVVVVVV.com.ar
DocumentRoot /home/VVVVVVVVV/public_html
ErrorLog /home/VVVVVVVVV/logs/error_log
CustomLog /home/VVVVVVVVV/logs/access_log combined
ScriptAlias /cgi-bin/ /home/VVVVVVVVV/cgi-bin/
<Directory /home/VVVVVVVVV/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/VVVVVVVVV/cgi-bin>
allow from all
</Directory>
</VirtualHost>
<VirtualHost 11.111.111.111:80>
ServerName ads.XXXXXXXX.com.ar
ServerAlias www.ads.XXXXXXXX.com.ar
DocumentRoot /home/ads/public_html
ErrorLog /home/ads/logs/error_log
CustomLog /home/ads/logs/access_log combined
ScriptAlias /cgi-bin/ /home/ads/cgi-bin/
<Directory /home/ads/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/ads/cgi-bin>
allow from all
</Directory>
</VirtualHost>
<VirtualHost 11.111.111.111:80>
ServerName imagenes.XXXXXXXX.com.ar
ServerAlias www.imagenes.XXXXXXXX.com.ar
DocumentRoot /home/imagenes/public_html
ErrorLog /home/imagenes/logs/error_log
CustomLog /home/imagenes/logs/access_log combined
ScriptAlias /cgi-bin/ /home/imagenes/cgi-bin/
<Directory /home/imagenes/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/imagenes/cgi-bin>
allow from all
</Directory>
</VirtualHost>
<VirtualHost 11.111.111.111:80>
ServerName tracker.XXXXXXXX.com.ar
ServerAlias www.tracker.XXXXXXXX.com.ar
DocumentRoot /home/tracker/public_html
ErrorLog /home/tracker/logs/error_log
CustomLog /home/tracker/logs/access_log combined
ScriptAlias /cgi-bin/ /home/tracker/cgi-bin/
<Directory /home/tracker/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/tracker/cgi-bin>
allow from all
</Directory>
</VirtualHost>
<VirtualHost 11.111.111.111:80>
ServerName ddddddd.YYYYYYYYYYY
ServerAlias www.dddddddd.YYYYYYYYYYY
DocumentRoot /home/dddddddd/public_html
ErrorLog /home/dddddddd/logs/error_log
CustomLog /home/dddddddd/logs/access_log combined
ScriptAlias /cgi-bin/ /home/dddddddd/cgi-bin/
<Directory /home/dddddddd/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/dddddddd/cgi-bin>
allow from all
</Directory>
</VirtualHost>