# File src/ruby_supportlib/phusion_passenger/platform_info/apache.rb, line 403
    def self.a2enmod(options = {})
      apxs2 = options[:apxs2] || self.apxs2
      dir = File.dirname(apxs2)
      # a2enmod is supposed to be a Debian extension that only works
      # on the APT-installed Apache, so only return non-nil if we're
      # working against the APT-installed Apache.
      if dir == "/usr/bin" || dir == "/usr/sbin"
        if env_defined?('A2ENMOD')
          return ENV['A2ENMOD']
        else
          return find_apache2_executable("a2enmod", options)
        end
      else
        return nil
      end
    end