Forum Moderators: bakedjake

Message Too Old, No Replies

Banning access to Apache on WAn

Want Apache on lan access only

         

freddifurnin

5:48 pm on May 8, 2003 (gmt 0)



I have Apache on WinMe on a lan - I wan't to make sure it can't be accessed via my ADSl router/internet - how do I configure Apache?
The nearest I've got to dicovering an answer was the comment below but that thread is closed
Thanks
Freddi

ps - I'm an Apache beginner so be gentle!

In a thread (now closed)"Apache works locally (on LAN) but not remotely (Internet)" in January "Duckula"
wrote "
msg #:3 2:30 pm on Jan 11, 2003 (utc 0)
You may also want to check your httpd.conf for directives like BindAddress or Listen. I use BindAddress to set my server just for local usage, for security. It haves the same behavior than yours, but here it's intentional."

rayvd

6:11 pm on May 8, 2003 (gmt 0)

10+ Year Member



BindAddress <your_ip_address>

will make Apache listen only on that IP address. By default it is configured as

BindAddress *

Which will listen on your external IP address, your internal IP address (if you have one) and your loopback IP address.

Here's a useful link on binding Apache to various interfaces:
[httpd.apache.org...]

According to that page, it appears that BindAddress can be used with only one IP address. You may want to try the "Listen" directive instaed as it can be used multiple times.

Listen <int_ip>:80
Listen 127.0.0.1:80

Now Apache will listen on your internal IP address, your loopback and _not_ on your external IP.

Good luck!