SID-02405: Troubleshooting URL shortening
| Status: |
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
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.