I'm running local Apache on my mac for development, and also have node.js server running at http://127.0.0.1:8000/
.
I use .dev
domain for Apache projects and would like .node
domain to redirect to node.js server. I have virtual hosts set up as follows:
<VirtualHost *.dev:80>
VirtualDocumentRoot "/www/sites/%1/wwwroot"
ServerName sites.dev
ServerAlias *.dev
UseCanonicalName Off
</VirtualHost>
<VirtualHost *.node:80>
ServerName sites.node
ProxyPass "/" "http://localhost:8000"
ProxyPassReverse "/" "http://localhost:8000"
</VirtualHost>
However, when I try to apply these settings, I get the error:
[core:error] [pid 8594] (EAI 8)nodename nor servname provided, or not known:
AH00547: Could not resolve host name *.node -- ignoring!
I should note that .dev
domain works as expected, and node.js server is reachable at http://localhost:8000/
, just not at, say, http://test.node/
.
Am I missing something here?