create new tag
, view all tags

SID-02361: Entry point / directories

Status: Asked Asked TWiki version: 6.0.2 Perl version: 5.016003 (linux)
Category: CategoryInstallation Server OS: CentOS release 7.3.1611 (Core) Last update: 21 hours ago

I'm trying to untangle this messed up install of TWiki-6.0.2, Sun, 29 Nov 2015, build 2968.

What's the URL I should put in my browser to bring up the main page / startup / root of all goodness page? The server is a VM and doesn't have a DNS entry just yet.

I think part of my problem is that there's an existing web app on, which works, and has to STAY working. So maybe my /etc/httpd/conf/httpd.conf is wrong.

Here's some salient parts of httpd.conf

<Directory />
    AllowOverride none
    Require all denied
DocumentRoot "/var/www/html"
<Directory "/var/www">
    AllowOverride None
    Require all granted
<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
<skip some>
IncludeOptional conf.d/*.conf

Now then, the IncludeOption isn't specified using an absolute path, but I suspect it is somehow working, because the other app on this server is working, and that is specified in /etc/httpd/conf.d/otherapp.conf

Also in /etc/httpd/conf.d we find twiki.conf, and he has directives like

<Directory "/var/www/twiki/bin">
<Directory "/var/www/twiki/pub">

So I would expect maybe to work (it doesn't.)

Not sure where to start here.

-- TWiki Guest - 2018-05-15

Discussion and Answer

You seem pretty close if both ! and work.

  • Your TWiki entry page should be - you can omit /WebHome and /Main for brevity. This means that You have a working ScriptAlias pointing /do URLs to /var/www/twiki/bin.
  • The "root" will not bring up anything TWiki related unless you explicitly configure your webserver to do so. Your existing web application may live just fine next to TWiki.

The root of the pub directory is intentionally forbidden to be viewed directly in a browser, so is expected to give a 403 status code. What I do not see in your configuration is the mapping from URL-space to directory-space for your pub directory. If you expect URLs like to deliver images, css, etc then there should be a directive like the following:

Alias /wiki/pub "/var/www/twiki/pub"

Both the URL-path and the directory path must also be provided in TWiki's configuration under the entries {PubUrlPath} and {PubDir}, respectively.

-- Harald Jörg - 2018-05-16

Yes! Thanks very much Harald, works.

The shortened version, also works.

As to adding the Alias /wiki/pub... directive, I did so, putting it in the twiki.conf file (which is included into the main httpd.conf file). It works as expected, delivering an image when I browse to

But is that needed for anything?


{PubUrlPath} /pub
{PubDir} /var/www/twiki/pub

Look ok?

-- TWiki Guest - 2018-05-16

Almost correct smile

Your {PubUrlPath} should be /wiki/pub, or to be precise: The first parameter of Apache's Alias directive must match the value of {PubUrlPath} and the second parameter must match the value of {PubDir}. This is needed because static content is delivered directly by Apache, not going through TWiki. So, Apache needs to know where to find the stuff, and TWiki needs to know which links it must create pointing to images and stuff (that's {PubUrlPath}) and where it must write its files if you attach something (that's {PubDir}).

-- Harald Jörg - 2018-05-16

      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.
Status Asked
Title Entry point / directories
SupportCategory CategoryInstallation
TWiki version 6.0.2
Server OS CentOS release 7.3.1611 (Core)
Web server Apache 2.4.6 67.el7.centos.6
Perl version 5.016003 (linux)
Browser & version any
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2018-05-16 - HaraldJoerg
  • 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.