使用apache在同一端口上的Node.js,代理传递不起作用

So here is my virtual host

NameVirtualHost *:8080

<VirtualHost mysite.org:8080>
     ServerAdmin panda@gmail.com
     ServerName localhost
     ServerAlias www.mysite.org

     ProxyRequests off

     <Proxy *>
          Order deny,allow
          Allow from all
     </Proxy>

     <Location />
           ProxyPass http://mysite.org:8081/
           ProxyPassReverse http://mysite.org:8081/
     </Location>
     DocumentRoot /Users/panda/Dropbox/www/_playground/node
    ErrorLog "logs/dummy-host2.example.com-error_log"
    CustomLog "logs/dummy-host2.example.com-access_log" common
</VirtualHost>

Now from my apache app if I try to link a script file like this: <script src="/socket.io/socket.io.js"></script> isn't working I need to do: <script src="http://mysite.org:8081/socket.io/socket.io.js"></script>

I'm doing something wrong?

Try using xhr-polling as the transport, websocket is not likely to work through the apache proxy

socketio.set("transports", ["xhr-polling"]);