create new tag
, view all tags

Bug: 404 error with Beta 03 Aug 2001 on Windows

Unable to access any page beyond http://myserver.com/twiki010803/bin/view.pl (typical link - not actual). Generated urls seem to be missing ".txt" extension. I have carefully reviewed my .cfg .htaccess httpd.conf etc. files and am unable to isolate anything that could cause this. I even diffed the old (beta 20010720) and this twiki.pm to see what I could see. As far as I can see, the logic to generate a file extension is the same.

A generated link looks like: http://myserver.com/twiki010803/bin/view.pl/Main/TWikiUsers

Actual file is located in: /apache/twiki010803/data/Main/TWikiUsers.txt

Exerpt from twiki.cfg:

# variables that need to be changed when installing on a new server:
# ==================================================================
#                   %WIKIHOMEURL% : link of TWiki icon in upper left corner :
$wikiHomeUrl      = "http://myserver.com/twiki010803/";
#                   Host of TWiki URL :    (Example "http://myhost.com:123")
$defaultUrlHost   = "http://myserver.com/";
#                   %SCRIPTURLPATH% : cgi-bin path of TWiki URL:
$scriptUrlPath    = "/twiki010803/bin";
#                   %PUBURLPATH% : Public data path of TWiki URL (root of attachments) :
$pubUrlPath       = "/twiki010803/pub";
#                   Public data directory, must match $pubUrlPath :
$pubDir           = "k:/apache/twiki010803/pub";
#                   Template directory :
$templateDir      = "k:/apache/twiki010803/templates";
#                   Data (topic files) root directory :
$dataDir          = "k:/apache/twiki010803/data";

This is a fresh install into a new directory.


I reverted back to beta20010720 and it works just fine. Generated URLs don't have file extensions, so that's a false lead. They look the same as in the newer one. Now I have no idea why, it's just not working. Click on a link, get a 404 error generated by the server.

Test case

Click on any link


TWiki version: beta 20010803
TWiki plugins: default
Server OS: NT 4.0sp6
Web server: Apache 1.3.20
Perl version: ActiveState 5.6 build 626
Client OS: NT 4.0sp6
Web Browser: IE 5.5sp1

-- DavidLeBlanc - 05 Aug 2001

On my system (Debian Linux, Apache) the 20010803beta is working fine, AFAIK
Therefore the problem is not general.

Since you get a 404 there is a access problem for the server, he cannot find something. Probably you should check if you used the same directory names for the location of TWiki and for the server configuration.

-- HubertWeikert - 05 Aug 2001

Because it does not happen on Linux does not mean it's not a general problem for Windows OS users. Since i've gotten in working by using the name it expects, I don't know precisely what the problem might be, if there is one at all.

I deleted and reinstalled as k:/apache/twiki after renaming previous twiki directory tree to twikiold. I copied over the .htaccess and twiki.cfg files after verifying that the distributed versions are the same in the new version and the old. It works now. I wonder if the directory "twiki010803" created a problem internal to twiki or something?

-- DavidLeBlanc - 07 Aug 2001

It looks like it was some kind of configuration problem. One possible problem maker could have been your $defaultUrlHost, it should not have a trailing slash.

My Beta test installation is working fine, also with numbers in the path, http://TWiki.org/cgi-bin/b20010803/bin/view/ . Feel free to make tests there.

Thanks for reporting this, better to have it tested in many environments.

-- PeterThoeny - 07 Aug 2001

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2001-08-07 - 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.