Running two copies of apache

Andre Costa acosta at ar.microlink.com.br
Sun Jul 25 14:58:16 UTC 2004


Hi Colin,

On 25 Jul 2004 15:44:24 +0100
Colin Paul Adams <colin at colina.demon.co.uk> wrote:

> >>>>> "Alexander" == Alexander Dalloz
> ><alexander.dalloz at uni-bielefeld.de> writes:
> 
>     Alexander> Am So, den 25.07.2004 schrieb Colin Paul Adams um
>     Alexander> 15:19:
>     >> Can I have two different virtual servers with the same server
>     >> name, but different ports? I thought I couldn't do that.  But I
>     >> can certainly run two copies of apache on two different ports,
>     >> with the same server name.
> 
>     >> Colin Paul Adams
> 
>     Alexander> Though I never did that with different ports I am sure
>     Alexander> you can do.
> 
>     Alexander>     NameVirtualHost 111.22.33.44:80 NameVirtualHost
>     Alexander> 111.22.33.44:8080
> 
>     Alexander>     <VirtualHost 111.22.33.44:80> ServerName
>     Alexander> www.domain.tld DocumentRoot /www/domain-80
>     Alexander> </VirtualHost>
> 
>     Alexander>     <VirtualHost 111.22.33.44:8080> ServerName
>     Alexander> www.domain.tld DocumentRoot /www/domain-8080
>     Alexander> </VirtualHost>
> 
> Doesn't work here.
> 
> I get connection refused on the second port.

Things to check:

1. make sure you have told apache to listen on port 8080 ("Listen"
directive on /etc/httpd/conf/httpd.conf -- you should have one for port
80 and another for port 8080)

2. make sure you're not blocking port 8080 on your firewall

HTH

Andre

-- 
Andre Oliveira da Costa





More information about the users mailing list