🔔 🔔 🔔 Duyuru: 24. Yılımıza özel indirimler sizleri bekliyor ! Kampanya Kodu : TDATA2024 | Detaylı bilgi için tıklayınız.

Apache OPTIMIZATION


Apache OPTIMIZATION


Apache OPTIMIZATION

vi /etc/httpd/conf/httpd.conf
vi /usr/local/apache/conf/httpd.conf (cPanel)

===========================
# These can be set in WHM under ‘Apache Global Configuration’
Timeout 30
TraceEnable Off
ServerSignature Off
ServerTokens Prod
FileETag All

——————————————————————->
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
——————————————————————->

StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 256
MaxClients 150
MaxRequestsPerChild 1000

KeepAlive On
KeepAliveTimeout 5
MaxKeepAliveRequests 100

RewriteEngine on
RewriteMap LeechProtect prg:/usr/local/cpanel/bin/leechprotect
RewriteLock /usr/local/apache/logs/rewrite_lock

save and exit

/etc/rc.d/init.d/httpd restart

Bu cevap yeterince yardımcı oldu mu?

Diğer Dökümanlar