Controller: /nodeworx/http
==========================
:Required Permissions: APACHE
Action: ``apacheUpdate``
------------------------
:Added in Version: 4.7.0-339
:Description: Update common apache web server settings.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``http_port``
- integer
- No*
-
- 80
-
* - ``https_port``
- integer
- No*
-
- 443
-
* - ``serverlimit``
- integer
- No*
-
- 20
- This directive sets the maximum configured value for MaxClients for the lifetime of the web server process.
* - ``threadsperchild``
- integer
- No*
-
- 25
- Controls the number of threads created per child process.
* - ``startservers``
- integer
- No*
-
- 3
- The StartServers directive sets the number of child server processes created on startup. As the number of processes is dynamically controlled depending on the load, there is usually little reason to adjust this parameter.
* - ``minsparethreads``
- integer
- No*
-
- 75
- Minimum number of idle threads to handle request spikes.
* - ``maxsparethreads``
- integer
- No*
-
- 250
- Maximum number of idle threads.
* - ``maxrequestsperchild``
- integer
- No*
-
- 8192
- This directive sets the limit on the number of requests that an individual child server process will handle. - *0 is Unlimited*
* - ``timeout``
- integer
- No*
-
- 60
- This is the length of time before the web server kills the thread handling your connection.
* - ``keepalive``
- integer
- No*
- 1, 0
- 0
- Turn Keepalive on or off.
* - ``maxkeepaliverequests``
- integer
- No*
-
- 100
- The Keep-Alive extension to HTTP/1.0 and the persistent connection feature of HTTP/1.1 provide long-lived HTTP sessions which allow multiple requests to be sent over the same TCP connection.
* - ``keepalivetimeout``
- integer
- No*
-
- 5
- The number of seconds the web server will wait for a subsequent request before closing the connection. Once a request has been received, the timeout value specified by the timeout directive applies.
* - ``adddefaultcharset``
- string
- No*
- UTF-8, ISO-8859-1, UTF-16BE, UTF-16LE, UTF-16, ANSI_X3.4-1968, ISO-10646-UTF-1, ISO_646.basic:1983, INVARIANT, ISO_646.irv:1983, BS_4730, NATS-SEFI, NATS-SEFI-ADD, NATS-DANO, NATS-DANO-ADD, SEN_850200_B, SEN_850200_C, KS_C_5601-1987, ISO-2022-KR, EUC-KR, ISO-2022-JP, ISO-2022-JP-2, ISO-2022-CN, ISO-2022-CN-EXT, JIS_C6220-1969-jp, JIS_C6220-1969-ro, IT, PT, ES, greek7-old, latin-greek, DIN_66003, NF_Z_62-010_(1973), Latin-greek-1, ISO_5427, JIS_C6226-1978, BS_viewdata, INIS, INIS-8, INIS-cyrillic, ISO_5427:1981, ISO_5428:1980, GB_1988-80, GB_2312-80, NS_4551-1, NS_4551-2, NF_Z_62-010, videotex-suppl, PT2, ES2, ...
- UTF-8
- Default value for the media type charset parameter (the name of a character encoding) to be added to a response if and only if the response's content-type is either text/plain or text/html.
* - ``force_graceful``
- integer
- No*
- 1, 0
- 1
-
* - ``cascade_to_nodes``
- integer
- No
- 1
-
- Selecting this option causes the action to be replayed on all nodes of the cluster automatically, as if you had logged in to each node manually
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``autoRestart``
-----------------------
:Added in Version: 4.7.0-339
:Description: Set the web server auto-restart status.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``apache_autorestart``
- integer
- No*
- 1, 0
- 0
-
* - ``cascade_to_nodes``
- integer
- No
- 1
-
- Selecting this option causes the action to be replayed on all nodes of the cluster automatically, as if you had logged in to each node manually
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``clearSiteWorxPhpFpmFiles``
------------------------------------
:Added in Version: 7.9.3-1969
:Description: Delete InterWorx fpm files for a single unix user.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``unixuser``
- string
- Yes
- root, nobody, rocky, axfrdns, example
-
-
Action: ``disable``
-------------------
:Added in Version: 4.8.0-393
:Description: Http disable Apache module action.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``name``
- struct (string)
- No*
- foo_module
-
-
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``enable``
------------------
:Added in Version: 4.8.0-393
:Description: Http enable Apache module action.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``name``
- struct (string)
- No*
- foo_module
-
-
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``enableMultiplePhp``
-----------------------------
:Added in Version: 6.0.0-1316
:Description: Enable the Multiple PHP feature.
Action: ``fail``
----------------
:Added in Version: 4.7.0-339
:Description: Magic function - test for failure mechanism.
Action: ``isRunning``
---------------------
:Added in Version: 4.7.0-339
:Description: Checks if the service is running or not.
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' => true,
'reply_code' => 205,
)
Action: ``isRunningOnNode``
---------------------------
:Added in Version: 4.7.0-339
:Description: Checks if the service is running on a specific node (Clustering only).
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``node_id``
- string
- No*
-
-
-
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``listAvailablePhpVersions``
------------------------------------
:Added in Version: 6.0.16-1389
:Description: Get available php versions on this system (may not be enabled for use).
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
0 => '/opt/remi/php72',
1 => '/opt/remi/php74',
2 => '/opt/remi/php80',
),
'reply_code' => 205,
)
Action: ``listEnabledPhpVersions``
----------------------------------
:Added in Version: 6.0.16-1389
:Description: Get enabled php versions on this system.
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
0 => '/opt/remi/php72',
1 => '/opt/remi/php74',
2 => '/opt/remi/php80',
),
'reply_code' => 205,
)
Action: ``listGeneralName``
---------------------------
:Added in Version: 4.7.0-339
:Description: Lists the "normal" name - ie "web server" instead of "httpd".
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' => '##LG_APACHE##',
'reply_code' => 205,
)
Action: ``listModules``
-----------------------
:Added in Version: 4.8.0-393
:Description: List Apache module information.
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
0 =>
array (
'name' => 'access_compat_module',
'enabled' => 1,
),
1 =>
array (
'name' => 'actions_module',
'enabled' => 1,
),
2 =>
array (
'name' => 'alias_module',
'enabled' => 1,
),
),
'reply_code' => 205,
)
Action: ``listPhpInstallMode``
------------------------------
:Added in Version: 5.0.14-579
:Description: Get the mode php is running under.
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' => 'php-fpm',
'reply_code' => 205,
)
Action: ``listPortNumbers``
---------------------------
:Added in Version: 4.7.0-339
:Description: Lists a string of the port numbers that this service uses, comma-seperated.
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' => '80, 443',
'reply_code' => 205,
)
Action: ``listPortNumbersArray``
--------------------------------
:Added in Version: 4.7.0-339
:Description: Lists array of port numbers and ranges that this service uses.
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
0 => '80',
1 => '443',
),
'reply_code' => 205,
)
Action: ``listRequiredPermissions``
-----------------------------------
:Added in Version: 4.7.0-339
:Description: Lists an array of permissions required to control the service.
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
0 => 'APACHE',
),
'reply_code' => 205,
)
Action: ``listServiceInfo``
---------------------------
:Added in Version: 4.7.0-339
:Description: Lists the service name, ports, page, and status.
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
'id' => 'httpd',
'name' => '##LG_APACHE##',
'ports' => '80, 443',
'page' => '/nodeworx/http',
'ctrl' => '/nodeworx/http',
'is_running' => 1,
),
'reply_code' => 205,
)
Action: ``listServiceName``
---------------------------
:Added in Version: 4.7.0-339
:Description: Lists the service name - ie "httpd" instead of "web server".
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' => 'httpd',
'reply_code' => 205,
)
Action: ``listServicePage``
---------------------------
:Added in Version: 4.7.0-339
:Description: Lists the page that controls the service.
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' => '/nodeworx/http',
'reply_code' => 205,
)
Action: ``multiplePhpOptions``
------------------------------
:Added in Version: 6.0.0-1316
:Description: Update multiple php options.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``enabled_php_versions``
- struct (string)
- No
- /opt/remi/php72, /opt/remi/php74, /opt/remi/php80, /opt/remi/php81, /opt/remi/php82, /opt/remi/php56, /opt/remi/php70, /opt/remi/php71, /opt/remi/php73, /opt/remi/php83, /opt/remi/php84
- ["\/opt\/remi\/php72","\/opt\/remi\/php74","\/opt\/remi\/php80"]
- Versions available for new SiteWorx accounts. Disabling a version only removes it from the list - it will still be installed, and any domains currently using it will continue.
* - ``default_php_version``
- string
- No*
- system-php, /opt/remi/php72, /opt/remi/php74, /opt/remi/php80
- system-php
- This version will be pre-selected when creating new SiteWorx accounts. This controls the default value when using an API call that may not provide this input for creating a new SiteWorx Account.
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``queryApacheUpdate``
-----------------------------
:Added in Version: 5.1.0-838
:Description: Displays the information available to the action "apacheUpdate".
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
'http_port' => '80',
'https_port' => '443',
'serverlimit' => '20',
'threadsperchild' => '25',
'maxclients' => '500',
'startservers' => '3',
'minsparethreads' => '75',
'maxsparethreads' => '250',
'maxrequestsperchild' => '8192',
'timeout' => '60',
'keepalive' => '0',
'maxkeepaliverequests' => '100',
'keepalivetimeout' => '5',
'adddefaultcharset' => 'UTF-8',
'force_graceful' => '1',
),
'reply_code' => 205,
)
Action: ``queryAutoRestart``
----------------------------
:Added in Version: 5.1.0-838
:Description: Displays the information available to the action "autoRestart".
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
'apache_autorestart' => '0',
),
'reply_code' => 205,
)
Action: ``queryEditConf``
-------------------------
:Added in Version: 5.1.0-838
:Description: Displays the information available to the action "editConf".
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
'file' => '/etc/httpd/conf/httpd.conf',
'file_content' => '#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See for detailed information.
# In particular, see
#
# for a discussion of each configuration directive.
#
# See the httpd.conf(5) man page for more information on this configuration,
# and httpd.service(8) on using and configuring the httpd service.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They\'re here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server\'s control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so \'log/access_log\'
# with ServerRoot set to \'/www\' will be interpreted by the
# server as \'/www/log/access_log\', where as \'/log/access_log\' will be
# interpreted as \'/log/access_log\'.
#
# ServerRoot: The top of the directory tree under which the server\'s
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used. If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "/etc/httpd"
#
# PidFile: The file in which the server should record its process
# identification number when it starts. Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid
#
# Don\'t give away too much information about all the subcomponents
# we are running. Comment out this line if you don\'t mind remote sites
# finding out what major optional modules you are running
ServerTokens OS
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the
# directive.
#
# Change this to Listen on a specific IP address, but note that if
# httpd.service is enabled to run at boot time, the address may not be
# available when the service starts. See the httpd.service(8) man
# page for more information.
#
#Listen 12.34.56.78:80
Listen 80
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule\' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l\') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
Include conf.modules.d/*.conf
##
## Server-Pool Size Regulation (MPM specific)
##
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxRequestWorkers for the lifetime of the server
# MaxRequestWorkers: maximum number of server processes allowed to start
# MaxConnectionsPerChild: maximum number of requests a server process serves
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxRequestWorkers 256
MaxConnectionsPerChild 4000
# worker MPM
# StartServers: initial number of server processes to start
# MaxRequestWorkers: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxConnectionsPerChild: maximum number of requests a server process serves
StartServers 4
ServerLimit 16
MaxRequestWorkers 400
MinSpareThreads 75
MaxSpareThreads 250
ThreadsPerChild 25
MaxConnectionsPerChild 0
# event MPM
ServerLimit 20
ThreadsPerChild 25
MaxRequestWorkers 500
StartServers 3
MinSpareThreads 75
MaxSpareThreads 250
ThreadLimit 32
MaxConnectionsPerChild 8192
MaxKeepAliveRequests 100
KeepAliveTimeout 5
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User apache
Group apache
# \'Main\' server configuration
#
# The directives in this section set up the values used by the \'main\'
# server, which responds to any requests that aren\'t handled by a
# definition. These values also provide defaults for
# any containers you may define later in the file.
#
# All of these directives may appear inside containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
ServerAdmin root@localhost
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn\'t have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
#
# Deny access to the entirety of your server\'s filesystem. You must
# explicitly permit access to web content directories in other
# blocks below.
#
AllowOverride none
Require all denied
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something\'s not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"
#
# Relax access to content within /var/www.
#
AllowOverride None
# Allow open access:
Require all granted
# Further relax access to the default document root:
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn\'t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
DirectoryIndex index.html
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
Require all denied
#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a
# container, that host\'s errors will be logged there and not here.
#
ErrorLog "logs/error_log"
ErrorLogFormat "[%t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\\ %a] %M% ,\\ referer\\ %{Referer}i"
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\"" combined
LogFormat "%h %l %u %t \\"%r\\" %>s %b" common
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\" %I %O" combinedio
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a
# container, they will be logged here. Contrariwise, if you *do*
# define per- access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog "logs/access_log" common
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
CustomLog "logs/access_log" combined
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server\'s namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
# Redirect permanent /foo http://www.example.com/bar
#
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a section to allow access to
# the filesystem path.
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client. The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
AllowOverride None
Options None
Require all granted
#
# Avoid passing HTTP_PROXY environment to CGI\'s on this or any proxied
# backend servers which have lingering "httpoxy" defects.
# \'Proxy\' request header is undefined by the IETF, not listed by IANA
#
RequestHeader unset Proxy early
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
TypesConfig /etc/mime.types
#
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
#
#AddType application/x-gzip .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi
# For type maps (negotiated resources):
#AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default. To use the
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8
#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
MIMEMagicFile conf/magic
#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#
#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values \'default\', \'none\' or \'unlimited\'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited
#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall may be used to deliver
# files. This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
# Defaults if commented: EnableMMAP On, EnableSendfile Off
#
#EnableMMAP off
EnableSendfile on
# Supplemental configuration
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf
# Unknown protocols are ignored by Apache, h2 can stay even if
# the http2 module is not loaded. See conf.modules.d/10-http2.conf
Protocols h2 http/1.1
',
),
'reply_code' => 205,
)
Action: ``queryMultiplePhpOptions``
-----------------------------------
:Added in Version: 6.0.16-1389
:Description: Displays the information available to the action "multiplePhpOptions".
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
'enabled_php_versions' =>
array (
0 => '/opt/remi/php72',
1 => '/opt/remi/php74',
2 => '/opt/remi/php80',
),
'default_php_version' => 'system-php',
),
'reply_code' => 205,
)
Action: ``queryUpdatePhpMode``
------------------------------
:Added in Version: 5.1.0-838
:Description: Displays the information available to the action "updatePhpMode".
Sample Output
^^^^^^^^^^^^^
.. code-block::
array (
'status' => 0,
'payload' =>
array (
'version' => '8.2.29 (remi-modular)',
'php_mode' => 'php-fpm',
),
'reply_code' => 205,
)
Action: ``refreshAvailablePhpVersions``
---------------------------------------
:Added in Version: 6.0.28-1425
:Description: Refresh available versions of PHP.
Action: ``remove``
------------------
:Added in Version: 4.8.0-393
:Description: Http remove Apache module action.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``name``
- struct (string)
- No*
- foo_module
-
-
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``reroute``
-------------------
:Added in Version: 4.7.0-339
:Description: Action to re-route from the current controller to a different one.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``controller``
- string
- Yes
- Index, Overview, Users, Lang, Apikey, Plugins, Twofactorauth, Notice, Siteworx, Shell, Packages, Backup, Import, Softaculous, Reseller, ResellerPackages, ResellerBandwidthhistory, Http, Phpextensions, Ftp, Sshd, MailMta, MailSmtp, MailSend, MailMda, MailMsa, MailDovecot, MailSpam, MailVirus, MailQueue, Mysql, MysqlRemote, MysqlPhpmyadmin, Dns, DnsZone, DnsRecord, DnsSync, Nfs, NfsExport, NfsMount, Health, Cron, Firewall, Ssl, Logs, Settings, Updates, Rrd, Ip, Ipv6, ...
-
-
Action: ``resetPhpFpmFiles``
----------------------------
:Added in Version: 6.0.0-1316
:Description: Delete and recreate InterWorx fpm files.
Action: ``resetSiteWorxPhpFpmFiles``
------------------------------------
:Added in Version: 6.5.0-1712
:Description: Delete and recreate InterWorx fpm files for a single SiteWorx account.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``domain``
- string
- Yes
- example.com, secondary.com
-
-
Action: ``restart``
-------------------
:Added in Version: 4.7.0-339
:Description: Restarts the service.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``cond``
- integer
- No*
- 1, 0
- 0
- Restart the service, only if it is currently running.
* - ``cascade_to_nodes``
- integer
- No
- 1
-
- Selecting this option causes the action to be replayed on all nodes of the cluster automatically, as if you had logged in to each node manually
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``restartOnNode``
-------------------------
:Added in Version: 4.7.0-339
:Description: Restarts the service on a specific node (Clustering only).
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``node_id``
- string
- No*
-
-
-
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``restartPhpFpm``
-------------------------
:Added in Version: 6.0.27-1423
:Description: Restart all installed versions of php-fpm.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``cascade_to_nodes``
- integer
- No
- 1
-
- Selecting this option causes the action to be replayed on all nodes of the cluster automatically, as if you had logged in to each node manually
Action: ``setFastCGIMode``
--------------------------
:Added in Version: 8.0.3-2553
:Description: Set the fastcgi mode for the server (mod_proxy_fcgi/mod_fastcgi)
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``mode``
- string
- No*
- mod_fastcgi, mod_proxy_fcgi
- mod_proxy_fcgi
-
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``start``
-----------------
:Added in Version: 4.7.0-339
:Description: Start the service.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``cascade_to_nodes``
- integer
- No
- 1
-
- Selecting this option causes the action to be replayed on all nodes of the cluster automatically, as if you had logged in to each node manually
Action: ``startOnBoot``
-----------------------
:Added in Version: 4.7.0-339
:Description: Set the web server start-on-boot status.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``startonboot``
- integer
- No*
- 1, 0
- 1
-
* - ``cascade_to_nodes``
- integer
- No
- 1
-
- Selecting this option causes the action to be replayed on all nodes of the cluster automatically, as if you had logged in to each node manually
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``startOnNode``
-----------------------
:Added in Version: 4.7.0-339
:Description: Starts the service on a specific node (Clustering only).
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``node_id``
- string
- No*
-
-
-
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``stop``
----------------
:Added in Version: 4.7.0-339
:Description: Stop the service.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``cascade_to_nodes``
- integer
- No
- 1
-
- Selecting this option causes the action to be replayed on all nodes of the cluster automatically, as if you had logged in to each node manually
Action: ``stopOnNode``
----------------------
:Added in Version: 4.7.0-339
:Description: Stops the service on a specific node (Clustering only).
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``node_id``
- string
- No*
-
-
-
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``syncAllConfigFiles``
------------------------------
:Added in Version: 5.0.14-579
:Description: Syncronizes all config files.
Action: ``syncConfigFiles``
---------------------------
:Added in Version: 5.0.14-579
:Description: Synchronize the config files for a SiteWorx Account.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``domain``
- string
- Yes
- example.com, secondary.com, sub.example.com
-
-
Action: ``syncOneConfigFile``
-----------------------------
:Added in Version: 6.3.3-1639
:Description: Synchronize the config files for a domain.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``domain``
- string
- Yes
- example.com, secondary.com, sub.example.com
-
-
Action: ``syncRedirects``
-------------------------
:Added in Version: 5.0.14-579
:Description: Write out changes to redirect pointer domain configuration.
Action: ``updatePhpMode``
-------------------------
:Added in Version: 4.7.0-339
:Description: Set php installation mode.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``php_mode``
- string
- No*
- mod_suphp, php-fpm
- php-fpm
- The method the web service uses to connect to PHP. InterWorx strongly recommends avoiding mod_php, which executes all sites as the Apache user and presents a security risk.
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``updateRrd``
---------------------
:Added in Version: 4.7.0-339
:Description: Show or hide the web server connections RRD graph in the web interface.
Input Parameters
^^^^^^^^^^^^^^^^^
.. list-table::
:widths: auto
:header-rows: 1
* - Name
- Type
- Required?
- Example Values
- Default Values
- Notes
* - ``rrd``
- integer
- No*
- 1, 0
- 0
- Use the dropdown to turn the web server activity graph on or off.
\* indicates that it's actually required, but probably already has a valid default value.
Action: ``wait``
----------------
:Added in Version: 8.1.3-2998
:Description: Magic function - used to simulate a long-running process
Action: ``win``
---------------
:Added in Version: 4.7.0-339
:Description: Magic function - test for testing success mechanism.
Action: ``writeFastCgiServerDefinitions``
-----------------------------------------
:Added in Version: 6.3.13-1677
:Description: Write fastcgi server definitions (if applicable).