Day before ,  we decided to migrate to new server and wanted to make sure our repos are accessible by specific ip Only

as per standard apache we tried

Order deny,allow
Deny from all

But this one ends up with

Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration

We need to load security module (More Here) to make sure it understand ip restrictions , to do so and make sure ip restrictions work fine

open your %VISUALSVN_SERVER%conf\httpd-custom.conf file and copy below block

LoadModule authz_host_module bin/
LoadModule auth_basic_module bin/

<Location /svn/>
Order Deny,Allow
Deny From All

Allow From
Allow From

Don’t miss to restart your server to make sure this changes are in effect!

That’s all

Happy coding !