ControlTier > elements
 

ApacheSystemService

Apache System Service Module

Overview

ApacheSystemService: Apache System Service Module

Models the Apache httpd server as installed by the OS and with service management done through /etc/init.d/httpd

Design

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

Constraints

Allowed Child Dependencies

  • ApacheCgiBin1
  • ApacheDocumentRoot1
  • ApacheErrorDir1
  • ApacheGroup1
  • ApacheIconsDir1
  • ApacheListen
  • ApacheProxyAjpLocation1
  • ApacheProxyAjpWebapp1
  • ApacheServerAdmin1
  • ApacheServerName1
  • ApacheServerRoot1
  • ApacheUser1
  • Package
  • Service
  • SystemServiceScript1
  • SystemServiceUseSudo1
  • TomcatAjpPort1
  • TomcatServer 1

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

Allowed Parent Dependencies

  • Node
  • Site

Attributes

Settings are defined in the Apache module's type definition. Defaults are taken from Red Hat Enterprise Linux. Defaults may be different than those of the Apache type. N.B. There is no default for serverName. You must specify the ApacheServerName setting.

Defaults for Imported Attributes

Name Default Description
cgiBin /var/www/cgi-bin Directory for cgi-bin scripts
documentRoot /var/www/html Home of server documents
errorDir /var/www/error Directory for error pages
group apache Runtime group of Apache daemon
iconsDir /var/www/icons Directory for icons used in generated directory listings
listen 80 Listen specification (port, or address:port, etc.)
proxyAjpLocation /examples/ The location under http://servername/ for which traffic will be forwarded via mod_proxy_ajp
proxyAjpWebapp examples/ The Tomcat web application to which traffic will be proxied by mod_proxy_ajp
serverAdmin webmaster@localhost.localdomain Administrator e-mail address
serverRoot /etc/httpd Home of apache configuration
systemServiceScript httpd Name of /etc/init.d script (httpd in RHEL; apache in some other distributions)
systemServiceUseSudo true Boolean whether to use sudo (from SystemService)
user apache Runtime user of Apache daemon

Commands

View the available commands in the User Reference.