Tags:
create new tag
view all tags

SID-02405: Troubleshooting URL shortening

Status: Answered Answered TWiki version: 6.0.1 Perl version: 5.22
Category: CategoryInstallation Server OS: Ubuntu 16.04 Last update: 6 years ago

I'm attempting to follow the guide at https://twiki.org/cgi-bin/view/TWiki.ShorterUrlCookbook to shorten the URLs our existing 6.0 TWiki installation uses.

Here's as much relevant config as I can find.

In Apache's twiki.conf:

ScriptAlias  /bin                  "/var/www/twiki/bin"
Alias           /pub                 "/var/www/twiki/pub"
Alias           /pub/Sandbox   "/var/www/twiki/pub/Sandbox"
ScriptAlias  /pub                 "/var/www/twiki/bin/viewfile"
Alias           /                      "/var/www/twiki/bin/view"

In twiki/lib/LocalSite.cfg:

$TWiki::cfg{ScriptUrlPath} = '';
$TWiki::cfg{ScriptUrlPaths}{view} = '';

Under this configuration, the Main Web front page loads for http://mywiki.org, but everything else I try gives a 404. For example, the links from the front page to the Main Web WebHome http://mywiki.org/Main/WebHome gives a 404.

Please help me figure out what I'm missing. Even helping me construct the correct URL for the config page will help.

I have full access to the installation and I'm very comfortable searching and editing files. I just need to know what files and what edits (explaining why I'm making the edits will help even more).

Thanks!

-- TWiki Guest - 2019-05-17

Discussion and Answer

This might be a simple typo: Change the following line by adding a slash:

Alias           /                      "/var/www/twiki/bin/view"

Alias           /                      "/var/www/twiki/bin/view/"

Depending on your settings you might see details in Apache's error log that it can't find ="/var/www/twiki/bin/viewMain/WebHome".

-- Harald Jörg - 2019-05-17

Harald,

That fixed everything, thanks for your help!

-- TWiki Guest - 2019-05-20

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Troubleshooting URL shortening
SupportCategory CategoryInstallation
TWiki version 6.0.1
Server OS Ubuntu 16.04
Web server Apache 2.4
Perl version 5.22
Browser & version Any
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2019-05-20 - TWikiGuest
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.