Actually this is what I meant.

    RewriteRule ^(.*) http://127.0.0.1:8080$1 [P,QSA]