Pax
I have 2 requests. Both go through the same rewrite transformations but the other one does not get prefixed with `document_root`.


Here are the logs when I try to request `/lib/katex/katex.min.b83dda1be4141b3e.css` --- the one that does not get prefixed with `document_root`.

```
[rewrite:trace2] mod_rewrite.c(482): init rewrite engine with requested uri /lib/katex/katex.min.b83dda1be4141b3e.css
[rewrite:trace3] mod_rewrite.c(482): applying pattern '^/?$' to uri '/lib/katex/katex.min.b83dda1be4141b3e.css'
[rewrite:trace3] mod_rewrite.c(482): applying pattern '^/(.*)[0-9a-f]{16}.(css|js)$' to uri '/lib/katex/katex.min.b83dda1be4141b3e.css'
[rewrite:trace2] mod_rewrite.c(482): rewrite '/lib/katex/katex.min.b83dda1be4141b3e.css' -> 'lib/katex/katex.min.css'
[rewrite:trace3] mod_rewrite.c(482): applying pattern '^([^/]+)/?$' to uri 'lib/katex/katex.min.css'
[rewrite:trace3] mod_rewrite.c(482): applying pattern '^(.+)$' to uri 'lib/katex/katex.min.css'
[rewrite:trace4] mod_rewrite.c(482): RewriteCond: input='/var/www/get/lib/katex/katex.min.css' pattern='-f' => matched
[rewrite:trace2] mod_rewrite.c(482): rewrite 'lib/katex/katex.min.css' -> '/lib/katex/katex.min.css'
[rewrite:trace8] mod_rewrite.c(482): Rule has END flag, no further rewriting for this request
[rewrite:trace2] mod_rewrite.c(482): local path result: /lib/katex/katex.min.css
[rewrite:trace1] mod_rewrite.c(482): go-ahead with /lib/katex/katex.min.css [OK]
[authz_core:debug] mod_authz_core.c(809): AH01626: authorization result of Require all denied: denied
[authz_core:debug] mod_authz_core.c(809): AH01626: authorization result of <RequireAny>: denied
[authz_core:error] AH01630: client denied by server configuration: /lib/katex
[headers:debug] mod_headers.c(900): AH01503: headers: ap_headers_error_filter()
172.31.0.1 - - [14/Jul/2020:01:33:29 +0000] "GET /lib/katex/katex.min.b83dda1be4141b3e.css HTTP/1.1" 403 249
```

A similar request `/global.3454fc500025720d.css` --- But at the end, right after the line `local path result...` the document_root is prefixed (`prefixed with document_root to /var/www/get/global.css`)

```
[rewrite:trace2] mod_rewrite.c(482): init rewrite engine with requested uri /global.3454fc500025720d.css
[rewrite:trace3] mod_rewrite.c(482): applying pattern '^/?$' to uri '/global.3454fc500025720d.css'
[rewrite:trace3] mod_rewrite.c(482): applying pattern '^/(.*)[0-9a-f]{16}.(css|js)$' to uri '/global.3454fc500025720d.css'
[rewrite:trace2] mod_rewrite.c(482): rewrite '/global.3454fc500025720d.css' -> 'global.css'
[rewrite:trace3] mod_rewrite.c(482): applying pattern '^([^/]+)/?$' to uri 'global.css'
[rewrite:trace4] mod_rewrite.c(482): RewriteCond: input='/var/www/get/page/global.css' pattern='-d' => not-matched
[rewrite:trace3] mod_rewrite.c(482): applying pattern '^(.+)$' to uri 'global.css'
[rewrite:trace4] mod_rewrite.c(482): RewriteCond: input='/var/www/get/global.css' pattern='-f' => matched
[rewrite:trace2] mod_rewrite.c(482): rewrite 'global.css' -> '/global.css'
[rewrite:trace8] mod_rewrite.c(482): Rule has END flag, no further rewriting for this request
[rewrite:trace2] mod_rewrite.c(482): local path result: /global.css
[rewrite:trace2] mod_rewrite.c(482): prefixed with document_root to /var/www/get/global.css
[rewrite:trace1] mod_rewrite.c(482): go-ahead with /var/www/get/global.css [OK]
[authz_core:debug] mod_authz_core.c(809): AH01626: authorization result of Require all granted: granted
[authz_core:debug] mod_authz_core.c(809): AH01626: authorization result of <RequireAny>: granted
172.31.0.1 - - [14/Jul/2020:01:35:18 +0000] "GET /global.3454fc500025720d.css HTTP/1.1" 304 -
```

What could be the reason for such discrepancy?

Here is the virtualhost configuration (config for ssl, logs were removed):

```
<VirtualHost *:443>
    ServerName topanswers.local
    UseCanonicalName on
    DocumentRoot /var/www/get
    Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
    Header unset ETag
    FileETag None
    
    RewriteEngine On
    
    RewriteRule ^/?$ index
    RewriteRule ^/(.*)[0-9a-f]{16}.(css|js)$ $1$2
    
    RewriteCond %{DOCUMENT_ROOT}/page/$1 -d
    RewriteRule ^([^/]+)/?$ fcgi://php:9000/var/www/get/page/$1/$1.php [P]

    RewriteCond %{DOCUMENT_ROOT}/$1 -f
    RewriteRule ^(.+)$ /$1 [END]

    RewriteCond %{DOCUMENT_ROOT}/$0.php -f
    RewriteRule ^.*$ fcgi://php:9000/var/www/get/$0.php [P]

    <Directory /var/www/get/>
      Options -Indexes
      AllowOverride None
      Order allow,deny
      allow from all
      Require all granted
    </Directory>
</VirtualHost>
```

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.