OAuth authentication in Meteor App through Apache2 Proxy

Hey All,

I wanted to do a lazy deploy over the web just to test my app, and have authentication setup using facebook.

I have it setup so that Meteor just runs within a VM as usual so it’s launched to localhost:3000, and in my apache config file i have the following:

<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass “/” "http://127.0.0.1:3000/"
ProxyPassReverse “/” "http://127.0.0.1:3000/"
ServerName mysite.com

I can see the front page just fine online, however if I try to login with facebook, it keeps taking me to localhost:3000/_oauth/facebook? etc.

Although my app on the facebook developers portal is setup to use mysite.com everywhere they ever ask to know the app domain or website url

I feel this has something to do with my setup. Is there a way to get the Oauth to work using the front facing domain, ie mysite.com instead?