Project

General

Profile

« Previous | Next » 

Revision 9521

Added by Chris Jones over 8 years ago

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:

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

Also available in: Unified diff