Compare commits

...

2 Commits

Author SHA1 Message Date
27d178d852 Merge pull request 'Repair BookStack httpd configuration' (#57) from themis-httpd-fixup into production
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Reviewed-on: #57
2023-05-01 00:08:00 +02:00
841317e0f4
Repair BookStack httpd configuration
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
- Replace wrong instances of RewriteCond with RewriteRule
- Remove wrong quotes around rewrite conditions
- Set correct options (seemingly our version of httpd does not set
  FollowSymLinks by default?)

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-01 00:00:31 +02:00

View File

@ -25,19 +25,19 @@ apache:
DirectoryIndex: index.php DirectoryIndex: index.php
Directory: Directory:
/srv/www/BookStack/: /srv/www/BookStack/:
Options: false Options: FollowSymLinks
AllowOverride: None AllowOverride: None
Require: all granted Require: all granted
Formula_Append: | Formula_Append: |
RewriteEngine On RewriteEngine On
RewriteCond '%{HTTP:Authorization} .' RewriteCond %{HTTP:Authorization} .
RewriteCond '.* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]' RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond '%{REQUEST_FILENAME} !-d' RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond '%{REQUEST_URI} (.+)/$' RewriteCond %{REQUEST_URI} (.+)/$
RewriteCond '^ %1 [L,R=301]' RewriteRule ^ %1 [L,R=301]
RewriteCond '%{REQUEST_FILENAME} !-d' RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond '%{REQUEST_FILENAME} !-f' RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond '^ index.php [L]' RewriteRule ^ index.php [L]
{{ httpdformulaexcess() }} {{ httpdformulaexcess() }}
Formula_Append: | Formula_Append: |
{{ httpdcommon('BookStack') }} {{ httpdcommon('BookStack') }}