Wamp Server configure virtual host to point to custom port [duplicate]

This question already has an answer here:

I have socketIO running on port 3000 on my localhost with nodejs. so http://localhost:3000 works as expected. I am trying to use the address chat.dev and configured the following,

In httpd.conf

Listen 80
Listen 3000

In the virtual host

<VirtualHost *:3000>
  DocumentRoot "c:/wamp/www/socket/"
  ServerName chat.dev

In the hosts file localhost chat.dev

Having this setup chat.dev show the localhost page but chat.dev:3000 works. Where am I going wrong?

Source: wampserver

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.