I'm developing a website on EC2 and have the development and live site hosted on the same server (for $'s sake).
What I'm encountering is caching conflicts. Specifically on the dev site I have things that are not intended to be seen by the public yet but because it seems that both sites are using the same APC cache the entries are conflicting, and so the public is seeing things it really shouldn't yet.
The dev environment is a complete copy of the live site just checked out from subversion.
Both sites are available on different domains if it helps tailor the answer.
Any suggestions on how to make sure this doesn't happen?