Apache

20101214

 * http://newestindustry.org/2007/06/06/dear-apache-software-foundation-fix-the-msie-ssl-keepalive-settings/

20101208

 * http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

redirect vs rewrite Rewrite is a Server-Side operation Redirect sends an immediate response to the Client
 * http://cheeso.members.winisp.net/Iirf20Help/html/2e820208-c2eb-4d6d-a134-c63f7d41244f.htm

common.conf

 DocumentRoot /opt/proj/www/html/common ServerName common CustomLog /tmp/common_access_log vhost_common

RewriteEngine On RewriteLog /tmp/common_rewrite_log RewriteLogLevel 5 RewriteMap portmap txt:/opt/proj/www/rewrite.txt

RewriteCond %{REQUEST_URI} !^/nosuchdomain.html RewriteRule (.*) ${portmap:%{HTTP_HOST}|http://%{HTTP_HOST}/nosuchdomain.html} [L,R]



<VirtualHost 10.50.108.202:443 DocumentRoot /opt/proj/www/html/common ServerName common CustomLog /tmp/common_access_log vhost_common

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP SSLCertificateFile /opt/proj/ssl/star_domain_com_apache.pem SSLCertificateKeyFile /opt/proj/ssl/star_domain_com_apache.key SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0

RewriteEngine On RewriteLog /tmp/common_rewrite_log443 RewriteLogLevel 1 RewriteMap portmap txt:/opt/proj/www/rewrite.txt

RewriteCond %{REQUEST_URI} !^/nosuchdomain.html RewriteRule (.*) ${portmap:%{HTTP_HOST}|http://%{HTTP_HOST}/nosuchdomain.html} [L,R]



rewrite.txt

app-tst-lb1 https://app-tst-lb1.domain.com:20201/app app-tst-lb1.domain.com https://app-tst-lb1.domain.com:20201/app

This technique maps a simple request on port 80 (with specific dns name) to a specific app and port on the destination machine.


 * http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html