Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add Common Installation Issue for invalid URLs in robots.txt

...

In general, when running behind a proxy, the DSpace REST API depends on accurate X-Forwarded-* headers to be sent by that proxy.

My User Interface's robots.txt has incorrect sitemap URLs

This scenario may occur when you are running the User Interface behind an HTTP proxy (e.g. Apache HTTPD's mod_proxy_http, Ngnix's proxy_pass or any other proxy that is forwarding from HTTPS to HTTP).

The fix is to ensure the DSpace User Interface (frontend) is sent the correct X-Forwarded-Proto and Host (or X-Forwarded-Host) headers to tell it the correct hostname and scheme (HTTP or HTTPS)

Code Block
titleApache HTTPD example
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https

Solr responds with "Expected mime type application/octet-stream but got text/html" (404 Not Found)

...