LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-09-2010, 08:47 PM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
set up a website locally (within a LAN)


How would I set up a website that would be only accessible locally. There's a router machine (server) that keeps provides internet access for a number of client machines. I need to set up a learning platform (moodle) locally. The server machine runs moodle server (apache server) and students should have access to their accounts locally (no need to be accessible outside of LAN).

First of all, what would be the best network configuration for it.
Sorry for a dumb question, but could I just come up with any domain name if everything stays locally within LAN?

thank you
 
Old 08-09-2010, 09:56 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,965

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
In my lan I use what is called private IP addresses. All of your clients ought to be on a private IP range. The server is normally something like 192.168.1.1 or such but most times people make it the .1 number. So what you'd do is simply ask your clients to use an IP address in their browser such as 192.168.1.1 along with the port of apache which might be :8080. example 192.168.2.1:8080 would let you access the web page. If you want you can make a host file entry in each client to match a simple name.
 
Old 08-09-2010, 10:33 PM   #3
tr1pl3x
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.4, Fedora 13
Posts: 25

Rep: Reputation: 16
Quote:
First of all, what would be the best network configuration for it.
Sorry for a dumb question, but could I just come up with any domain name if everything stays locally within LAN?
you could setup apache webserver.. what distro are you using?? mine I'm using ubuntu as a local webserver.. you can also create your own local dns resolution for short have your domain name locally. try Installing dnsmasq so that clients can also query your address for example instead of using a fixed ip address such as 192.168.0.1 you can supply name such as www.example.edu or something similar.. try on reading this links below.

http://www.thekelleys.org.uk/dnsmasq/doc.html
____________________________________________
Patience is the key to success!
 
1 members found this post helpful.
Old 08-10-2010, 04:29 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by tr1pl3x View Post
you could setup apache webserver.. what distro are you using?? mine I'm using ubuntu as a local webserver.. you can also create your own local dns resolution for short have your domain name locally. try Installing dnsmasq so that clients can also query your address for example instead of using a fixed ip address such as 192.168.0.1 you can supply name such as www.example.edu or something similar.. try on reading this links below.

http://www.thekelleys.org.uk/dnsmasq/doc.html
____________________________________________
Patience is the key to success!

Thanks guys, my networking skills may be bad but it's not that hopeless. I know about static IP addresses, etc. The bit I was looking for was dnsmasq.

Thanks again.
 
Old 08-10-2010, 04:32 AM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by Sms2everyone View Post
Thanks to Everyone..
Nice useful Information,it really helped me a lot,
I request every member that..
Please keep updating this site with there knowledge as Now i am regular visitor of this site.

@Sms2everyone: do you post exactly the same reply to every thread you read?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Email server set up locally then to public sir_oasis214 *BSD 8 02-28-2008 01:03 AM
BIND - Locally OK, LAN cleints unable to resolve? Xaque208 Linux - Networking 2 08-08-2005 09:32 AM
LAN website twantrd Linux - General 9 10-22-2003 02:28 AM
LAN box needs to see my website? can see all but that? piratebiter Linux - Networking 3 09-11-2003 08:35 PM
RTC time on a locally set clock pe2338 Debian 8 09-06-2003 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration