CrazyEngineers
  • Help in Apache Web Server:Limiting accessibility to only one m/c

    shalini_goel14

    shalini_goel14

    @shalini-goel14-ASmC2J
    Updated: Oct 19, 2024
    Views: 1.1K
    Hi all,

    I have some static data that is showed from Apache web server but I want to make accessibility limited to only one machine. Like if that data is accessed by one machine then by any means it should not be accessible by any another machine . Even copying of that data should also not be allowed.

    Can it be done by modifying httpd-mpm configuration file in installed directory of Apache because this file is for Server Pool Management.

    Any ideas anyone?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • shalini_goel14

    MemberMay 11, 2009

    OK guys , Thanks for your support. 😀

    I guess my problem is solved

    there is one <Directory> tag in httpd.conf configuration file of installed Apache Webs erver folder. change the default setting "Allow from all" to "Deny from all". Similary if you are sharing files there is tag called <
    FilesMatch> tag . do same thing with it also.

    For more information check following link 😀
    #-Link-Snipped-#


    I hope it would work. 😔
    Are you sure? This action cannot be undone.
    Cancel
  • shalini_goel14

    MemberMay 12, 2009

    Yes guys the above thing worked.

    Those who have interest in trying it out and can arrange 3 machines check this out, it is really fun.

    Step 1: Download Apache Web server as a service in M/c # 1.

    Step 2: Keep your static pages(let it be html) in any drive in your M/c # 1. Here I am putting it Apache 2.2/htdocs location of M/c # 1. Let my folder name be "Crazy Engineers" having html pages inside it.

    Step 3: Now open Apache/conf folder an open httpd-conf file in it and add following entry at the end of the file and save.
    <Directory "D:/Apache 2.2/htdocs/Crazy Engineers">
    AllowOverride None
    Order allow,deny
    deny from all
    allow from <ip of machine at which you want its accessibility, let it be M/c # 2>
    </Directory>
    Step 4: Similar to step 3 , edit entry for
    <Directory "D:/Apache2.2/htdocs"> from "Allow all" to "Allow from <ip of machine at which you want its accessibility,let it be M/c # 2>"

    Step 5: Save file and start the server .

    Step 6: Try to access the html page from M/c # 2. It will succeed.

    Step 7 : Try to access the html page from M/c #3. It will fail.

    *M/c # 1 will only be your server machine. To avoid any ports conflict make sure port no asked at the time of installation is free.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register