The newserver command has a number of options and
prompts, as described in the two tables that follow.
The newserver command format depends on your operating
system:
newserver : Perl script for Unix.
newserver.ps1: PowerShell script for
Windows.
The command-line options for the two flavors are exactly the same.
Table 6. Options of the newserver Command
| Option | Description | Required? |
|---|---|---|
--server= | Name of the new vFabric Web Server instance. The value of
this option becomes the name of the directory that contains the
instance configuration files, and by default is the name of the
host. The value of
If
you want to use an internationalized (i18n) name for the instance
directory, you must enter the correct Punycode domain name
provided by the registrar for the actual hostname. Do this by
either specifying the | Yes. |
--httpddir= | Directory that contains the Apache HTTP binaries. The
default value is
| No. |
--httpdver= | Version of the Apache HTTP binaries you want your instance
to use. The default value is | No. |
--mpm= | Specifies the type of multi-processing module (MPM) that
the instance uses. Valid values are:
The default value is
| No. |
--overlay | Specifies that, if serverdir exists, you want
to overwrite the existing files with new ones. | No. If you do not specify this option, and
|
--quiet | Specifies that the newserver command should
use default values for all prompts. | No. If you do not specify this option,
|
--rootdir= | Directory that contains the
httpd-2.2.
directory, which in turn contains the Apache HTTP binaries.
The default value is the current directory. | No. |
--serverdir= | Directory in which you want the new instance directory to
be created. The default value is
| No. |
--set
| Specifies one or more tokens for which you would like to
specify a custom value. The tokens are variables in the templates
used to create new vFabric Web Server instances and correspond to
a directive, or part of a directive, in the new instance's
configuration. Each available token has a default value (listed
below) that is automatically configured if you do not override it
using the --set option. You can specify the following tokens; note that the token names are case-sensitive:
The following example shows how to specify
that the new vFabric Web Server instance run as the
prompt# ./newserver --server=myserver --set User=newhttpd --set Group=newhttpd | No. |
--sourcedir= | Name of the directory that contains the template that
newserver uses to create the new vFabric Web Server
instance. The default value is
| No. |
Table 7. newserver Prompts
| Prompt | Description |
|---|---|
| Enable SSL and create a default key [y/n]? | Enabling SSL provides secure communication between client and server by allowing mutual authentication; the use of digital signatures for integrity; and encryption for privacy. If you answer yes, you are later asked for information that will be used to create a certificate. |
| Server hostname (e.g. www.example.com) [myserver]? | Name that the vFabric Web Server instance uses to identify
itself. If your host does not have a registered DNS name, enter
its IP address. The default value is the value you entered for the
--server option. |
| Administrator email [webmaster@myserver]? | Email address to which vFabric Web Server instances send problems. This address appears on some instance-generated pages, such as error documents. |
| Port for http:// traffic [80]? | HTTP port to which the vFabric Web Server instance listens.
Default value is 80 when running the
newserver command as the root user on
Unix, 8080 otherwise. |
| Port for https:// SSL traffic [443]? | HTTPS port to which the vFabric Web Server instance
listens. Default value is 443 when running the
newserver command as the root user on
Unix, 8443 otherwise. |
| If you previously specified that you want to enable SSL... | The newserver command prompts you for
information required to create the private key, such as the size
of the SSL RSA key in bits and the PEM pass phrase you specify
when you start the instance. You also are prompted to enter information for your certificate. The information is mostly about your Distinguished Name, or DN, that will be incorporated into your certificate request. As indicated, some fields have default values. You can also leave some fields blank by entering a '.' (period.) When
Important
Be sure to record the passphrase to decrypt the |