The following procedure describes how to install and serve the user portal on a login node.
1. Install the user portal rpm on the login node:# yum -y install cm-webportal
2. Configure apache httpd as a reverse proxy to serve the user portal on localhost and to proxy the call to json api to CMDaemon listening on the head node.
For Apache httpd 2.4 the rewrite lines and proxy config changes can be:# cat > /etc/httpd/conf.d/userportal.conf << _EOF_RewriteEngine onRewriteRule ^/$ https://%{SERVER_NAME}/userportal/ [R,L]RewriteRule ^/(userportal)$ https://%{SERVER_NAME}/\$1/ [R,L]ProxyPreserveHost OnProxyRequests OffSSLProxyEngine onSSLProxyVerify noneSSLProxyCheckPeerCN offSSLProxyCheckPeerName offSSLProxyCheckPeerExpire offProxyPass /userportal/ https://localhost:8081/userportal/ProxyPassReverse /userportal/ https://localhost:8081/userportal/ProxyPass /json https://master:8081/jsonProxyPassReverse /json https://master:8081/json_EOF_
For Apache httpd 2.2 the lines can be:# cat > /etc/httpd/conf.d/userportal.conf << _EOF_RewriteEngine onRewriteRule ^/$ https://%{SERVER_NAME}/userportal/ [R,L]RewriteRule ^/(userportal)$ https://%{SERVER_NAME}/\$1/ [R,L]ProxyPreserveHost OnProxyRequests OffSSLProxyEngine onProxyPass /userportal/ https://localhost:8081/userportal/ProxyPassReverse /userportal/ https://localhost:8081/userportal/ProxyPass /json https://master:8081/jsonProxyPassReverse /json https://master:8081/json_EOF_
3. Reload the webserver configuration file:# service httpd reload