Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006
    Posts
    304

    How To Make Web Sites Lan Accessible ONLY in Apache

    Is it possible to setup websites on apache that are only accessible via the lan? I wisht to setup a varity of domains that should only be accessible via computers locally.

    The web server will however be plugged into an active internet connection. Thanks for any help.

  2. #2
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    you can avoid it being added to the dns and add the domain and ip to the hostfile alone (domain must be configured in Lan Ip's)

    Or you can implement mod_access in apache to deny access to other Ip's
    http://httpd.apache.org/docs/1.3/mod/mod_access.html

  3. #3
    Join Date
    Jun 2006
    Posts
    304
    Quote Originally Posted by activelobby4u
    you can avoid it being added to the dns and add the domain and ip to the hostfile alone (domain must be configured in Lan Ip's)

    Or you can implement mod_access in apache to deny access to other Ip's
    http://httpd.apache.org/docs/1.3/mod/mod_access.html
    Adding it the DNS, ok, but they will still be able to access the folders/sites via the ip address correct? So even though I dont add a domain, outside people would still be able to access it. Lets say I have an internal application installed in root/calendar, they could access:

    http://serverip/calendar

    I am sorry, I a little new to this, so bear with me. I suppose what I want to do is create intranet sites. Thanks.

  4. #4
    Join Date
    Jan 2005
    Location
    San Francisco/Hot Springs
    Posts
    988
    This is a basic apache access control statement...

    something like this works

    <Location /foo>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 10.1.1.1
    Allow from 192.168.1.
    </Location>
    AppliedOperations - Premium Service
    Bandwidth | Colocation | Hosting | Managed Services | Consulting
    www.appliedops.net

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •