Project

General

Profile

« Previous | Next » 

Revision 9521

In order to access the JWT authentication token, we need to configure the Apache installation to pass the Authorization header on to CGI scripts. Do this with mod_rewrite.

refs https://github.nceas.ucsb.edu/KNB/arctic-data/issues/42

View differences:

src/scripts/debian/metacat-site-ssl.conf
11 11
                Allow from all
12 12
        </Directory>
13 13

  
14
        <IfModule mod_rewrite.c>
15
                RewriteEngine on
16
                RewriteCond %{HTTP:Authorization} ^(.*)
17
                RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
18
        </IfModule>
19
        
14 20
        <IfModule mod_jk.c>
15 21
                JkMount /metacat ajp13
16 22
                JkMount /metacat/* ajp13
src/scripts/debian/metacat-site.conf
11 11
                Allow from all
12 12
        </Directory>
13 13

  
14
        <IfModule mod_rewrite.c>
15
                RewriteEngine on
16
                RewriteCond %{HTTP:Authorization} ^(.*)
17
                RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
18
        </IfModule>
19
        
14 20
        <IfModule mod_jk.c>
15 21
                JkMount /metacat ajp13
16 22
                JkMount /metacat/* ajp13

Also available in: Unified diff