rpm -qa httpd (will display the package details if available) ex: httpd-2.2.15-29.el6_4.x86_64
/usr/sbin/httpd command path /etc/httpd httpd root path /etc/httpd/conf Main config path /etc/httpd/conf.d Additional config path /etc/httpd/logs Link pointed to httpd log & error log
access_log All access details error_log All Error Details
To re-load the config/modules
service httpd reload
To start the httpd service
service httpd start
To stop the httpd service
service httpd stop
To restart the httpd service
service httpd restart
To check the status of the service
service httpd status
ServerRoot Default Root location of httpd PidFile id of the initial httpd server;Because apache will create by default additional child process to handle traffic DocumentRoot File System Root Directory
Number of Server instances needs to be started can be set up in the below section.
<IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 </IfModule> # 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
<DirectoryMatch "^/www/(.+/)?[0-9]{3}">
would match directories in /www/ that consisted of three numbers.
Order deny allow allow from all deny from 192.168.101.100
the expectation is to deny only from 192.168.101.100. But it will allow all people. Because we gave deny at first, allow later. So allow will over write deny order
<Location /server-info> SetHandler server-info Order deny,allow Deny from all Allow from 192.168.227.1 </Location>