Portal Home > Knowledge Base > Apache


Choosing Apache PHP handler
An Apache handler, in general, defines the action to be performed when a file is called. An...
Configuring Apache in httpd.conf and WHM
The main configuration file for Apache, httpd.conf, can be found on your server in...
Creating URL redirects via cPanel
You can create URL redirects via cPanel, by logging in to cPanel and going to "Domains" >...
Custom error pages
To use your own custom error pages that will replace the default Apache error pages: You can...
Finding out the Apache version on a server
To find out what is the Apache version currently installed on your server, you can use SSH to...
Increasing the maximum number of web connections in Apache?
To increase the maximum number of simultaneous requests that will be served by Apache, you can go...
Module Magic Number (MMN)
Module Magic Number is a constant defined in the Apache source code that is associated with...
Redirecting non www to www URL with .htaccess
To create a permanent redirect (301) in .htaccess from a non www URL to a www URL, you can add...
Restarting Apache
To restart Apache via SSH, type the command: service httpd restart To restart Apache via WHM,...
The MaxRequestsPerChild directive
The MaxRequestsPerChild directive sets the limit on the number of requests that an individual...
Useful Apache SSH commands
The following are useful Apache SSH commands: httpd start Start the Apache httpd daemon. Gives...
Using the Allow/Deny directives
You can add the Allow/Deny directives to a .htaccess file to allow or deny access to the...
Using the KeepAlive directive
The Keep-Alive extension to HTTP/1.0 and the persistent connection feature of HTTP/1.1 provide...
Viewing Apache access logs
There are few ways to view information from Apache's access logs about website visitors. In...
Viewing Apache error log
The Apache error log for the entire server can be viewed with root access (either via SSH, SFTP...
What is MIME-type?
MIME-type describes the type of document being transmitted. Its name comes from that fact that...
What is mod_alias?
The directives contained in mod_alias allow for manipulation and control of URLs as requests...
What is mod_cgi?
With mod_cgi, any file that has the handler cgi-script will be treated as a CGI script, and run...
What is mod_expires?
Apache's mod_expires controls the setting of the Expires HTTP header and the max-age directive of...
What is mod_rewrite?
Apache's mod_rewrite uses a rule-based rewriting engine (based on a regular-expression parser) to...

Powered by WHMCompleteSolution