martinrusev
4/24/2015 - 8:45 AM

Minimalistic Apache Config

Minimalistic Apache Config

ServerType standalone
HostnameLookups off
User www
Group www
PidFile /tmp/httpd.pid
ServerSignature Off
UseCanonicalName Off
Timeout 50
KeepAlive On
MaxKeepAliveRequests 40
KeepAliveTimeout 5
MinSpareServers 10
MaxSpareServers 15
StartServers 5
MaxClients 256
MaxRequestsPerChild 100
ServerName local.apache
Listen *:81
ExtendedStatus On
DocumentRoot /var/www/apache
AddHandler cgi-script .cgi
DirectoryIndex index.html
<Directory />
	AllowOverride None
	order deny,allow
	deny from all
</Directory>
#UserDir public_html
<Directory /var/www>
	Options All
	AllowOverride None
	order deny,allow
	allow from all
</Directory>
<Location /server-status>
   SetHandler server-status
   order deny,allow
   deny from all
   allow from 192.168
</Location>