Policy files and subdomains?

I’m having a lot of trouble with policy files served from the same server and port as an XMLSocket connection I am trying to make. Can someone tell me:

If I have two subdomains, www.myserver.com and xmlsocket.myserver.com, where the www subdomain is an apache server on one IP address and the xmlsocket subdomain is the server I am planning to connect an XMLSocket to, but it is on a different IP address, can I serve the policy file from www.myserver.com and have it allow the connections to xmlsocket.myserver.com?

Thanks for any help!!!