Private IP referenced instead of Public URLSubmitted by lkirkbride on Tue, 04/15/2008 - 8:26am.This is probably a fairly easy fix but I am very new to Linux and Apache. I am trying to allow access to my project pier jumpbox from a public address. I have my firewall setup and my DNS records created and can hit the server from the outside world but when it tries to render the login page it fails. This is due to the URL being redirected to the private IP address like so http://[PRIVATE IP]/projectpier/index.php?c=access&a=login I know there is some variable somewhere that is telling it to redirect to the private ip but I don't know where. Can someone shed some light on this for me? Thanks Lucas |
SearchJumpBox Open Collections |
Private IP referenced instead of Public URL
Ok, first off this will only work if you have registered your JumpBox and enabled shell access.
This gets a little tricky in this version of the JumpBox platform because it doesn't include a convenient way of accomplishing this. The problem is, project pier hardcodes its hostname or IP address in its configuration file. If the JumpBox is configured to use DHCP, we continually update this setting.
So you MUST make your JumpBox use a static IP address. This will keep the config file from being updated. Now you can go edit the /var/data/projectpier/config/config.php file on the JumpBox:
and change PRIVATE_IP on the following line to be the public IP or hostname:
define('ROOT_URL', 'PRIVATE_IP');I think hostname will work if you have everything else set up correctly.
Austin
Still Required on 1.1?
Are these steps still required on the 1.1 Jumpbox platform?
Do I still need to set the JumpBox with a Static IP? I would prefer to set a dynamic IP via my network's DHCP server. That DHCP server is assigning a static IP to the JumpBox.
Two parts to this question ...
There are actually two parts to this question.
1) Do you need to make a static IP?
Yes, unless your DHCP server allows you to assign the same IP over and over to the JumpBox. Otherwise how would you know what IP to point the firewall at?
2) Do you need to still manually set the IP address in the config.php file?
No, you don't need to edit this manually. We have added a "Public Address" feature that handles this for you. After you have set your JumpBox to a static IP (or arranged for it to get the same IP address on your DHCP server) you can follow the instructions in the later half of this page :
http://www.jumpbox.com/docs/v11/changeHostname
Of course, the fix listed above will work. That is simply what the "Public Address" feature does. Though changing it manually will likely break other functionality of the JumpBox so we strongly suggest you use our Administration tool to make the change.
Austin
Yes, still required
Just answered my own question by trying things out.
This process is still required on the 1.1 JumpBox platform, and works exactly as described above.
Private IP referenced instead of Public URL
Thanks that worked great. I was able to access the login page using my URL.