Running apache twice on the same system

Vince Hoffman Vince.Hoffman at uk.circle.com
Thu Oct 23 11:27:48 PDT 2003


too many variables to be able to give a definite answer but, 

1) do other services (telnet/ftp/ssh/whatever) work on both IPs.
2) whats the output of  grep ^Listen /path/to/httpd.conf    (changing
/path/to/ appropriately)
(should just be   Listen 80 )
3) whats the output of sockstat |grep httpd
should be something like 
www      httpd     1841    3 tcp46  *:80                  *:*

www      httpd     1837    3 tcp46  *:80                  *:*

www      httpd     1836    3 tcp46  *:80                  *:*

www      httpd     1835    3 tcp46  *:80                  *:*

www      httpd     1818    3 tcp46  *:80                  *:*

I have it a similar setup and can access mine fine on both IPs.


 -----Original Message-----
From: dhull [mailto:dhull at digitaloverload.net]
Sent: 23 October 2003 18:56
To: Vince Hoffman
Cc: freebsd-questions at freebsd.org
Subject: Re: RE: Running apache twice on the same system


Here is my setup 
1. the system has two network cards in it 
2. One is connected on the outside of the network and the other is inside 
3. I can get to the website on the inside IP address but not the outside 

Here is what I want 
1. Have a website on the inside of the network 
2. Have a website on the outside of the network 
3. Hosted on the same system 

For some reasion apache doesn't want to listen on the other network card. 

Any ideas?? 



-------Original Message------- 
> From: Vince Hoffman <Vince.Hoffman at uk.circle.com> 
> Subject: RE: Running apache twice on the same system 
> Sent: Oct 23 2003 17:50:25 
> 
> You shouldnt need to run it twice, use virtual host 
> directives to make one virtual host listen to one 
> IP and the other to the other. 
> 
> all in the apache docs. 
> http://httpd.apache.org/docs-2.0/vhosts/ip-based.html for version 2. 
> 
> otherwise create different conf files and point your apache 
> executable at one then the other. 
> 
> > -----Original Message----- 
> > From: dhull [mailto:dhull at digitaloverload.net] 
> > Sent: 23 October 2003 18:39 
> > To: freebsd-questions at freebsd.org 
> > Subject: Running apache twice on the same system 
> > 
> > 
> > How do I get apache to run twice on the same system? 
> > 
> > I want them to listen to different IP addresses. 
> > 
-------Original Message------- 


More information about the freebsd-questions mailing list