[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SLUG] Re: Virtual hosts on a dynamic IP
On Sun, Jun 11, 2000 at 07:37:03PM +1000, Paul Robinson wrote:
> I use dyndns to get a hostname.. which is why I was hoping to get virutal
> hosts working off of a name only, which it would hopefully then resolve and
> everything would be fine..
>
> I guess fixed IP is the only way :(
nonsense - in your ip-up script (or some dhcp script or something for
cable), just put something like this:
myip=$4 # for ip-up, `hostname -i` or something otherwise
sed "s/@nospam.MYIP@nospam./$myip/g" \
< /etc/apache/httpd.conf.orig > /etc/apache/httpd.conf
/etc/init.d/apache/reload
and httpd.conf.orig is just a copy, with @nospam.MYIP@nospam. instead of any
specific ip address
--
- Gus
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text