Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 15:39:20 -0600
From:      Server Admin <admin@sage-one.net>
To:        Richard =?utf-8?B?xIxlcGFz?= <rch@richard.eu.org>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Setting up Vhosting on Dynamic IP
Message-ID:  <3.0.5.32.20020312153920.01155d18@mail.sage-one.net>
In-Reply-To: <20020312212731.GC60275@richard.eu.org>
References:  <3.0.5.32.20020312151945.01155d18@mail.sage-one.net> <3.0.5.32.20020312145637.01155d18@mail.sage-one.net> <3.0.5.32.20020312145637.01155d18@mail.sage-one.net> <3.0.5.32.20020312151945.01155d18@mail.sage-one.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I don't think my question was clear enough. I underatnd the httpd.conf
setup. It's the interface setup in rc.conf I'm not quite clear about. In
the handbook, this is the rc.conf interface setup example shown that
concerns me:

ALIASES SETUP FROM HANDBOOK:
ifconfig_fxp0=3D"inet 10.1.1.1 netmask 255.255.255.0"
     ifconfig_fxp0_alias0=3D"inet 10.1.1.2 netmask 255.255.255.255"
     ifconfig_fxp0_alias1=3D"inet 10.1.1.3 netmask 255.255.255.255"
     ifconfig_fxp0_alias2=3D"inet 10.1.1.4 netmask 255.255.255.255"
     ifconfig_fxp0_alias3=3D"inet 10.1.1.5 netmask 255.255.255.255"
     ifconfig_fxp0_alias4=3D"inet 202.0.75.17 netmask 255.255.255.240"
     ifconfig_fxp0_alias5=3D"inet 202.0.75.18 netmask 255.255.255.255"
     ifconfig_fxp0_alias6=3D"inet 202.0.75.19 netmask 255.255.255.255"
     ifconfig_fxp0_alias7=3D"inet 202.0.75.20 netmask 255.255.255.255"

SO MY QUESTION:
Does th above apply to my setup using "rl0" interface in my original
example shown below... and "tun0" takes care of itself as it does now
without vhosts/aliases..???

At 11:27 PM 3.12.2002 +0200, Richard =3D?utf-8?B?xIxlcGFz?=3D wrote:
>'ppp' & ipfw cares about that automatically.  Apache config deals with ip
addresses only.  In my particular config 127.0.0.3 is alias for lo0 (see
/etc/defaults/rc.conf).
>
>On Tue Mar 12 15:19:45 2002 -0600 Server Admin wrote:
>
>>Thanks, but what about the interface aliases setup? ...especially if=
 "tun0"
>>is used.???
>>
>>At 11:04 PM 3.12.2002 +0200, Richard =3D?utf-8?B?xIxlcGFz?=3D wrote:
>>>I don't know if it works for vhost, but I use the following for apache:
>>>NameVirtualHost 127.0.0.3:80
>>>NameVirtualHost *:80
>>>Listen 127.0.0.3:80
>>># _default_ catches all dynamic external addresses
>>><VirtualHost 127.0.0.3:80 _default_:80 >
>>></VirtualHost>
>>><VirtualHost 127.0.0.3:80 *:80 >
>>></VirtualHost>
>>>
>>>and this for ipfw:
>>>00120 fwd 127.0.0.3 tcp from any to me 80 via tun0
>>>
>>>On Tue Mar 12 14:56:37 2002 -0600 Server Admin wrote:
>>>
>>>>Running FreeBSD 4.5-STABLE
>>>>
>>>>On a new server using DSL PPPoE, is it possible to set it up as a
>>>>named-based host for vhosting. While I've read up on this and have a
fairly
>>>>good grasp, I'm still not (precisely) clear where the vhosts' aliases
would
>>>>go since I use a tunnel interface "tun0" for the external and have a
>>>>dynamic IP (use Dynamic DNS host). I have the following components:
>>>>
>>>>1) Web Server is the gateway and a caching name server (named & BIND )
with
>>>>two NICs
>>>>2) Use Dynamic DNS service
>>>>3) Running IPFW and NATD with packet divert to tun0
>>>>4) Running Apache & Frontpage
>>>>5) Interfaces:
>>>>	a) rl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>>>>           inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
>>>>	b) rl1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>>>>	c) tun0: flags=3D8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
>>>>           inet xx.xxx.xx.xxx --> xx.xxx.xx.xxx netmask 0xffffffff=20
>>>>
>>>>6) Also should mention the above server is used for mail too. Sendmail &
>>>>qpopper which I will have to configure for vhosts too.
>>>>
>>>>THE MAIN QUESTION (so far):
>>>>If it is possible to set up virtual hosting without a static IP as above
>>>>and if so, should the aliases for each vhost go with the rl0
interface..???
>>>>
>>>>Later on, I plan to move to a static IP with 6MBS DSL speeds, but more
>>>>expensive. However, for now, I can make do with the slower DSL for the
>>>>less-active hosts being moved over to this server at the beginning.
>>>>Unfortunately, it comes with dynamic IP.
>>>>
>>>>Sorry the above is so long, but brief as possible. Appreciate any help=
 on
>>>>this.... thanks!
>>>>.... our website: http://www.sage-one.net/
>>>>
>>>>Best regards,
>>>>
>>>>Jack L. Stone
>>>>Server Admin
>>>>
>>>>To Unsubscribe: send mail to majordomo@FreeBSD.org
>>>>with "unsubscribe freebsd-questions" in the body of the message
>>>
>>>--=20
>>>      =C3=A2=C2=98=C2=BB Ri=C3=84=C2=8Dardas =C3=84=C2=8Cepas =C3=A2=C2=
=98=C2=BA
>>>
>>>To Unsubscribe: send mail to majordomo@FreeBSD.org
>>>with "unsubscribe freebsd-questions" in the body of the message
>>>
>>>
>>.... our website: http://www.sage-one.net/
>>
>>Best regards,
>>
>>Jack L. Stone
>>Server Admin
>
>--=20
>      =E2=98=BB Ri=C4=8Dardas =C4=8Cepas =E2=98=BA
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message
>
>
.... our website: http://www.sage-one.net/

Best regards,

Jack L. Stone
Server Admin

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20020312153920.01155d18>