Previous Topic: Apache Web Server

Next Topic: Sun Java Systems Web Server


Verify an Apache Web Server Configuration - Example

The following steps summarize how to verify the configuration. Use the steps only for reference.

Follow these steps:

  1. Open the Apache web server configuration file (httpd.conf).
  2. Make sure that the file contains the following entries:
    LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule proxy_module modules/libproxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    AddModule mod_rewrite.c
    AddModule mod_proxy.c
    RewriteLog "/etc/httpd/logs/rewrite_log"
    RewriteLogLevel 9
    
  3. Between the Location tags, specify the rules and conditions to use for the redirection. Specify a Location section for each application you want the Apache web server to redirect, for example:
    <Location /application_root_dir>
    RewriteEngine On
    RewriteCond %{THE_REQUEST} \.jsp
    RewriteRule ^(.+) http://somehost.com:90%{REQUEST_URI} [P]
    RewriteCond %{THE_REQUEST} Example
    RewriteRule ^(.+) htt://somehost.com:90%{REQUEST_URI} [P]
    </Location>