ControlTier > controltier-elements
 

Apache

Manages an Apache HTTP server

Overview

Open in Workbench Apache: Manages an Apache HTTP server

Design

Super Type
Service
Role Concrete. (Objects can be created.)
Instance Names Unique
Notification false
Template Directory
Data View Children, proximity: 2
Logger Name Apache

Constraints

Allowed Child Dependencies

1: These types have a Singleton constraint. Only one instance may be added as a resource.

Allowed Parent Dependencies

  • Node
  • Site

Attributes

Defaults for Imported Attributes

Name Default
ajpPort 8009
apacheReconfigure true
catalina_base /usr/local/tomcat
catalina_home /usr/local/tomcat
dispatchChangeDependencies false
documentRoot ${opts.install_root}/htdocs
httpPort 8180
loadmodule_jk modules/mod_jk.so
loadmodule_php modules/libphp4.so
serverAdmin you@example.com
serverName localhost

Commands

Note
Commandline options displayed in square brackets "[]" are optional. If an option expects arguments, then angle brackets are shown after the option "<>". Any default value is shown within the brackets.

Prepare

builds the deployment objects

Usage
Prepare

Workflow

  1. Install
  2. Stop
  3. Configure

Docs-Generate

generates all defined docs

Usage
Docs-Generate [-apacheReconfigure <>] [-archivedir <${entity.instance.dir}/var>] [-documentRoot <>]

Options

Option Description
apacheReconfigure determines whether apache will be configured
archivedir dir to store current output docs
documentRoot apache doc root

assertServiceIsDown

checks if service is down

Usage
assertServiceIsDown

assertServiceIsUp

checks if service is running

Usage
assertServiceIsUp

startService

starts the service

Usage
startService [-apache_bin] [-apacheReconfigure <>] [-basedir <>]

Options

Option Description
apache_bin apache bin install directory
apacheReconfigure determines whether apache will be restarted
basedir apache server base

stopService

stops the service

Usage
stopService [-apacheReconfigure <>]

Options

Option Description
apacheReconfigure determines whether apache will be restarted

Related Types

The following types are defined for use with Apache.

ApacheSetting

Overview

Open in Workbench ApacheSetting: An Apache configuration setting

Design

Super Type
Setting
Role Abstract. (Objects cannot be created.)
Instance Names Unique

ApacheReconfigure

Overview

Open in Workbench ApacheReconfigure: determines whether to stop and start apache

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
apacheReconfigure settingValue

ApacheDocumentRoot

Overview

Open in Workbench ApacheDocumentRoot: Directory from which httpd will serve files

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies

Attributes

Exported Attributes
Name Property
documentRoot settingValue

ApacheServerRoot

Overview

Open in Workbench ApacheServerRoot: Directory from which httpd will serve files

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies

Attributes

Exported Attributes
Name Property
serverRoot settingValue

ApacheHttpPort

Overview

Open in Workbench ApacheHttpPort: Apache listening port

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies
Allowed Property Values
Property Allowed Values Default Enforced
settingValue
  • 80
false

Attributes

Exported Attributes
Name Property
httpPort settingValue

ApacheListen

Overview

Open in Workbench ApacheListen: Apache listener settings

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies

Attributes

Exported Attributes
Name Property
listen settingValue

ApacheGroup

Overview

Open in Workbench ApacheGroup: Apache run-as group

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies

Attributes

Exported Attributes
Name Property
group settingValue

ApacheUser

Overview

Open in Workbench ApacheUser: Apache run-as user

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies

Attributes

Exported Attributes
Name Property
user settingValue

ApacheIconsDir

Overview

Open in Workbench ApacheIconsDir: Apache icons directory

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies

Attributes

Exported Attributes
Name Property
iconsDir settingValue

ApacheErrorDir

Overview

Open in Workbench ApacheErrorDir: Apache error handlers directory

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies

Attributes

Exported Attributes
Name Property
errorDir settingValue

ApacheCgiBin

Overview

Open in Workbench ApacheCgiBin: Apache CGI scripts directory

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies

Attributes

Exported Attributes
Name Property
cgiBin settingValue

ApacheProxyAjpLocation

Overview

Open in Workbench ApacheProxyAjpLocation: Apache mod_proxy_ajp Location to proxy to Tomcat

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies

Attributes

Exported Attributes
Name Property
proxyAjpLocation settingValue

ApacheProxyAjpWebapp

Overview

Open in Workbench ApacheProxyAjpWebapp: Apache mod_proxy_ajp Destination Tomcat Webapp

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies

Attributes

Exported Attributes
Name Property
proxyAjpWebapp settingValue

ApacheServerName

Overview

Open in Workbench ApacheServerName: The name or address the server uses to identify itself

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies
Allowed Property Values
Property Allowed Values Default Enforced
settingValue
  • localhost
false

Attributes

Exported Attributes
Name Property
serverName settingValue

ApacheLoadModuleJk

Overview

Open in Workbench ApacheLoadModuleJk: Used by the LoadModule directive to link in the JK module. Filename is either an absolute path or relative to ServerRoot.

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies
Allowed Property Values
Property Allowed Values Default Enforced
settingValue
  • modules/mod_jk.so
false

Attributes

Exported Attributes
Name Property
loadmodule_jk settingValue

ApacheLoadModulePhp

Overview

Open in Workbench ApacheLoadModulePhp: Used by the LoadModule directive to link in the PHP module. Filename is either an absolute path or relative to ServerRoot.

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies
Allowed Property Values
Property Allowed Values Default Enforced
settingValue
  • modules/libphp4.so
false

Attributes

Exported Attributes
Name Property
loadmodule_php settingValue

ApacheServerAdmin

Overview

Open in Workbench ApacheServerAdmin: Email address of the web server administrator

Design

Super Type
ApacheSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Constraints

Allowed Parent Dependencies
Allowed Property Values
Property Allowed Values Default Enforced
settingValue
  • you@example.com
false

Attributes

Exported Attributes
Name Property
serverAdmin settingValue