Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 1998 13:20:53 +0200 (CEST)
From:      Malte Lance <malte@webmore.com>
To:        "nk99" <nk99@microtec.net>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: ifconfig - vhosts - help!
Message-ID:  <13757.43370.210652.917430@neuron.webmore.de>
In-Reply-To: <005a01bdb9de$d785f280$34b4a98e@default>
References:  <005a01bdb9de$d785f280$34b4a98e@default>

next in thread | previous in thread | raw e-mail | index | archive | help
nk99 writes:

Would you please keep in mind that my xterm cannot display 400 chars
in width. So please press the "ENTER"-key from time to time.
(I refuse to reformat your message for you, and next time i'll send
you the text of the whole bible as spaghetti-one-liner-email. Since
you claim to be a sysadmin, you really should know how to write
proper emails and that there are people not just gambling on
a clicki-clicki-98-GUI. And since you are an sysadmin, you won't
feel offended due to my rough tone about that since i am already
offended to your email-formatting. And btw. Greg Lehey
has a really nice online-text about propper email-formating.)

Now to your questions:

 > Hello,
 > 
 >     Normally I wouldn't e-mail you about this but in this situation I'm very desperate. Being very new to FreeBSD (been using Linux for a while), I don't know too much about it. I've been searching all over the web and asking this question in all kinds of mIRC channels without much help for hours. I really need your help.
 >    My question: My host is noc.panthernet.com, running FreeBSD 2.2.5 . I'm the sysadmin, and I've been asked by the root to set up some virtual hosts. I've got my IP block, and I'd like to get started.  Unfortunately, I've been going no where for hours. 
 >   Question one: How do I setup IP 1.2.3.5 to be a virtual host to
1.2.3.4 (that is to say telnetting to 1.2.3.5 would bring up 1.2.3.4,
a virtual host). I know it has something to do with ifconfig, but I'm
stumped.

Assuming your device is "ed0" and is already configured with 1.2.3.4:

ifconfig ed0 inet 1.2.3.5 netmask 0xffffffff alias

BTW.: there is an example in /etc/rc.conf

 >   Question two: Once IP 1.2.3.5 has been setup, how do I give it a
hostname (host.panthernet.com)? I've added an entry to /etc/hosts, but
it didn't work, I don't think, since it doesn't DNS resolve.

change the zone-files of the authoritative nameserver.

 >    That's all I need to know, basically: how to set up a Virtual
Host. It would be appeciated, if possible, not to be directed to
documents concerning this issue unless they are very to the point and
concerning directly my questions. I haven't found a
http://www.freebsd.org article like this for Virtual Hosts.

man, are you ready to do anything on your own ?

Malte.

 > 
 > *Whew* that was long :)
 > 
 > Thanks 
 > nk99@microtec.net
 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
 > <HTML>
 > <HEAD>
 > 
 > <META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
 > <META content='"MSHTML 4.72.2106.6"' name=GENERATOR>
 > </HEAD>
 > <BODY bgColor=#ffffff>
 > <DIV><FONT color=#000000 size=2>Hello,</FONT></DIV>
 > <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
 > <DIV><FONT color=#000000 size=2>&nbsp;&nbsp;&nbsp; Normally I wouldn't e-mail 
 > you about this but in this situation I'm very desperate. Being very new to 
 > FreeBSD (been using Linux for a while), I don't know too much about it. I've 
 > been searching all over the web and asking this question in all kinds of mIRC 
 > channels without much help for hours. I really need your help.</FONT></DIV>
 > <DIV><FONT color=#000000 size=2>&nbsp;&nbsp; My question: My host is 
 > noc.panthernet.com, running FreeBSD 2.2.5 . I'm the sysadmin, and I've been 
 > asked by the root to set up some virtual hosts. I've got my IP block, and I'd 
 > like to get started.&nbsp; Unfortunately, I've been going no where for hours. 
 > </FONT></DIV>
 > <DIV><FONT color=#000000 size=2>&nbsp; Question one: How do I setup IP 1.2.3.5 
 > to be a virtual host to 1.2.3.4 (that is to say telnetting to 1.2.3.5 would 
 > bring up 1.2.3.4, a virtual host). I know it has something to do with ifconfig, 
 > but I'm stumped.</FONT></DIV>
 > <DIV><FONT color=#000000 size=2>&nbsp; Question two: Once IP 1.2.3.5 has been 
 > setup, how do I give it a hostname (host.panthernet.com)? I've added an entry to 
 > /etc/hosts, but it didn't work, I don't think, since it doesn't DNS 
 > resolve.</FONT></DIV>
 > <DIV><FONT color=#000000 size=2>&nbsp;&nbsp; That's all I need to know, 
 > basically: how to set up a Virtual Host. It would be appeciated, if possible, 
 > not to be directed to documents concerning this issue unless they are very to 
 > the point and concerning directly my questions. I haven't found a <A 
 > href="http://www.freebsd.org">http://www.freebsd.org</A>; article like this for 
 > Virtual Hosts.</FONT></DIV>
 > <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
 > <DIV><FONT color=#000000 size=2>*Whew* that was long :)</FONT></DIV>
 > <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
 > <DIV><FONT color=#000000 size=2>Thanks </FONT></DIV>
 > <DIV><FONT color=#000000 size=2><A 
 > href="mailto:nk@microtec.net">nk99@microtec.net</A></FONT></DIV></BODY></HTML>

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?13757.43370.210652.917430>