30.01.2015 Views

CSP Gateway Configuration Guide - InterSystems Documentation

CSP Gateway Configuration Guide - InterSystems Documentation

CSP Gateway Configuration Guide - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configuring Apache Virtual Hosts<br />

2. Click Server Access to create a server configuration for cache1 and cache2.<br />

3. Click Application Access to create the application paths /cache1/csp/sys/ and /cache2/csp/sys/.<br />

Set the Default Server for path /cache1/csp/sys/ to be the name of the server configuration set up for cache1 in the<br />

previous step.<br />

Set the Default Server for path /cache2/csp/sys/ to be the name of the server configuration set up for cache2 in the<br />

previous step.<br />

4. Within the configuration for the two remote Caché servers, cache1 and cache2, ensure that the paths to the portal are<br />

defined as paths /cache1/csp/sys/ and /cache2/csp/sys/ respectively.<br />

5. If the Web server is IIS then set up virtual directories for /cache1 and /cache2 as described in the Add Virtual Directories<br />

to IIS section.<br />

If using an Apache Web server see Add Aliases to Apache <strong>Configuration</strong>s.<br />

3.3 Configuring Apache Virtual Hosts<br />

An alternative method for accessing an application on multiple servers is to use virtual host arrangements. Virtual hosts<br />

are a common feature in Apache Web server configurations and are straightforward to set up in this server environment.<br />

For example, consider two virtual hosts, each listening on a separate TCP port:<br />

http://virtual_host1:81/csp/sys/UtilHome.csp<br />

http://virtual_host2:82/csp/sys/UtilHome.csp<br />

Both virtual_host1 and virtual_host2 are served by the same Web server and <strong>CSP</strong> <strong>Gateway</strong>.<br />

The following shows the Apache configuration (httpd.conf) for this arrangement:<br />

<br />

ServerName virtual_host1<br />

<br />

<br />

ServerName virtual_host2<br />

<br />

Configure the use of these virtual hosts using the <strong>CSP</strong> <strong>Gateway</strong> Management application as follows:<br />

1. Navigate to the Caché Server Pages <strong>Gateway</strong> Management home page by pointing a browser to:<br />

http://localhost/csp/bin/Systems/Module.cxw<br />

2. Click Server Access to create a server configuration for cache1 and cache2.<br />

3. Click Application Access to create the application paths //virtual_host1/csp/sys/ and //virtual_host2/csp/sys/.<br />

Note the use of the double forward-slash (//) to introduce the virtual host name.<br />

Set the Default Server for path //virtual_host1/csp/sys/ to be the name of the server configuration set up for cache1 in<br />

the previous step.<br />

Set the Default Server for path //virtual_host2/csp/sys/ to be the name of the server configuration set up for cache2 in<br />

the previous step.<br />

4. No changes are required in the configuration of the two remote Caché servers. The application path for the portal<br />

remains as /csp/sys/ in both cases.<br />

See Virtual Hosts Overview for more information.<br />

<strong>CSP</strong> <strong>Gateway</strong> <strong>Configuration</strong> <strong>Guide</strong> 55

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

Saved successfully!

Ooh no, something went wrong!