[Ilugc] Interview questions for linux administrator

  • From: subhojit.ojha@xxxxxxxxx (subhojit ojha)
  • Date: Sat Jan 16 11:45:38 2010

On Sat, Jan 16, 2010 at 11:16 AM, Raja Subramanian
<rajasuperman@xxxxxxxxx>wrote:

On Sat, Jan 16, 2010 at 10:51 AM, Raja Chinnathambi
<kumar.craja@xxxxxxxxxxx> wrote:
2. Is name based virtual host supports SSL?

3. If yes, then how.

HTTPS cannot work with named vhosts.  You need a dedicated
IP address or different TCP port numbers for every HTTPS site
you want to host.

This is clearly explained in the apache ssl faq:


sir, can u plz clarify these part mentioned below "multiple ports (eg:
running ssl)" and how to achieve it and also can u tell me the Maximum
number of name based virtual hosts apache supports?

To use name-based virtual hosting, you must designate the IP address (and
possibly port) on the server that will be accepting requests for the hosts.
This is configured using the
NameVirtualHost<http://httpd.apache.org/docs/2.0/mod/core.html#namevirtualhost>directive.
In the normal case where any and all IP addresses on the server
should be used, you can use * as the argument to
NameVirtualHost<http://httpd.apache.org/docs/2.0/mod/core.html#namevirtualhost>.
If you're planning to use multiple ports (e.g. running SSL) you should add a
Port to the argument, such as *:80. Note that mentioning an IP address in a
NameVirtualHost<http://httpd.apache.org/docs/2.0/mod/core.html#namevirtualhost>directive
does not automatically make the server listen to that IP address.
See Setting which addresses and ports Apache
uses<http://httpd.apache.org/docs/2.0/bind.html>for more details. In
addition, any IP address specified here must be
associated with a network interface on the server.

Other related posts: