-
Notifications
You must be signed in to change notification settings - Fork 55
how to: redirection and content negotiation
Diego Valerio Camarda edited this page Dec 13, 2015
·
2 revisions
- IRI http://data.example.com/resource/xxx
- expected behavior: 303 redirection to http://data.example.com/resource/xxx.html
- apache http server on port 80
- apache tomcat on http://localhost:8080
- lodview webapp name /lodview
conf.ttl
conf:IRInamespace <http://data.example.com/resource/> ;
conf:endpoint <http://data.example.com/sparql>;
conf:httpRedirectSuffix ".html";
conf:httpRedirectPrefix "";
conf:publicUrlPrefix <auto>;
conf:staticResourceURL <auto>
httpd.conf
ProxyPass /resource http://localhost:8080/lodview
ProxyPassReverse /resource http://localhost:8080/lodview
- IRI http://data.example.com/resource/xxx
- expected behavior: no redirection http://data.example.com/resource/xxx
- apache http server on port 80
- apache tomcat on http://localhost:8080
- lodview webapp name /lodview
conf.ttl
conf:IRInamespace <http://data.example.com/resource/> ;
conf:endpoint <http://data.example.com/sparql>;
conf:httpRedirectSuffix "";
conf:httpRedirectPrefix "";
conf:publicUrlPrefix <auto>;
conf:staticResourceURL <auto>
httpd.conf
ProxyPass /resource http://localhost:8080/lodview
ProxyPassReverse /resource http://localhost:8080/lodview
- IRI http://dbpedia.org/resource/xxx
- expected behavior: 303 redirection to http://dbpedia.org/page/xxx for HTML and to http://dbpedia.org/data/xxx.rdf for data
- apache http server on port 80
- apache tomcat on http://localhost:8180
- lodview webapp name /lodview
conf.ttl
conf:IRInamespace <http://dbpedia.org/> ;
conf:endpoint <http://dbpedia.org/sparql>;
conf:httpRedirectSuffix "";
conf:httpRedirectPrefix "/page/"
conf:httpRedirectExcludeList ".+/property/.+,.+/ontology/.+";
conf:redirectionStrategy "pubby";
conf:publicUrlPrefix <http://dbpedia.org/>;
conf:forceIriEncoding "auto";
conf:staticResourceURL <auto>
httpd.conf
ProxyPass /page http://localhost:8180/lodview/page
ProxyPass /resource http://localhost:8180/lodview/resource
ProxyPass /data http://localhost:8180/lodview/data
ProxyPass /property http://localhost:8180/lodview/property
ProxyPassReverse /page http://localhost:8180/lodview/page
ProxyPassReverse /resource http://localhost:8180/lodview/resource
ProxyPassReverse /data http://localhost:8180/lodview/data
ProxyPassReverse /property http://localhost:8180/lodview/property
ProxyPass /lodview/staticResources http://localhost:8180/lodview/staticResources
ProxyPass /linkedResourceTitles http://localhost:8180/lodview/linkedResourceTitles
ProxyPass /linkedResourceInverses http://localhost:8180/lodview/linkedResourceInverses
ProxyPass /linkedResource http://localhost:8180/lodview/linkedResource