Results 1 to 3 of 3

Thread: Apache Access - LAN Only

  1. #1
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts

    Apache Access - LAN Only

    At the moment, I've got an Apache server set up. I've set up ports.conf such that only I i.e. 127.0.0.1 can access the server. How can I set up the server so that anybody on the same LAN can (192.168.1.x), but you can't from the Internet?

    Thanks for any help!

    Mike.
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  2. #2
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,168
    Thanks
    735
    Thanked
    1,607 times in 1,045 posts
    One of the most simple ways would be to use a .htaccess in the directory, or iirc, you could use it in the httpd.conf file.

    order deny,allow
    deny from all
    allow from 192.168.1

    Change IP to match that of your LAN
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  3. #3
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    That seems to have worked nicely - thanks Agent!
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. annoying onboard lan problem
    By uchiha_itachi in forum Networking and Broadband
    Replies: 2
    Last Post: 05-02-2006, 07:12 PM
  2. Cisco access list problem
    By Stu in forum Networking and Broadband
    Replies: 1
    Last Post: 16-04-2005, 07:52 PM
  3. Belkin F5D6130 802.11b Wireless Access Point
    By Howard in forum Reader Reviews
    Replies: 4
    Last Post: 10-12-2004, 11:20 PM
  4. Cant access hard drive over lan
    By Platinum in forum Networking and Broadband
    Replies: 1
    Last Post: 08-08-2004, 12:36 PM
  5. ASUS W/LESS LAN 11Mbps ACC/POINT £32.90
    By silentphoenix in forum Retail Therapy and Bargains
    Replies: 1
    Last Post: 13-05-2004, 12:36 AM

Posting Permissions

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