Apache VirtualHosts not working (multiple websites via ports)?

Listen 80
Listen 8000
Listen 8080
NameVirtualHost index.ath.cx:80
NameVirtualHost index.ath.cx:8080
NameVirtualHost index2.ath.cx:8000

<VirtualHost index.ath.cx:80>
DocumentRoot S:/web
</VirtualHost>

<VirtualHost index.ath.cx:8080>
DocumentRoot S:/extra
</VirtualHost>

<VirtualHost index2.ath.cx:8000>
DocumentRoot S:/web2
</VirtualHost>

All the hosts resolve to the same address.

covinher2008-11-03T16:37:41Z

Favorite Answer

use *:port instead of the hostname in the VirtualHost directive, and make the same change to NameVirtualhost. Set ServerName in each vhost.

?2016-11-08T11:19:08Z

I incredibly trust you. we'd desire to continuously not spend lots time right here noticeably answering Qs of JW-haters. yet i welcome honest questions ;-) I additionally love listening to from bro and sis from distinctive factors of the international. using fact i'm from an Asian usa, so the schedule of assemblies is a lot distinctive. We in many situations have District convention on the tip of the 365 days however the particular assembly is on the early quarter of the 365 days. If am not improper in western international locations it incredibly is any different way around. The greater I hear/learn the appearance district convention the greater i'm getting excited. I additionally decide directly to straight away out information approximately us. using fact there are consumers right here (who i've got faith at the instant are not apostates) who have not have been given any concept approximately us. case in point some have faith that we instruct that a hundred and forty four,000 will only be stored and that we don't supply value to Jesus. There are misconceptions approximately us that i've got faith might desire to clarified to honest consumers. yet i've got faith stupid or nonsense Qs approximately us must be left out. i might decide directly to commend you on your determination to benefit greater and take in religious foodstuff. We incredibly might desire to be mature as we are approcahing the tip of issues ;-)