Apache Require ip creating error file

Discussion in 'Installation/Configuration' started by ShaferTech, Dec 14, 2020.

  1. ShaferTech

    ShaferTech Member

    Under System I added a directive Snippet; Require ip x.x.x.x, I also tried <RequireAny>Require ip x.x.x.x </RequireAny>
    Then under a site, i added it to the apache directives.
    I see ISPConfig update the .conf for the domain and then it changes it too a .err file
    Besides editing the vhost directly, where can you add a require ip apache directive? or does the syntax need to be different.

    For now I have added to the htaccess but I was hoping there was a way through the interface.
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Per the documentation, you would put it in a directory context, eg. something like:
    Code:
    <Directory "{DOCROOT}">
       <RequireAny>
           Require ip x.x.x.x
       </RequireAny>
    </Directory>
    
     

Share This Page