Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Build Forge HTML Redirect

I have just moved my Build Forge installation from Austin to RTP.

How can I redirect my customers to the new URL, preferably with a brief message asking them to update their bookmarks?

Thanks

0 votes


Accepted answer

Permanent link

You should be able to use the HTML meta tab to perform the redirection.
An example can be found under the following.

Redirect website after certain amount of time
https://stackoverflow.com/questions/3292038/redirect-website-after-certain-amount-of-time

Randall Beck selected this answer as the correct answer

0 votes

Comments

Thanks Josh for responding, but what I need to know is the fully qualified pathname to the BF Tomcat file that needs to be updated with the redirect?

When one of my customers logs into my BFMC, the use this URL:

https://auscbforge.tivlab.raleigh.ibm.com/

which defaults to port 443, but immediately changes to port 8443.

I am looking for the exact path from BF_HOME, which in my case is /opt/buildforge/server/tomcat. Looking under that directory I see:

drwxr-xr-x 2 root root 4.0K Sep 20  2016 bin/
drwxr-xr-x 2 root root 4.0K Sep 20  2016 lib/
drwxr-xr-x 3 root root 4.0K Sep 20  2016 conf/
drwxr-xr-x 3 root root 4.0K Sep 20  2016 work/
drwxr-xr-x 4 root root 4.0K Sep 24  2016 webapps/
drwxr-xr-x 2 root root 4.0K Jul 24 11:45 temp/
drwxr-xr-x 2 root root  32K Aug  7 00:32 logs/
What is the name of the file that needs to contain the redirect HTML?

--Randy

Hello Randy,

Generally, it is not recommended to have the Build Forge login page to be directly bookmarked.
The Build Forge site address (http://MyBFServer/fullcontrol) should be bookmarked so that users will be redirected according to the Build Forge config.

The redirection mechanism is controlled under Build Forge config file (buildforge.conf).

The web server(Apache) will take the redirection from the main buildforge.conf file ($BF_HOME/buildforge.conf) services_url entry.
While the services layer (Tomcat/WAS) will take it from the buildforge.conf file buried under the WAR files.

The way Apache is configured (httpd.conf) by default under Build Forge, it should be looking for either an index.html or index.php file.
Where Build Forge supplies an index.php file to start the user's connection ($BF_HOME/webroot/public/index.php).
You should be able to generate an index.html file with the HTML meta tag or update the index.php to redirect the user's to the new site.

The php file would simply need a "header" function to redirect the user.
http://us3.php.net/manual/en/function.header.php

Thanks Josh, just what I needed.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,124

Question asked: Jul 23 '17, 1:09 p.m.

Question was seen: 2,333 times

Last updated: Jul 01 '23, 10:05 a.m.

Confirmation Cancel Confirm