Hopefully you guys are in good health, I had a problem when I finished
installing Dspace 6.3 with *proxypass, *when I clicked by issue date,
authors, title, subject with an error like this :
*Invalid content type: *
Please contact the site administrator if you wish to report this error. If
possible, please provide details about what you were doing at the time this
error occurred.
Java stacktrace: org.apache.http.ParseException: Invalid content type: at
org.apache.http.entity.ContentType.parse(ContentType.java:273) at
org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:496)
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
I did some setup for the nginx proxy pass as follows:
*proxy pass script at nginx virtualhost.conf*
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http:// dspace1.univ.com :8080;
proxy_redirect http:// dspace1.univ.com :8080
http://dspace1.univ.com;
}
proxy_buffering off;
proxy_store off;
proxy_connect_timeout 320;
proxy_send_timeout 320;
proxy_read_timeout 320;
client_max_body_size 3000m;
*Changing script at /tomcat/config/server.xml*
<Host name="dspace1.univ.com" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="xmlui"></Context>
<!-- SingleSignOn valve, share authentication between web
applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
*Then i add iptables rules*
*iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPTiptables -A INPUT -i
eth0 -p tcp --dport 8080 -j ACCEPTiptables -A PREROUTING -t nat -i eth0 -p
tcp --dport 80 -j REDIRECT --to-port 8080*Before I configured the above my
dspace was running normally. Then after I did some of the setup above, my
dspace became an error "lnvalid type" when clicked on author, subject,
title.
*My question is : *1. How do i fix the problem?
2. Is the configuration I have done is correct?
I am very grateful if you wish to provide information regarding my problem.
--
All messages to this mailing list should adhere to the Code of Conduct:
https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dspace-tech/377aa22a-fcc4-4d36-9d20-8ef1015d5bd3n%40googlegroups.com.