diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-26 14:02:48 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-26 14:02:48 +0200 |
| commit | 637b86f1a221f09d1cdfb35030b7ab056add422d (patch) | |
| tree | aff6324fd0e96286aaaa2c6bc497ebec9561177e /apache | |
| parent | 3a2176a1c6a1c367b4677a68a80df35578160c72 (diff) | |
| download | nowayforward_human-637b86f1a221f09d1cdfb35030b7ab056add422d.tar nowayforward_human-637b86f1a221f09d1cdfb35030b7ab056add422d.tar.gz nowayforward_human-637b86f1a221f09d1cdfb35030b7ab056add422d.zip | |
feat(views): Implement a proper router
Diffstat (limited to 'apache')
| -rw-r--r-- | apache/sites/nowayforward_human.conf.tpl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apache/sites/nowayforward_human.conf.tpl b/apache/sites/nowayforward_human.conf.tpl index ba010c7..2a5f58f 100644 --- a/apache/sites/nowayforward_human.conf.tpl +++ b/apache/sites/nowayforward_human.conf.tpl @@ -7,11 +7,13 @@ SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/" </FilesMatch> - RedirectMatch "^/$" /home/index.php - RedirectMatch "^/index.html$" /home/index.php - RedirectMatch "^/index.php$" /home/index.php - RewriteEngine On + RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] + + RewriteCond %{REQUEST_URI} !/archives.* + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ /global/router.php </VirtualHost> |
