22 lines
674 B
Text
22 lines
674 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
|
|
ReWriteRule ^(ontology/[^/]+/).+ $1 [R=303,L]
|
|
ReWriteRule ^(ontology/[^/]+)/$ sites/default/files/$1.owl [L]
|
|
|
|
# Allow overrides of symlinks
|
|
Options Indexes FollowSymLinks
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
|
|
ErrorLog /dev/stderr
|
|
CustomLog /dev/stdout combined
|
|
</VirtualHost>
|