Bugzilla – Attachment 166407 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]
Bug 35812: Fix search URL aliases in Plack Apache config
Bug-35812-Fix-search-URL-aliases-in-Plack-Apache-c.patch (text/plain), 2.60 KB, created by
Martin Renvoize
on 2024-05-08 12:49:27 UTC
(
hide
)
Description:
Bug 35812: Fix search URL aliases in Plack Apache config
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2024-05-08 12:49:27 UTC
Size:
2.60 KB
patch
obsolete
>From 749b4e99cf56f70611f04e7242b52cf2d747d65b Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Micha=C5=82=20Kula?= > <148193449+mkibp@users.noreply.github.com> >Date: Wed, 27 Mar 2024 13:25:49 +0100 >Subject: [PATCH] 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. > >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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 bee75e95f10..5d15a760234 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.45.0
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