HP Open Source Middleware Stacks Blueprint: LAMP Architecture on HP ProLiant BladeSystem Servers on RHEL

<Proxy *>
Order deny,allow
Deny from all
Allow from all
</Proxy>
3. For the preceding changes to take effect, restart your second Apache HTTP server by entering
the following command:
# /etc/init.d/httpd restart
4. Using the benchmarking tool, test the Apache Proxy server using the third system, which
acts as the web client:
# ab -c 10 -n 10 -X <YOUR_PROXY_SERVER_IP>:80 \
http://<YOUR_WEB_SERVER>/test.html
5. View the access log file on the Apache Proxy server. Messages similar to the following are
contained in the file:
YOUR_WEB_BROSWER_IP - - [11/May/2007:15:51:13 +0800]
"GET http://YOUR_WEB_SERVER_IP/test.html HTTP/1.0"
200 206 "-" "ApacheBench/2.0.40-dev"
View the access log file on the Apache HTTP server.
Messages similar to the following are contained in the file:
YOUR_PROXY_SERVER_IP - - [11/May/2007:16:05:19 +0800]
"GET http://YOUR_WEB_SERVER_IP/test.html HTTP/1.0"
200 206 "-" "ApacheBench/2.0.40-dev"
These messages verify that the Apache Proxy server configuration is successful.
Error Responses and Redirects
The following three types of error responses can be customized and are addressed in this section:
Plain text
Local URL redirect
External URL redirect
Customizing Plain Text Responses
The following is an example of how to customize a plain text error response:
1. Edit the /etc/http/conf/httpd.conf file by changing (or adding if it does not exist
already) the following line:
ErrorDocument 404 "The page you requested does not exist! Plain
2. Restart your Apache HTTP server for the changes take effect.
3. Verify the custom text error message by opening a browser and entering the following
website:
http://<YOUR_WEB_SERVER_IP>/non-exist
The following message appears:
The page you requested does not exist! Plain text example
Customizing Local URL Redirect Responses
The following procedure is an example showing how to customize a local URL redirect error
message.
1. Edit the file /etc/http/conf/httpd.conf (or add it if it does not already exist) by
entering the following line:
ErrorDocument 404 "/missing.html"
16