aboutsummaryrefslogtreecommitdiff
path: root/apache/sites/nowayforward_human.conf.tpl
blob: 7c462e2d8d001015cd1e48b3e5decd0870f0c84c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<VirtualHost *:8000>
  ServerName localhost
  DocumentRoot "${REPOSITORY}/views"
  Alias /archives "${ARCHIVES_DIR}"

  <FilesMatch \.php$>
    <If "'${PHP_FPM_SOCKET}' != ''">
      SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/"
    </If>
  </FilesMatch>

  # 5 minutes
  TimeOut 300

  RewriteEngine On

  RewriteCond %{HTTP:Authorization} ^(.*)
  RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

  RewriteCond %{REQUEST_URI} !/archives.*
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ /global/router.php
</VirtualHost>