Tuesday 7 August 2012

An Aide Memoire - IBM HTTP Server and IBM Connections / WebSphere Portal

Purely for my own recollection, these are the key directives that I need to add to IBM HTTP Server's configuration file - httpd.conf - in order to: -

(a) Enable SSL
(b) Force "redirection" from HTTP to HTTPS
(c) Always land on the Connections Homepage -OR- land at /wps/portal rather than the stock IHS welcome page - index.html 

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
<IfModule mod_ibm_ssl.c>
    Listen 443
    KeyFile /opt/IBM/HTTPServer/ssl/key.kdb
    SSLDisable
    SSLStashFile /opt/IBM/HTTPServer/ssl/key.sth
    <VirtualHost *:443>
ServerName ic301.uk.ibm.com
        SSLEnable
        SSLProtocolDisable SSLv2
    </VirtualHost>
</IfModule>

# IBM Connections specific

<IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}/homepage [L]
        RewriteLog logs/rewrite.log
        RewriteLogLevel 4
</ifModule>

# WebSphere Portal specific

<ifModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{SERVER_PORT} ^80$
     RewriteRule ^/$ /wps/portal/ [R=301,L]
     RewriteLog logs/rewrite.log
     RewriteLogLevel 4
</ifModule>

LoadModule was_ap22_module /opt/IBM/HTTPServer/Plugins/bin/32bits/mod_was_ap22_http.so
WebSpherePluginConfig /opt/IBM/HTTPServer/Plugins/config/webserver1/plugin-cfg.xml








No comments:

Visual Studio Code - Wow 🙀

Why did I not know that I can merely hit [cmd] [p]  to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub...