[Koha-bugs] [Bug 33115] koha-dump: create option to include htdocs for OPAC and Intranet sites

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 6 23:53:30 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33115

--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
(In reply to David Liddle from comment #4)
> Thank you! That is a fantastic suggestion. Your idea of making such a
> function available out of the box is excellent. As soon as I could, I logged
> into what you might call our development server, created the directory and
> alias, and then also added the directory to the <access_dir> section in
> koha-conf.xml.

I haven't used the access_dir feature but I think that might be defeating the
purpose of the access_dir feature. Not a big deal if you do it intentionally I
suppose but something to keep in mind, especially if anyone takes over your
system, as they might think they're putting files in a private directory and
not realizing they're being exposed publicly via Apache.

> - I did have to figure out that, when you wrote ${instance}, it wasn't
> something of a wildcard entry that Apache would apply to any given instance.
> - I'm not quick enough with regular expressions to know if one could enter a
> single alias in such a way that only the web folder of the applicable
> instance has its files served by the instance's base URL.

I'm not sure what you mean by this. The ${instance} is a variable used in the
Apache configuration. You can see examples of it throughout the Koha Apache
configuration like for the sitemap on /etc/koha/apache-shared-opac.conf

It's defined with this directive (where "kohadev" would be the name of your
instance): Define instance "kohadev"

> - The pickle of this method is that /etc/koha/apache-shared-opac.conf is
> also not included by koha-dump. So if one uses koha-restore, one still has
> to document and implement the changes to that file. Unless, I suppose, a web
> folder is supplied from the start and a clever alias added to the
> apache-shared conf.

It is a bit of a pickle. 

> - IF such a thing was built in, I wonder if it would be good or bad to add
> the web folder to the Upload tool or have a separate page of its own.

If you're happy for the files to be managed via the Web UI, then you can
already use the "Upload" tool. You just need to tick "Allow public downloads". 

> I know that much of the above would really belong in a new feature bug
> describing the addition and function of a web folder. Who should take on the
> creation of that? As for this bug, I think your suggestion renders it pretty
> squashed.

You've read my mind ;).

I'll mark this one as closed, and you can open a new one describing the
behaviour that you're envisioning. Although I think what you're describing is
really already possible using the existing "Upload" tool. Personally, I
probably wouldn't work on a web tool for this.

I already use something like "/var/lib/koha/${instance}/web" although I
maintain that configuration using a customized Koha Debian package. I'd be
interested in upstreaming that change. I think I'll open a report for that
now...

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list