Listen directive kills other vhosts

I am having trouble understanding why this happens: If I attach an ip address to the listen directives the server_name directive is ignored and it becomes the default server config for all vhosts even though it has a server_name directive.

Here is the config:

Config on dpaste.com

(Sorry for the pastebin but couldn’t figure out your new formatting system. Kept getting screwy results no matter what I did.)

“ramnode” is defined in /etc/hosts as:

168.235.86.70 ramnode

If I remove “ramnode” from the listen directive all works. If its included none of my other domains work (with separate server blocks not shown here). Any ideas why?

Thanks in advance.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.