• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

restrict IP address access in Apache

wuboy

Member

i know that this is possible, and it may be easier for some of you gurus. i'm getting a little annoyed at myself for not figuring it out...

but basically, i want to restrict a directory in my apache root directory to certain IP addresses, namely a range of IPs. i've tried using the <directory> and <directory proxy:*> thingies, but it hasnt worked for me yet...

is there something i'm not doing correctly?

thanks!
 

Omega,

Thanks.

But i still havent gotten it to work. just to confirm on how to do it... i'll give you the process...

so my understanding is... first you create the Directory directive in your httpd.conf file. these will contain the allowoverride, order, deny from, allow from parameters.

then you create a file called .htaccess in the subdirectories. and in this file, you list which ips to allow, which ones to deny.

so far, ive done this, but it hasnt worked, so i think im missing something.

does anyone know what it can be? thanks...
 

never mind
i am retarded
i needed to restart the apache server. freak me.

what's the difference between apachectl restart and httpd restart?

one of them works, the other one doesnt. go figure.

thanks omega
 


<< never mind
i am retarded
i needed to restart the apache server. freak me.

what's the difference between apachectl restart and httpd restart?

one of them works, the other one doesnt. go figure.

thanks omega
>>




httpd restart probably doesnt work. apachectl is a script. You should be able to see exactly what "apachectl restart" does by more'ing it.
 
OMG! As fate would have it.. i just click here... while thinkin about that same prob...

hehe thanks man... just what i was looking for 😀
 
Back
Top