NameVirtualHost and two NIC

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?
Charles [ Fr, 04 Januar 2008 05:01 ] [ ID #1899746 ]

Re: NameVirtualHost and two NIC

Post removed (X-No-Archive: yes)
Notifier Deamon [ Fr, 04 Januar 2008 08:25 ] [ ID #1899747 ]

Re: NameVirtualHost and two NIC

On Jan 4, 12:25=A0am, Davide Bianchi <davideyeahs... [at] onlyforfun.net>
wrote:
> On 2008-01-04, Charles <ccha... [at] gmail.com> 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.




=2E 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.
Charles [ Fr, 04 Januar 2008 11:26 ] [ ID #1899750 ]

Re: NameVirtualHost and two NIC

Post removed (X-No-Archive: yes)
Notifier Deamon [ Fr, 04 Januar 2008 11:52 ] [ ID #1899751 ]

Re: NameVirtualHost and two NIC

Charles <cchamb2 [at] gmail.com> wrote in news:edbfe6c4-2f65-4f36-8b3a-
b9726a715e4a [at] 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.
mark [ Fr, 04 Januar 2008 16:07 ] [ ID #1899752 ]
Webserver » alt.apache.configuration » NameVirtualHost and two NIC

Vorheriges Thema: commands to set up a second apache to act as http server?
Nächstes Thema: Remote data file...from windows apache server