wisski-cloud-distillery/distillery/resources/compose/barrel/conf/wisski.conf
Tom Wiesing f44693f1f2
Override mod_rewrite rules for barrel
This commit updates the apache configuration for the barrel to enforce
all global mod_rewrite rules before the .htaccess' mod_rewrite rules are
enabled.
2020-07-22 13:05:20 +02:00

24 lines
744 B
Text

<VirtualHost *:8080>
# the document root -- /var/www/data/project/web
DocumentRoot /var/www/data/project/web
<Directory /var/www/data/project/web>
# add types for .owl and .rdf
AddType application/rdf+xml .owl
AddType application/rdf+xml .rdf
# Rewrite the 'ontology' directory
RewriteEngine On
RewriteOptions InheritDownBefore
ReWriteRule ^(ontology/[^/]+/).+ $1 [R=303,END]
ReWriteRule ^(ontology/[^/]+)/$ sites/default/files/$1.owl [END]
# Allow overrides of symlinks
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /dev/stderr
CustomLog /dev/stdout combined
</VirtualHost>