It's all about the answers!

Ask a question

Build Forge HTML Redirect


Randall Beck (22413) | asked Jul 23 '17, 1:09 p.m.

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

Accepted answer


permanent link
Joshua Keefe (56) | answered Aug 03 '17, 2:22 p.m.

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

Comments
Randall Beck commented Aug 07 '17, 4:19 p.m. | edited Aug 07 '17, 4:24 p.m.

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


Joshua Keefe commented Aug 14 '17, 3:48 a.m.

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


Randall Beck commented Aug 16 '17, 1:06 p.m.

Thanks Josh, just what I needed.

Your answer


Register or 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.