12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

where and are the attributes of the installation owner account<br />

(as described in B above).<br />

3 Start the Management Hub.<br />

4 Edit the Apache <strong>web</strong> <strong>server</strong> properties in the Management Console.<br />

a<br />

b<br />

c<br />

d<br />

e<br />

f<br />

g<br />

h<br />

Right click the Apache <strong>web</strong> <strong>server</strong> MO, and select Properties.<br />

In the Properties dialog, select the Apache Process Settings tab.<br />

Click More settings to open the Advanced Process Settings dialog.<br />

Select the Platform Specific Settings tab.<br />

In the Unix Settings group enter the user and group names for the system root<br />

account in the Start as user and Start as group fields (as described in C above).<br />

Click OK to close the Advanced Process Settings dialog.<br />

In the Properties dialog, select the Files tab, and select the httpd.conf file.<br />

Change the User and Group directives to the user and group name values for the<br />

account that owns the BES installation (as described in B above).<br />

i Change the Listen directive to 80.<br />

j<br />

Click OK to close the Apache Properties dialog.<br />

5 Start the configuration.<br />

Using the .htaccess files<br />

The Apache <strong>web</strong> <strong>server</strong> allows for decentralized management of configuration through<br />

the .htaccess files placed inside the <strong>web</strong> tree. These files are specified in the<br />

AccessFileName directive.<br />

Directives placed in .htaccess files apply to the directory where you place the file, and<br />

all sub-directories. The .htaccess files follow the same syntax as the main configuration<br />

files. Since .htaccess files are read on every request, changes made in these files take<br />

immediate effect. To find which directives can be placed in .htaccess files, check the<br />

Context of the directive. You can control which directives can be placed in .htaccess<br />

files by configuring the AllowOverride directive in the main configuration files.<br />

Apache directory structure<br />

After installing the Apache <strong>web</strong> <strong>server</strong>, by default, the following Apache-specific<br />

directory structure appears in:<br />

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

mos//<br />

Table 4.1<br />

Apache-specific directories<br />

Apache-specific Directory Name<br />

cgi-bin<br />

conf<br />

error<br />

htdocs<br />

icons<br />

logs<br />

proxy<br />

Description<br />

Contains all CGI scripts.<br />

Contains all configuration files.<br />

Contains all error html documents.<br />

Contains all HTML documents and <strong>web</strong> pages.<br />

Contains the icon images in .gif format.<br />

Contains all log files.<br />

Contains the proxies for your <strong>web</strong> application.<br />

Chapter 4: Web components 31

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

Saved successfully!

Ooh no, something went wrong!