Can you please help me install Apache modules?

I have started work on drupal and it seems I need a little Apache configuration knowledge. I need to implement this "Allow from address" so that I can block certain ip addresses but I don’t know which file to edit.

System = Linux Ubuntu 10.04
SO the idea is to block access to certain node (pages). To do this I’ll need to implement the mod.


Comments

One Response to “Can you please help me install Apache modules?”

  1. Ben on September 8th, 2010 9:31 am

    Right. So you are trying to Allow certain IP addresses to access your localhost? If so, edit the httpd.conf file with these values:

    FIND THIS:
    <Directory "/your/directory/to/www">

    Order Allow,Deny
    Allow from all

    </Directory>

    REPLACE WITH:
    <Directory "/your/directory/to/www">

    Order allow,deny
    Allow from 192.168.1.0
    #and so on
    </Directory>

    192.168.1.0 should be replaced with your computer’s IP (linux, I don’t know how to get it, sorry) for you to be allowed access to it.

Powered by Yahoo! Answers