Use OGC_SERVER.LOCATION for internal communication

fix #809 and #1244