[Pmwiki-users] problem with url construction when using non-standard port

Bob Dively dive at panix.com
Fri Jun 6 13:09:47 CDT 2003


That's true, although a lot more work for my setup where I
deploy identical environments across a bunch of development,
pre-prod, and production servers each with its own address.

----- Original Message ----- 
From: "Patrick R. Michaud" <pmichaud at pobox.com>
To: "Bob Dively" <dive at panix.com>
Cc: <Pmwiki-users at pmichaud.com>
Sent: Thursday, June 05, 2003 11:40 AM
Subject: Re: [Pmwiki-users] problem with url construction
when using non-standard port


> Of course, the other solution is to simply set $ScriptUrl
explicitly
> in local.php; i.e., you could do:
>
>     $ScriptUrl =
"http://example.com:81/pmwiki/pmwiki.php";
>
> and then it'd always be correct.
>
> Pm
>
>
> On Thu, Jun 05, 2003 at 11:07:19AM -0400, Bob Dively
wrote:
> > I've got pmwiki 0.4.26 running on a Win2K server with
Apache
> > 2.0.45 and PHP 4.3.1. Apache is listening on port 81.
When I
> > go to http://example.com:81/pmwiki/pmwiki.php all of the
> > links on that page have the port doubled, e.g.,
> >
http://example.com:81:81/pmwiki/pmwiki.php?action=search&text=HomePage. I
> > corrected this behavior by commenting out lines 33 & 34
in
> > pmwiki.php, which are:
> >
> > if ($HTTP_SERVER_VARS['SERVER_PORT'] != "80")
> >   $ScriptUrl .= ':'.$HTTP_SERVER_VARS['SERVER_PORT'];
> >
> > I haven't tried to replicate this behavior on a
different OS
> > so I can't tell if it's Windows-specific.
> >
> >
> > _______________________________________________
> > Pmwiki-users mailing list
> > Pmwiki-users at pmichaud.com
> >
http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
> >
>
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
>
http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
>





More information about the pmwiki-users mailing list