CP+ Documentation  

Apache Options files

Related Docs:   Apache Virtual Server Options


As domain user, you can modify Apache options in the directories served by the Apache webserver. Options apply to all files in the directory and any subdirectories, unless overridden by another options file. Options file also allows configuration of per-file level.

To add Apache options for directory under domain user:

  1. Click Apache Options Files on the home page in your domain user CP+.
  2. Click Add options for the path and name entered into the field.
  3. On the page that shows there is a range of Apache per-directory options:
    • Processes and Limits  option sets maximum request body size:
    • Access Control  option sets restricted access and authentication for users.
    • Document Options  allows to specify a filename that will be checked for directory access options.
    • MIME Types  option sets a standard method of determining data type for many types of network connection.
    • Error Handling  option allows to configure the error types that you want to provide with custom messages.
    • PHP option allows to configure the user and group under which the Apache server will run.
    • Show Directives  option sets the appearance and information contained in Apache-generated indexes.
    • Edit Directives  option sets the appearance and information contained in Apache-generated indexes.
    • Networking and Addresses  option (appears in Per-File Configuration) sets the network addresses and ports where Apache will listen.

 

Processes and Limits

This option allows to change Maximum Request Body size. In most cases, the default value is suitable, but in case you want to change it:

  1. Click the Processes and Limits icon and you will see the following page:
  2. Enter custom length for Maximum Request Body size in bytes, if necessary.
  3. Click Save to preserve changes.

 

Access Control

To set Access Control:

  1. Click the Access Control icon and you will see the following page:
  2. Fill the Access Control form : enter authentication realm name, choose authentication type, set restricted access by login and select what access control clients must satisfy.
  3. Click Save.

 

Document Options

Choose what options to use in this directory: default or custom.

  1. Click the Document Options icon and you will see the following page:
  2. Fill the form:
    • Directory options: you can choose to use default options for this directory or choose from the selected options.
    • Generate MD5 digests: turn on generation of Content-MD5 digest headers. With this option enabled, Apache generates a message digest, or fingerprint, for each static page served.
    • Error message footer: optionally, you can add a footer to all server generated documents (such as error pages and etc.).
  3. Make sure to click Save to preserve changes.

 

MIME Types

The MIME types take care of file associations and char sets in Apache. You can set up which command will be executed when a request is made for certain file types by doing the following:

  1. Click the MIME Types icon and you will see the following page:
  2. Default MIME type: use default MIME type or add new MIME type in the field.
  3. Make sure to click Save to preserve changes.

 

Error Handling

The Error Handling section allows to specify which web page is called when some specific error takes place upon request. For instance, if a requested web page is not found, Apache displays a 404 error. To set error response:

  1. Click the Error Handling icon and you will see the following page:
    • Error code Response: enter a code that corresponds to an error and choose the response to the error: URL or a message.
    • URL or message: due to the chosen error response, enter either a URL or a message into this field.
  2. Make sure to click Save to preserve changes.

 

PHP

The PHP option allows you to set PHP configuration values and flags.

Click the PHP icon and you will see the following page:

  • Set PHP Configuration Values.
  • Set PHP Configuration Flags. Turn it on or off.

Make sure to click Save to preserve changes.

 

Show Directives

All configurations mentioned above can be accessed through the Show Directives section. It presents the part of the Apache configuration file associated with the virtual host. Each link directs you to the appropriate CP+ section and you can view or configure it:

1. To view all directives, click the Show Directives icon.

2. You can edit directives by choosing the directive from the drop-down box and clicking the Edit Apache Directive button. It will take you to the section in CP+ that deals with it.

 

Edit Directives

This option allows to manually edit directive.

To edit directive, use the text box to manually edit the Apache directives that apply to this directory or files.

 

Networking and Addresses

This option appears in per-file options file and it sets networking and addresses for this specific file.

To configure networking and addresses for file:

  1. Click the Networking and Addresses icon and you will see the following page:
  2. Fill the form that shows:
    • Lookup hostnames: if it's checked, it will resolve hostnames to your connections.
    • Use hostname supplied by browser: choose "no" if you yes if you want to avoid false requests on your web server.
    • Do RFC1413 user lookups: this option allows to retrieve user names from a remote system using the protocol described in RFC 1413.
  3. Click Save.

To create more per-file options, go to the Per-Directory Options file page and enter the path in the little form at the bottom of the page, click Create.



Related Docs:   Apache Virtual Server Options


Home   Features   Pricing   Resellers   Docs   News   Contact
© Copyright 1998-2005. Positive Software Corporation.
All rights reserved.
Disclaimer