Using local proxy to avoid Connection Reset errors. Setting proper pathname for Primus.