.htacces in MDS webservice | Feature request

Issue #666 new
Olivier EMSELLEM created an issue

Hello Tim,

I’m trying to install .htaccess for the munkiwebsite.

I’ve of course put a .htaccess file in the munkirepo directory but no go.

Turns out I have to add the htaccess part in the com.twocanoes.mds.http.conf

located here:

/private/etc/apache2/other/com.twocanoes.mds.http.conf

this is what I’ve inserted

AuthType Basic
AuthName "Munki Repository"
AuthUserFile /Volumes/some/path/to/munki_repo_htaccess/.htpasswd
Require valid-user
#Require all granted

Works as expected BUT

As soon as I restart the webservice From within MDS button, htacces settings ARE wiped out.

I can bypass by using the macOs builtin function:

/usr/sbin/apachectl stop
/usr/sbin/apachectl start

or

/usr/sbin/apachectl restart

It would be wonderfull to be able to include an option for a .htaccess in MDS, so the settings aren’t erased, and would prevent issues in production.

at least for the munki_repo and eventually for any website.

Many thanks and very great Tool

Oliver

Comments (0)

  1. Log in to comment