SID-01542: Path problems: links point to /Main/WebHome
| Status: |
Answered |
TWiki version: |
|
Perl version: |
v5.14.2 |
| Category: |
CategoryInstallation |
Server OS: |
Ubuntu 12.04, kernel 3.5.2-linode45 |
Last update: |
13 years ago |
I installed twiki yesterday.
Links are pointing to, for example, /Main/WebHome rather than to /twiki/bin/view/Main/WebHome. I realize this is good in that the links are shorter and more readable, and it was probably done intentionally. But with my setup it doesn't quite work this way. If I type in "/twiki/bin/view/Main/WebHome" it works, so the files are actually in there.
I'd be happy to email my apache config file and the twiki configuration, too, if that would help.
I guess this is something to fix with a script alias or just an alias, but from reading about those they seem to do the opposite thing. That is, those would seem to help if I wanted to shorten the /twiki/bin/view part to just "/'. I will keep trying that, though.
I have installed this within a virtual host on a linode server.
Thanks in advance.
--
BenDugan - 2012-09-26
Discussion and Answer
How did you configure? It is safest to use the
ApacheConfigGenerator.
--
PeterThoeny - 2012-09-26
I'm sorry my response was slow: I did not realize you had written back.
I did not use the
ApacheConfigGenerator because my server is set up with virtual hosts. Our server is on linode, and I followed their guide which included a template /etc/apache2/conf.d/twiki.conf file. But this guide isn't exactly right: its for an older version of ubuntu and it assumes this will be the only thing running on this host. Still, its a good guide:
http://library.linode.com/web-applications/wikis/twiki/ubuntu-10.10-maverick
I will try to run
ApacheConfigGenerator and compare what it makes to what I put in my apache config files. I'll let you know what I find.
Thanks very much for your rely and, of course, for your invaluable development of twiki!
--
BenDugan - 2012-09-27
I use linode and ubuntu. This is what I have in the apache config for shorter urls. It works.
ScriptAlias /bin "/var/www/twiki/bin"
Alias /pub "/var/www/twiki/pub"
Alias / "/var/www/twiki/bin/view/"
<Directory "/var/www/twiki/bin">
Options +ExecCGI
</Directory>
And in configure script
{ScriptUrlPath} = '/bin';
{ScriptUrlPaths}{view} = '';
{PubUrlPath} = '/pub';
--
EnriqueCadalso - 2012-10-17
Thanks SO much Enrique! These alias examples got it working. (My paths are different, but that's a detail.)
I'm sorry I didn't reply sooner. I just got a chance to try it.
--
BenDugan - 2012-10-23
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.