Package: mono-apache-server4
Version: 3.8-2.1
Severity: normal
Dear Maintainer,
I added a new site using the admin tool:
mono-server4-admin --app=/test --path=/home/cc/website
then updated the configuration:
mono-server4-update
but attempting to browse to the new site results in this Apache2 error:
AH01630: client denied by server configuration:
/home/cc/website/index.html
After manually editing /etc/mono-server4/mono-server4-hosts.conf and adding
"Require all granted" permissions to the <Directory> section, everything worked
properly.
# start /etc/mono-server4/conf.d/test/10_test
Alias /test "/home/cc/website"
AddMonoApplications default "/test:/home/cc/website"
<Directory /home/cc/website>
Require all granted
SetHandler mono
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>
# end /etc/mono-server4/conf.d/test/10_test
I think the tool mono-server4-admin and mono-server4-update need to address
Directory permissions. If I run mono-server4-update again it will wipe out the
changes.
A simple fix for mono-server4-update would be to add:
print TEMPHOST "Require all granted";
to the end of sub write_tempxsphostfile {
but I'm not sure if more advanced permission management wouldn't be better.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages mono-apache-server4 depends on:
ii debconf [debconf-2.0] 1.5.58
ii libc6 2.19-22
ii libmono-corlib4.5-cil 3.2.8+dfsg-10
ii libmono-posix4.0-cil 3.2.8+dfsg-10
ii libmono-security4.0-cil 3.2.8+dfsg-10
ii libmono-system-configuration4.0-cil 3.2.8+dfsg-10
ii libmono-system-core4.0-cil 3.2.8+dfsg-10
ii libmono-system-web4.0-cil 3.2.8+dfsg-10
ii libmono-system4.0-cil 3.2.8+dfsg-10
ii mono-runtime 3.2.8+dfsg-10
ii mono-xsp4-base 3.8-2.1
ii perl 5.20.2-6
mono-apache-server4 recommends no packages.
mono-apache-server4 suggests no packages.
-- debconf information:
monoserver4/monoserver4_restartapache: true
monoserver4/monoserver1_upgrade_warning: