LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-25-2006, 06:20 PM   #1
pulper
LQ Newbie
 
Registered: Jul 2006
Posts: 14

Rep: Reputation: 0
apache security for intranet: "listen 80" vs. "listen 127.0.0.1:80"


hi everyone:

i just started with apache and am using it for an intranet to host a calendar for everyone in our small office.

i cannot get apache to start if i list in the ports.conf file (ubuntu) the ip address of the network computers followed by the port (for example 192.168.0.101:80). i get an error which i cannot remember right now (am on a computer away from work).

however, if i use "listen 80", then i can access the apache server from another computer.

if i use "listen 80", am i opening the server to the internet? this is something that i want to avoid, which is why i wanted to list the ip addresses specifically.

thanks,

paul
 
Old 09-25-2006, 06:27 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
since your computer is on a lan, no one will be able to access your webserver except your lan computers, unless you have forwarded port 80 on your router.
 
Old 09-26-2006, 12:45 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
The 'listen' indicates on which ip-address/port apache listens. If your apache server has multiple IP addresses, you can pick one of them. Apache will then only listen to requests on that ip-address and not on all addresses.
Is 192.168.0.101 the ip address of the apache server?

Your lan is supposed to be separated from the internet (see w3bd3vil's comment).
In my opinion it's anyway advisable to add a firewall on the apache server to prevent users from gaining access to something that they're not supposed to access (using e.g. telnet or ftp). Have a look at iptables.
 
Old 09-27-2006, 06:24 AM   #4
pulper
LQ Newbie
 
Registered: Jul 2006
Posts: 14

Original Poster
Rep: Reputation: 0
thanks to both of you for your information. very helpful.

paul
 
  


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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Any way to get "Alice"; "Call of Duty" series and "Descent 3" to work? JBailey742 Linux - Games 13 06-23-2006 01:34 PM
"Listen on localhost" - what does it mean? george_mercury Programming 5 12-26-2004 06:28 PM
my mplayer can watch online steram, but can't listen to "most" of the radio site sirpelidor Linux - Software 1 11-22-2003 06:55 PM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration