Question
We are running a twiki installation on one of our servers from our company. We recently updated from dec 2001 till feb 2003, but we had some problems with it. After solving most of them, we could not get it to work to be viewed from outside! It can be viewed internal, but not external. This because it generates links which countain the local address.
Example:
http://servername/twiki/bin/view
that was with config:
$defaultUrlHost = "http://www.url.nl:port/";
$scriptUrlPath = "/twiki/bin";
$pubUrlPath = "/twiki/pub";
after changing the config to the following:
$defaultUrlHost = "http://www.url.nl:port/";
$scriptUrlPath = "$defaultUrlHost/twiki/bin";
$pubUrlPath = "$defaultUrlHost/twiki/pub";
everything seemed to work... only not the links in the topics. It produces a link like:
http://*servername*http://www.url.nl:port/twiki/bin/view/
I've been fighting with it the whole day already, and I have no idea were I can change/fix it. Sadly modifying the apache install (that is where it most likely gets the servername from?) is not an option.
Thanks in advance
-- Only warnings in testenv: --
$defaultUrlHost:
http://www.url.nl:port
Note: This must be the protocol and host part (with optional port number) of the TWiki URL.
Warning: This does not match HTTP_HOST
$scriptUrlPath:
http://www.url.nl:port/twiki/bin
Note: This must be the URI of the TWiki cgi-bin directory.
Warning: This does not match REQUEST_URI
- TWiki version: 01 feb 2003
- Perl version: 5.6.1
- Web server & version: Apache 1.3.27
- Server OS: Linux kernel: 2.4, Dist: Debian
- Web browser & version: IE 5.0
- Client OS: Windows 2000
--
TWikiGuest - 11 Mar 2003
Answer
Not exactly sure I understand your environment, but
$defaultUrlHost
should definitely not be added to
$scriptUrlPath
and
$pubUrlPath
because TWiki does that internally where needed, based on the actual host name (not the
$defaultUrlHost
) so that you can run the same TWiki under http and https for example. TWiki extracts the actual host name from CGI's
$query->url
parameter.
Also,
$defaultUrlHost
should not have a trailing slash.
$defaultUrlHost = "http://www.url.nl:8080";
$scriptUrlPath = "/twiki/bin";
$pubUrlPath = "/twiki/pub";
--
PeterThoeny - 14 Mar 2003