You can install share.war on a different server than alfresco.war by pointing to the correct Alfresco instance in share-config-custom.xml. Share connects to Alfresco over HTTP and you can configure the endpoint Share connects to by changing the <endpoint-url>s in the "Remote" section of you Share config.