Where to set apache directive in ispconfig?

Discussion in 'Installation/Configuration' started by beryl, Feb 15, 2021.

  1. beryl

    beryl Member

    I want to limit /server-status to only work from localhost, where do I set such directive?
    Code:
    <Location "/server-status">
        SetHandler server-status
        Require ip 127.0.0.1
    </Location>
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Under the website options -> Apache directive
     
  3. beryl

    beryl Member

    And for the whole server?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    That's not ispconfig specific, you can basically use any global apache config file like apache2.conf or httpd.conf, or preferrably create a new one in conf.d or conf-enabled folder.
     
  5. beryl

    beryl Member

    Thank you, I noticed that mod_status already had a directive set to localhost by default which is great :)
    I had some older machines that hadn't had their Apache configs updated for a few years, so I thought mod_status was still leaking data by default.
     

Share This Page