Adding subdomains

You can add subdomains to your site only if your service provider enables your site to host subdomains.

The number of subdomains you can add is set by your service provider. You can choose to be the owner of a subdomain or alternatively delegate authority to a user of the site.

To add a subdomain:

  1. In the shortcuts area of the Home page, click Subdomains (Web Server section). The Subdomain window opens.

  2. In the Subdomain submenu, click Add Sub Domain. The Add Subdomain form opens.

  3. Enter the name of the subdomain in the Name field.

  4. Note: To create a subdomain sales for the domain, www.mysite.com, enter only sales in the Name field and not sales.mysite.com.

  1. In the Owner field, click the arrow to select an owner for the subdomain.

  2. Note: You can choose to be the owner of the subdomain or alternatively delegate authority to a user of the site.

  1. In the Full Directory field, enter the complete path to the subdomain directory that will contain content for the subdomain.

  2. Important: The subdomain directory must be specified as a complete path, /var/<subdomain folder name>, where <subdomain folder name> is the name of the folder that contains the Web content for the subdomain. Do not enter only <subdomain folder name> as the subdomain directory. This will result in an error.

  3. The subdomain directory, once defined, cannot be changed.

  1. In the CGI Support select an appropriate CGI option. Options include:

For example if the cgi scripts are aliased to /usr/Web/cgi-bin/, instead of the default /cgi-bin/, then a request for http://myscript/cgi-bin/search will run the script from /usr/Web/cgi-bin/search instead of /cgi-bin/search.

CGI scripts will be placed in the /cgi-bin/ directory.

  1. In the CGI Script Extensions field, enter the required CGI script extension.

  2. Note: The value in this field depends on the type of CGI support enabled for the subdomain in step 6.

    Default values are set for the following CGI Support options:

    None
    - None. No script support.
    Only in ScriptAlias -
    ALL (any script placed in the ScriptAlias directory will be executed)

    If you choose In the CGI-BIN directory, you can specify the scripts that should be executed, for example, php, pl etc.

  1. Click Add SubDomain.

If the subdomain has been successfully created, it will be added to the list of existing subdomains. An appropriate message is displayed above the list of subdomains.

If the process fails, or succeeds with attendant warnings, click the Details link to view related information.

Related Topics