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
Allow from IP.OF.ALLOWED.HOST

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/mod_authz_host.so
LoadModule auth_basic_module bin/mod_auth_basic.so

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

Allow From xxx.xxx.xxx.xxx
Allow From xxx.xxx.xxx.xxx
</Location>

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

That’s all

Happy coding !