Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2002 08:27:07 -0700
From:      "Drew Tomlinson" <drew@mykitchentable.net>
To:        <freebsd-questions@FreeBSD.ORG>, "Roger Merritt" <mcrogerm@stjohn.ac.th>
Subject:   Re: Need intranet cookbook
Message-ID:  <00da01c1e492$0123b500$f82a6ba5@lc.ca.gov>
References:  <3.0.6.32.20020415132813.007ab460@stjohn.stjohn.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
From: "Roger Merritt" <mcrogerm@stjohn.ac.th>
To: <freebsd-questions@FreeBSD.ORG>
Sent: Sunday, April 14, 2002 11:28 PM
Subject: Need intranet cookbook


> I'm afraid this is really off-topic, except that I'm using a FreeBSD
> machine to try to set this up, and I hope somebody has a url handy at
the
> tip of their keyboard.
>
> I need to set up an intranet for our (small) school. I've succeeded in
> installing apache from the ports and I've configured it well enough so
that
> I can access the test page from one of the other computers on our LAN.
I've
> also succeeded in installing mysql and mod-php, because I found a
couple of
> web-sites that discussed how to do it.
>
> What I would like is a pointer to some source that describes actually
> setting up an intranet. Something for a dummy, like, "First cd to
> /usr/local/www and then mkdir..." or whatever. I've been able to find
lots
> of stuff on configuring apache, and lots of stuff about setting up
other
> fairly complicated stuff, and I think I uunderstand it well enough to
> start, but I just haven't been able to locate anything about the
actual
> nitty-gritty of where files and directories are supposed to go. I've
even
> found pages about "designing the Intranet", but they never seem to
answer
> the question, "But where do all these pieces GO???" Even the
FreeBSDDiary
> skips over this.

What do you mean by "intranet"?  ASFAIK, an intranet is nothing more
than a private network.  On your private network, you can add whatever
you wish: mail, web, file sharing, print sharing, etc.  I'm guessing
what you really want is a web site on your private network.  Is this
correct?

So assuming it is correct, Apache installed from the ports puts data in
/usr/local/www/data.  Unless you need to do something different, you
would start here and create index.html.  If Apache is configured
properly, you would access index.html by going to
http://your.webserver.name.or.ip.address.  Then from there you create
things however you want, just like how you might create your file system
in your home directory.  When you create links in your web pages, they
should be relative links.  So say, for example, you decided to create a
subdir called "schedules" (/usr/local/www/schedules) and place fall.html
and spring.html in that directory.  Then any link in your index.html
page would refer to those pages as 'schedules/fall.html' and
'schedules/spring.html'.  When you access fall.html, your browser
address bar will show
http://your.webserver.name.or.ip.address/schedules/fall.html.  See how
this relates?

Hopefully this will be enough to get you started.  Because each and
every web site is different, I doubt you will find the 'cookbook' you
are looking for.  Just understand the principles of how Apache finds
your documents and then create the site as you wish.

Good Luck,

Drew


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?00da01c1e492$0123b500$f82a6ba5>