Muti-site + Amazon EC2 + Amazon Cloudfront and no S3


Currently, I have a test multi-site WordPress server set up with Cloudfront and no S3.

Tested ec2 domain and the site comes up fine. No issues.

Added the domain mapping plugin, added a subsite and the subsite domain works fine, but the primary blog domain does not work well. I can see the frontpage using the blog domain, but the links are pointed to the ec2 domain. I can however, manually replace the URL with the primary blog domain and the page/post will come up. Summary: works works brings up site, but links are still pointing to I can do a db dump and replace those links, but not ideal.

define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

wp_options -> siteurl is set to
wp_options -> home is set to
wp_site -> 1 is set to with path set to /
wp_blogs -> 1 is set to with path set to /
wp_blogs -> 2 is set to with path set to /secondaryblog/

Thank you.