I'm having a similar issue getting MWA2 working correctly on a fresh ubuntu 16.04 server install. I have everything working to the point where MySQL is the DB backend (I'm pretty sure I got that part right) and Apache is serving
, but I think something is wrong with my apache config. I basically followed
instructions taking into account some of the changes in the RHEL7 set up documentation for MWA2 for using django 1.9.x.
Under DATABASES, make the following changes:
'ENGINE': 'django.db.backends.mysql’,
'NAME': 'munkiwebadmin',
'USER': 'munkiwebadmin',
'PASSWORD': ‘*my password*’
'HOST': ‘’,
'PORT': ‘’,
-----------
my apache conf is as follows:
-----------
# Base configuration
Alias /catalogs/ /var/www/html/catalogs/
Alias /manifests/ /var/www/html/manifests/
Alias /pkgs/ /var/www/html/pkgs/
Alias /icons/ /var/www/html/icons/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
# Munki Web Admin
Alias /static/ /usr/local/munkiwebadmin_env/mwa2/munkiwebadmin/static/
<Directory /usr/local/munkiwebadmin_env/mwa2/munkiwebadmin/static>
Order allow,deny
Allow from all
Require all granted
</Directory>
WSGIDaemonProcess munkiwebadmin python-path=/usr/local/munkiwebadmin_env/mwa2:/usr/local/munkiwebadmin_env/lib/python2.7/site-packages
WSGIProcessGroup munkiwebadmin
WSGIScriptAlias / /usr/local/munkiwebadmin_env/mwa2/munkiwebadmin/wsgi.py
<Directory /usr/local/munkiwebadmin_env/mwa2/munkiwebadmin>
<Files wsgi.py>
Order allow,deny
Allow from all
Require all granted
</Files>
</Directory>
# Munki Repo
<Directory /var/www/html>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Require all granted
</Directory>
SSLCertificateFile /etc/ssl/certs/munkiwebadmin.crt
SSLCertificateKeyFile /etc/ssl/private/munkiwebadmin.key
-----------------
Using that I can get to the munkiwebadmin page, then log in, but after that I get a 403 error about not having permission to access the /manifest/ directory.
Looking in the apache logs I see this error:
No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
If I change <Directory /var/www/html> -> Options FollowSymLinks -> Options +FollowSymLinks, I don't get the error anymore, but all I see is the directory structure of that folder. Maybe I'll try not using MySQL to see if that makes a difference. ¯\_(ツ)_/¯