I have a remote server with IP address 10.72.254.248, I want to set up multiple virtual hosts on this server by giving different ports for each virtual host.
Listen 80 Listen 3333 NameVirtualHost *:80 NameVirtualHost *:3333 <VirtualHost *:80> DocumentRoot "/path/to/site1/" ServerName *:80 </VirtualHost> <VirtualHost *:3333> DocumentRoot "/path/to/site2/" ServerName *:3333 </VirtualHost>
If no port specified, it will hit site1 (port 80) When I go to 10.72.254.248 or 10.72.254.248:80 it opens site1 successfully
But when I try 10.72.254.248:3333 it doesn't work.
Is the issue to do with the syntax? or maybe with /etc/hosts file? or firewall?
When I try to connect to 10.72.254.248:3333, I get the following error message:
Can't connect to server 10.72.254.248:3333