web server - Borland Technical Publications

web server - Borland Technical Publications web server - Borland Technical Publications

techpubs.borland.com
from techpubs.borland.com More from this publisher
12.11.2014 Views

Chapter 4 Chapter4Web components Important This section provides information about the web components which are included in the BES AppServer Edition, and can be optionally installed (Web Services pack (VisiExchange) component) as part of VisiBroker Edition. For more information, go to the BES Installation Guide. For documentation updates, go to www.borland.com/techpubs/bes. Apache web server implementation The BES implementation of the open-source Apache web server version 2.0 (an httpd server) is HTTP 1.1-compliant and is highly customizable through the Apache modules. Apache configuration The Apache web server comes pre-configured and ready-to-use when it is initially started. Many modules are dynamically loaded during the Apache startup. You can later customize its configuration for the IIOP connector, clustering, failover, and load balancing with one or more web container(s). You can use the Management Console to modify the configuration file, or you can use the directives in the plain text configuration file: httpd.conf. By default, the Apache httpd.conf file is located in the following directory: /var/domains//configurations// mos//conf Otherwise, for the location of the httpd.conf file, go to the configuration.xml file located in: /var/domains//configurations/ and search for the Apache Managed Object, apache-process httpd-conf sub-element attribute: httpd-conf= For more information about the Apache Managed Object elements and attributes, go to the BDOC Reference, Managed Object elements and attributes section. Chapter 4: Web components 29

Apache web server implementation For information about configuring the httpd.conf file for the IIOP connector/redirector, go to Chapter 5, “Web server to web container connectivity.” Apache configuration syntax Note When you edit the httpd.conf file, you must adhere to the following configuration syntax guidelines: ■ ■ ■ ■ ■ ■ The httpd.conf files contain one directive per line. To indicate that a directive continues onto the next line, use a back-slash “\” as the last character on a line. No other characters or white space must appear between the back-slash “\” and the end of the line. Arguments to directives are often case-sensitive, but directives are not casesensitive. Lines which begin with the hash character “#” are considered comments. Comments cannot be included on a line after a configuration directive. ■ Blank lines and white space occurring before a directive are ignored, so you can indent directives for clarity. For additional information on the Apache web server configuration options and general directive usage, go to the Apache Software Foundation web site at: http:// www.apache.org, or go to the Java API Reference. Running Apache web server on a privileged port Processes which access privileged ports on UNIX hosts must have appropriate permissions; the process must be started with the permissions of user root. Typically, only some processes in a particular configuration need to be started with root permissions. The setuser script helps configure BES to allow Apache web server start as root or with root permissions. Before starting the configuration, gather the following information about the system on which Apache is installed: 1 BES installation directory 2 User and group names for the account that the Agent should become after shedding its root UID, that is, the installation owner. 3 User and group names for the system root account (typically root/sys) The following steps describe the procedure for configuring the Apache web server to run on port 80. 1 Ensure that the Management Hub and the configuration containing the Apache web server are not running. 2 Enable multi-user mode on the BES installation. a b c Edit the property agent.mum.enabled.root.mo=true in /var/domains/base/adm/properties/agent.config Become root. Run the setuser script: setuser -u -g +m 30 BES Developer’s Guide

Chapter<br />

4<br />

Chapter4Web components<br />

Important<br />

This section provides information about the <strong>web</strong> components which are included in the<br />

BES AppServer Edition, and can be optionally installed (Web Services pack<br />

(VisiExchange) component) as part of VisiBroker Edition. For more information, go to<br />

the BES Installation Guide.<br />

For documentation updates, go to www.borland.com/techpubs/bes.<br />

Apache <strong>web</strong> <strong>server</strong> implementation<br />

The BES implementation of the open-source Apache <strong>web</strong> <strong>server</strong> version 2.0 (an httpd<br />

<strong>server</strong>) is HTTP 1.1-compliant and is highly customizable through the Apache<br />

modules.<br />

Apache configuration<br />

The Apache <strong>web</strong> <strong>server</strong> comes pre-configured and ready-to-use when it is initially<br />

started. Many modules are dynamically loaded during the Apache startup. You can<br />

later customize its configuration for the IIOP connector, clustering, failover, and load<br />

balancing with one or more <strong>web</strong> container(s). You can use the Management Console<br />

to modify the configuration file, or you can use the directives in the plain text<br />

configuration file: httpd.conf.<br />

By default, the Apache httpd.conf file is located in the following directory:<br />

/var/domains//configurations//<br />

mos//conf<br />

Otherwise, for the location of the httpd.conf file, go to the configuration.xml file located<br />

in:<br />

/var/domains//configurations/<br />

and search for the Apache Managed Object, apache-process httpd-conf sub-element<br />

attribute:<br />

httpd-conf=<br />

For more information about the Apache Managed Object elements and attributes, go to<br />

the BDOC Reference, Managed Object elements and attributes section.<br />

Chapter 4: Web components 29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!