Bugzilla – Attachment 163990 Details for
Bug 35812
Should specify canonical URLs to help search indexers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH 4/4] Bug 35812: Fix search URL aliases in Plack Apache config
0004-Bug-35812-Fix-search-URL-aliases-in-Plack-Apache-con.patch (text/plain), 2.48 KB, created by
Michał
on 2024-03-27 12:28:30 UTC
(
hide
)
Description:
[PATCH 4/4] Bug 35812: Fix search URL aliases in Plack Apache config
Filename:
MIME Type:
Creator:
Michał
Created:
2024-03-27 12:28:30 UTC
Size:
2.48 KB
patch
obsolete
>From 595485dea860ee6c9830b04ea3f2142850858d3c Mon Sep 17 00:00:00 2001 >From: MichaÅ Kula <148193449+mkibp@users.noreply.github.com> >Date: Wed, 27 Mar 2024 13:25:49 +0100 >Subject: [PATCH 4/4] Bug 35812: Fix search URL aliases in Plack Apache config > >Mimic missing stuff from apache-shared-opac.conf into apache-shared-opac-plack.conf, where /search and /opac-search.pl aliases were missing. > >Note that while RewriteRule applies before reverse proxy directives and works, ScriptAlias applies purely to standard cgi perl scripts, meaning it didn't apply there. > >Now it's mimicked analogously to how /index.html is configured. > >This patch fixes an issue where someone might have just a reverse proxy to Plack configured without native Perl scripting, where this URL would then otherwise be failing. >--- > debian/templates/apache-shared-opac-plack.conf | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/debian/templates/apache-shared-opac-plack.conf b/debian/templates/apache-shared-opac-plack.conf >index bee75e95f1..5d15a76023 100644 >--- a/debian/templates/apache-shared-opac-plack.conf >+++ b/debian/templates/apache-shared-opac-plack.conf >@@ -14,10 +14,14 @@ > RequestHeader set X-FORWARDED-PROTO "https" env=HTTPS > > #Â Point the OPAC site to Plack >- ProxyPass /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-main.pl" >- ProxyPassReverse /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-main.pl" > ProxyPass /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac" > ProxyPassReverse /cgi-bin/koha "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac" >+ ProxyPass /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-main.pl" >+ ProxyPassReverse /index.html "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-main.pl" >+ ProxyPass /search "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-search.pl" >+ ProxyPassReverse /search "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-search.pl" >+ ProxyPass /opac-search.pl "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-search.pl" >+ ProxyPassReverse /opac-search.pl "unix:/var/run/koha/${instance}/plack.sock|http://localhost/opac/opac-search.pl" > > #Â Point the /api endpoint to Plack > RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl >-- >2.42.0.windows.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35812
:
163987
|
163988
|
163989
|
163990
|
164242
|
164243
|
164244
|
164245
|
166404
|
166405
|
166406
|
166407