Brian Stempin on 28 Sep 2007 02:37:42 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] linux question... (apache) (virtual hosts)

  • From: "Brian Stempin" <brian.stempin@gmail.com>
  • To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] linux question... (apache) (virtual hosts)
  • Date: Thu, 27 Sep 2007 22:37:33 -0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=p7tSV1N4wPbTdB7pSv3luhhGK17CHGBN3k2Iksjzs6Q=; b=mA/0+kfYB2SBCUaF/IOxHiwggYm+nrDpSUjEEXjrheCxpiUbocYaNdO5qu29qkX8MDpBNxilcZY8ZTswxwX1n/pgzFdP0nfTOSqkwx0sItIDdYqull4HBailLnVGA7rOAgkqTB5ANLOpWVWcb6q92YRTxnonQFktEBUSEaKAIwA=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

<snip>
Get it to respond to it's IP address differently than it's named address.

<snip>
If the named address resolves to the address in question, then saying:

<virtualhost joe.campusparty.com>

and

<virtualhost 123.123.123.123>

are one in the same.  If you use a FQDN to describe your virtual host, then (if I'm not mistaken) Apache will resolve that name to an IP address, effectively making the 2 entries the same.

see:
http://httpd.apache.org/docs/1.3/dns-caveats.html


On 9/27/07, Antony P Joseph <antony@panathara.org> wrote:
Hi
> so joe.campusparty.com responds as expected, apache uses the correct
> directory.
>
> but if I call it at it's ip address 123.123.123.123 it goes to the exact
> same location.  I am, however, able to get a different response when
> calling it from the local machine.
>
>
> I add my own vhost.conf to the httpd.conf so here it is
>
Is it better to run two logical instance of apache,  one binding to
localhost and other  binding to 123.123.123.123?
>
>
>
> NameVirtualHost 123.123.123.123
>
>
With regards
Antony
___________________________________________________________________________
Philadelphia Linux Users Group         --         http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug