-
Notifications
You must be signed in to change notification settings - Fork 46
Reverse Proxy for Virtuoso
Michel Dumontier edited this page Mar 16, 2016
·
3 revisions
<VirtualHost *:80>
ServerName bio2rdf.org
ServerAlias *.bio2rdf.org
ErrorLog logs/bio2rdf-errors_log
CustomLog logs/bio2rdf-access_log combined
DocumentRoot /srv/website
<Directory "/srv/website">
Options +FollowSymLinks -MultiViews
DirectoryIndex index.html
AllowOverride none
Require all granted
</Directory>
# remove the extra headers that the proxy server will send to virtuoso, which screws up the base href for IE and chrome
ProxyAddHeaders Off
ProxyPass /describe http://localhost:8890/describe
ProxyPassReverse /describe http://localhost:8890/describe
ProxyPass /fct http://localhost:8890/fct
ProxyPassReverse /fct http://localhost:8890/fct
ProxyPass /sparql http://localhost:8890/sparql
ProxyPassReverse /sparql http://localhost:8890/sparql
# rewrite the bio2rdf.org/ns:id to the describe function
RewriteEngine On
RewriteRule "^/([^:]+):(.*)$" "http://bio2rdf.org/describe/?uri=http://bio2rdf.org/$1:$2"
RewriteRule "^/describe/usage.vsp(.*)$" "http://bio2rdf.org/fct/rdfdesc/usage.vsp$1"
RewriteRule "^/describe/styles/(.*)$" "http://bio2rdf.org/fct/rdfdesc/styles/$1"
RewriteRule "^/describe/s/(.*)$" "http://bio2rdf.org/fct/rdfdesc/s/$1"
</VirtualHost>