Tags:
create new tag
view all tags

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 smile

-- 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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2003-07-27 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.