CP+ Documentation  

Apache Virtual Server Options

Related Docs:   Adding Websites


As admin, you can view and change Apache webserver virtual host settings for your domains, such as filters, error handling, mime types, document options.

To view and change virtual server options under the domain admin:

  1. Select Services tab - > Apache webserver in your admin CP+.
  2. In the Virtual Servers list choose necessary server.
  3. On the page that shows there is a range of virtual server options that are subject to changes:
    • Processes and Limits  option sets many of the limits for Apache.
    • Networking and Addresses  option configures the network addresses and ports where Apache will listen.
    • Log Files  option allows to keep track of servers' actions and operations. It can log information to a separate file and in a custom format.
    • Document Options  allow to specify your site's Document root - the path to the directory containing your web pages.
    • 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.
    • User and Group  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.

 

Processes and Limits

In most cases, the defaults set for processes and limits are pretty suitable, but sometimes you may want to change them due to high load or low memory situations.

Click the Processes and Limits icon and you will see the following page:

  • Maximum Request Body size: enter custom length of your request in bytes, if necessary.
  • Memory resource limit: set the maximum memory in bytes used by a process
  • CPU Resource limit: configure the maximum CPU time in seconds used by a process. CPU resource limits are expressed in seconds per process.
  • Process limit: a number of simultaneous Apache processes.

Make sure to click Save to preserve changes.

 

Networking and Addresses

This section allows configuring the network addresses and ports where Apache will listen, and some other access limits.

Click the Networking and Addresses icon and you will see the following page:

  • Lookup hostnames: if it's checked, it will resolve hostnames to your connections.
  • Server Admin Email Address: enter administrator's email, if necessary.
  • 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.
  • Server hostname: enter specific server hostname, if necessary.

Make sure to click Save to preserve changes.

 

Log Files

Log files help to keep track of the activity and performance of the server. Errors and accessed pages are written by Apache into a journal that is managed by the Log Files option of the virtual server.

Click the Log Files icon and you will see the following page:

  • Error log to: you can choose where you want the logs to be written: system log, file or program.
  • Error log level: choose which level of the logs you want the system to write from the drop-down box.

Make sure to click Save to preserve changes.

 

Document Options

This option gives an access to many of the virtual server specific options that will effect permissions, locations, and behaviors.

Click the Document Options icon and you will see the following page:

  • Document root directory: the path to the directory that contains your web pages.
  • Per-directory options file: specify a filename to be checked for directory access options.
  • Directory options: you can choose to use default options for this directory or choose from the selected options. It will effect the root directory for your virtual server and all subdirectories.
  • 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.
  • Virtual server path: leave at deafult. If necessary, provide a path from the default server to each virtual server.
  • Error message footer: optionally, you can add a footer to all server generated documents (such as error pages and etc.).

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.

Click the MIME Types icon and you will see the following page:

Default MIME type: use default MIME type or add new MIME type in the field.

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 instanse, if a requested web page is not found, Apache displays a 404 error.

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.

Make sure to click Save to preserve changes.

 

User and Group

The User and Group option allows you to specify which user owns the Apache processes corresponding to the current virtual server.

Click the User and Group icon and you will see the following page:

  • Run as Unix user: set User name or User ID in this section.
  • Run as Unix group: set Group name or Group ID in this section.
Note: good choice is to configure it to 'nobody' and 'nogroup', as they do on many UNIX operating systems. Don't set this to 'root' unless you are absolutely sure what you need it for and if you are aware of the security implications of doing so.

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.



Related Docs:   Adding Websites


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