Previous Page | Next Page

Best Practices for Configuring Your Middle Tier

Using an HTTP Server to Serve Static Content


Overview of Using an HTTP Server to Serve SAS Themes Web Application Static Content

Your middle-tier deployment can use an HTTP server to handle requests for the static content in the SAS Themes Web application. This HTTP server can be configured as a reverse proxy to forward requests for dynamic content to your Web application server, or the content can be deployed on a standard HTTP server. This strategy makes efficient use of the HTTP server, and enables the Web application server to devote its resources to dynamic content. The performance benefits are particularly notable for large-scale deployments that include a cluster of Web application servers. For an overview of this configuration, see Sample Middle-Tier Deployment Scenarios.


Example: Use Apache HTTP Server to Serve SAS Themes Web Application Static Content

This example describes how to configure Apache HTTP Server to server the SAS Themes Web application as static content on a Windows system. There is more than way one to configure Apache HTTP Server, and your configuration might differ from what is presented here.

  1. Locate the EAR file for SAS Web Application Themes. The EAR file is named sas.themes.ear and is located in the SAS-configuration-directory\Levn\Web\Staging directory.

  2. Unpack sas.themes.ear. On a Windows system, you can use the unzip utility.

    The EAR archive contains several files, including sas.theme.default.war and application.xml.

  3. Open the application.xml file in an editor.

    In application.xml, the URL for the application is shown as sas.theme.default.war. The mapping shows that the name of the application (the context root) is SASTheme_default.

  4. In the Apache document directory, create a directory that has the same name as the application (SASTheme_default). Here is an example:

    D:\Apache2.2\htdocs\SASTheme_default

  5. Extract the contents of sas.theme.default.war into the directory that you created in the previous step.

  6. Stop and restart Apache HTTP Server.

  7. On the Web application server, stop and uninstall the SAS Themes Web application.

  8. Use SAS Management Console to change the connection properties for SAS Themes.

    1. Select Application Management > Configuration Management.

    2. Right-click SASTheme_default and select Properties.

    3. Click the Connection tab, set Host Name and Port Number to the host name and port number of the Apache HTTP Server, and then click OK.

  9. Restart each of the SAS Web applications, or restart the Web application server.

When you access a SAS Web application, the SAS Themes Web application content is served by Apache HTTP Server rather than the Web application Server. In the Apache HTTP Server access log, you can verify that the files from the SASTheme_default directory are being served by Apache HTTP Server.

Previous Page | Next Page | Top of Page