neo4j/community — Issue #50: uri settings in neo4j-server.properties do not appear to be respected everywhere
Author: JoanDelilah
Created: 2011-10-08 00:05:30+00:00
State: open

I just got SSL+Proxy working after some trial and error, during that process I encountered some inconsistencies with the uris being passed around

First, this goes in your neo4j-server.properties (the https is very important):

# REST endpoint for the data API
# Note the / in the end is mandatory
org.neo4j.server.webadmin.data.uri=https://$your_ip:7474/db/data/

# REST endpoint of the administration API (used by Webadmin)
org.neo4j.server.webadmin.management.uri=https://$your_ip:7474/db/manage/

That got it mostly working. But every time I hit the visualizer button I would get disconnected from the server. I saw that the URL being printed on the data-browser page was http still http and not https, as it had become on the other pages.

I was able to work around it by proxying the whole thing and rewriting the http to https, but this is sub-optimal :)

ProxyPass /webadmin http://$your_ip:7474/webadmin
ProxyPassReverse /webadmin http://$your_ip:7474/webadmin

ProxyPass /db http://$your_ip:7474/db
ProxyPassReverse /db http://$your_ip:7474/db

AddOutputFilterByType SUBSTITUTE application/json
AddOutputFilterByType SUBSTITUTE text/html
Substitute s/http/https/n