Categories

ID #1303

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

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 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  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/

ProxyPassReverse /userportal/ https://localhost:8081/userportal/

ProxyPass /json https://master:8081/json

ProxyPassReverse /json https://master:8081/json


_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/

ProxyPassReverse /userportal/ https://localhost:8081/userportal/

ProxyPass /json https://master:8081/json

ProxyPassReverse /json https://master:8081/json


_EOF_

 

3. Reload the webserver configuration file:

 

# service httpd reload

Tags: https, login node, proxy, reverse proxy, userportal

Related entries:

You cannot comment on this entry