Skip to main content
Asked a question 2 years ago

How do I install the user portal on a login node from 8.0 onward?

Where am I?

In Bright Computing, Inc. you can ask and answer questions and share your experience with others!

How to install the user portal on a login node from 8.0 onward

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 localhost1 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  on
RewriteRule ^/$ https://%{SERVER_NAME}/userportal/ [R,L]
RewriteRule ^/(userportal)$ https://%{SERVER_NAME}/\$1/ [R,L]
ProxyPreserveHost On
ProxyRequests Off
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyPass /userportal/ https://localhost:8081/userportal/3
ProxyPassReverse /userportal/ https://localhost:8081/userportal/3
ProxyPass /json https://master:8081/json6
ProxyPassReverse /json https://master:8081/json6
_EOF_

For Apache httpd 2.2 the lines can be:
# cat > /etc/httpd/conf.d/userportal.conf << _EOF_
RewriteEngine  on
RewriteRule ^/$ https://%{SERVER_NAME}/userportal/ [R,L]
RewriteRule ^/(userportal)$ https://%{SERVER_NAME}/\$1/ [R,L]
ProxyPreserveHost On
ProxyRequests Off
SSLProxyEngine on
ProxyPass /userportal/ https://localhost:8081/userportal/3
ProxyPassReverse /userportal/ https://localhost:8081/userportal/3
ProxyPass /json https://master:8081/json6
ProxyPassReverse /json https://master:8081/json6
_EOF_

3. Reload the webserver configuration file:
# service httpd reload