NameVirtualHost and two NIC

NameVirtualHost and two NIC

am 04.01.2008 05:01:14 von Charles

I'd like to serve two sites out of one computer - one an SSL site, and
one that is not. The box is running Apache 2.2 with OpenSSL.

I'm thinking of putting a second network card in the computer.

Can I have two NameVirtualServer directives in the same httpd.conf
file?

Do I need two Listen directives further up in the httpd.conf?

Re: NameVirtualHost and two NIC

am 04.01.2008 08:25:24 von unknown

Post removed (X-No-Archive: yes)

Re: NameVirtualHost and two NIC

am 04.01.2008 11:26:21 von Charles

On Jan 4, 12:25=A0am, Davide Bianchi
wrote:
> On 2008-01-04, Charles wrote:
>
> > Can I have two NameVirtualServer directives in the same httpd.conf
> > file?
>
> You can have as many as you want, but you don't need two physical NIC
> to have multiple IP addresses.

O.K., so

NameVirtualHost 192.168.0.20:80
NameVirtualHost 192.168.0.21:443

will work. So cool.




For example, I want to run http://www.abc.com, and also run
https://www.abcc.com, both on the same box.
>
> > Do I need two Listen directives further up in the httpd.conf?
>
> Apache by default simply listen to ALL the IPs, so if you don't specify
> anything it will work. You need a Listen only if you want to restrict
> it to listen to only specific IPs or non-standard ports.

Also cool.

Re: NameVirtualHost and two NIC

am 04.01.2008 11:52:30 von unknown

Post removed (X-No-Archive: yes)

Re: NameVirtualHost and two NIC

am 04.01.2008 16:07:33 von mark

Charles wrote in news:edbfe6c4-2f65-4f36-8b3a-
b9726a715e4a@s19g2000prg.googlegroups.com:

>
> I'd like to serve two sites out of one computer - one an SSL site, and
> one that is not. The box is running Apache 2.2 with OpenSSL.
>
> I'm thinking of putting a second network card in the computer.


--

You don't need a second nic in the machine to do this, unless you just want
one.