Drupal 7 ckeditor relative path setup issue
Pathologic will solve your problem, in the configuration of the filter put both http://localhost/myapp &amp; http://localhost/myapp2 and the filter should work everything out