Docs: Fix rewrite rules in apache example configs

This commit is contained in:
kolaente 2021-08-02 17:09:38 +02:00
parent be4d53d805
commit dc2915875b
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ Put the following config in `cat /etc/apache2/sites-available/vikunja.conf`:
ServerName localhost ServerName localhost
DocumentRoot /path/to/vikunja/static/frontend/files DocumentRoot /path/to/vikunja/static/frontend/files
RewriteEngine On RewriteEngine On
RewriteRule ^\/?(config\.json|favicon\.ico|css|fonts|images|img|js) - [L] RewriteRule ^\/?(favicon\.ico|assets|audio|fonts|images|manifest\.webmanifest|robots\.txt|sw\.js|workbox-.*|api|dav|\.well-known) - [L]
RewriteRule ^(.*)$ /index.html [QSA,L] RewriteRule ^(.*)$ /index.html [QSA,L]
</VirtualHost> </VirtualHost>
{{< /highlight >}} {{< /highlight >}}

View file

@ -101,7 +101,7 @@ Put the following config in `cat /etc/apache2/sites-available/vikunja.conf`:
DocumentRoot /var/www/html DocumentRoot /var/www/html
RewriteEngine On RewriteEngine On
RewriteRule ^\/?(config\.json|favicon\.ico|css|fonts|images|img|js|api|dav|\.well-known) - [L] RewriteRule ^\/?(favicon\.ico|assets|audio|fonts|images|manifest\.webmanifest|robots\.txt|sw\.js|workbox-.*|api|dav|\.well-known) - [L]
RewriteRule ^(.*)$ /index.html [QSA,L] RewriteRule ^(.*)$ /index.html [QSA,L]
</VirtualHost> </VirtualHost>
{{< /highlight >}} {{< /highlight >}}