Installation, Configuration, & Upgrades  :: 
Installation/Hostname problem... I think
 Top

  • Installed PN... got everything up and running, everything is beautiful except this. In my admin control panel, Blocks, Modules, Permissions, Quotes, all point to the wrong address... the rest are fine.

    This is what the link should look like

    Quote

    http://subdomain.domain.org/pn/html/index.php?module=Quotes&type=admin

    This is what the link is

    Quote

    http://intsubdomain.domain.org/pn/html/index.php?module=Quotes&type=admin

    There seems to be a little extra int in front of the hostname... but only on those four mentioned control panel items. :?

    Can anyone help me on this?
  • Maybe the quickest bet would be to try to reinstall...
  • I've reinstalled several times, even tried grabbing the tgz file again. Same problem... could there be some bug that gives trouble only when using a vhost?
  • Anyone?
  • My problem looks to be the same and I have not found any answers here. I am hosting a small family site with a local company and instead of http://users.state.domain.net/mysite/index.php?module=Quotes&type=admin I get http://10.10.10.10/mysite/index.php?module=Quotes&type=admin. It looks like it is pulling the internal ip address of the server I am hosting off of. Yours, since it is virtual is adding an int which may be some internal reference, I don't know, and that is why we are both asking for help. Help!! My problem is on the exact same modules. :?:
  • I fixed my problem which looked similar to yours by editing the pnAPI.php file. I changed

    Code

    function pnGetBaseURL()
    {
        global $HTTP_SERVER_VARS;

        if (empty($HTTP_SERVER_VARS['HTTP_HOST'])) {
            $server = getenv('HTTP_HOST');
        } else {
            $server = $HTTP_SERVER_VARS['HTTP_HOST'];
        }

    to

    Code

    function pnGetBaseURL()
    {
        global $HTTP_SERVER_VARS;

        if (empty($HTTP_SERVER_VARS['HTTP_HOST'])) {
            $server = getenv('HTTP_HOST');
        } else {
            $server = "users.state.domain.net";
        }

    You pretty much just hardcode it. Hope this helps you out with your problem, I know it can be hard to find an answer here, but I got the idea for doing this from reading other posts about different problems here. :D
  • Well... I was looking for a more elegant solution... but hardcoding works fine icon_lol

    Thanks!
This list is based on the users active over the last 60 minutes.