← ServerPilot Docs

Apache

Available Apache Modules

The following is a list of Apache modules enabled by default in ServerPilot's Apache builds.

Customizing the Apache Configuration

Careful! We can't provide support for customizations or for any errors, downtime, or vulnerabilities you introduce through customizations. Unless you're absolutely sure about what you're doing, you should stop now!

What Is a .htaccess File?

A .htaccess file allows you to control the behavior of the Apache web server through safe and simple customizations.

How to Use .htaccess Files

You can control the behavior of the Apache web server by creating a file named .htaccess in your app's web root directory.

How to Create a 'cgi-bin' Directory

A cgi-bin folder can be used to enable support for legacy CGI scripts. When you enable a cgi-bin folder, any executable program in that directory can be requested.

How to Enable the Apache Server Status Page

The Apache status module, commonly known as mod_status or server-status, provides information about the requests Apache is serving and has recently served.

How to Use Clean URLs

Many developers prefer to use clean URLs like these in their apps: http://example.com/profiles/foo rather than URLs like the following that include the PHP script filename in the URL:

How to Change the Apache Error Messages

You can change the Apache error messages for a single app by adding ErrorDocument directives to the app's .htaccess file.

How to Check Your .htaccess Rewrite Rules for Errors

Using .htaccess files is the safest way to customize the Apache configuration for your app. Through .htaccess files, you can use all of the common Apache directives from modules, including mod_rewrite, mod_expires, and many others.

How to Enable Browser Caching

You can configure an app so that the browser will cache files it downloads from your server. When a response is cached, the browser will not request the file again for a period of time.

How to Fix Apache Error 'server reached MaxRequestWorkers setting'

If you see the following message in your Apache error log: server reached MaxRequestWorkers setting this does not mean there is anything wrong with Apache or your Apache MaxRequestWorkers setting.

How to Prevent .htaccess from Being Overwritten by WordPress

You can safely customize and control the behavior of your WordPress apps by entering instructions into each app's .htaccess file.

How to Use Apache to Replace Strings in Responses

If you need to replace strings in the output of your PHP scripts before they are sent to the browser, you can use Apache's string substitution features.

Launch your first site in 5 minutes