See How to set up Discourse on a server with existing Apache sites and Running other websites on the same machine as Discourse.