Для отладки возникшей проблемы мне нужен сервер Apache + Subversion, который выгружает все запросы и ответы в файл журнала. Это не предназначено для производства, поэтому аутентификация также отключена.
Я застрял с dump_io, мой error.log не содержит запросов / ответов.
Вот соответствующая настройка.
Dockerfile
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y apache2
RUN apt-get install -y subversion libapache2-mod-svn libsvn-dev
RUN apt-get install -y less nano
RUN a2enmod dav
RUN a2enmod dav_svn
RUN a2enmod dump_io
RUN printf "DumpIOInput On\nDumpIOOutput On\nLogLevel debug" >> /etc/apache2/apache2.conf
RUN service apache2 restart
COPY dav_svn.conf /etc/apache2/mods-enabled/dav_svn.conf
COPY 000-default.conf /etc/apache2/sites-enabled/000-default.conf
RUN mkdir -p /var/local/svn
RUN svnadmin create /var/local/svn/myrepo
RUN chown -R www-data:www-data /var/local/svn
RUN chmod -R 775 /var/local/svn
EXPOSE 80
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
dav_svn.conf
<Location /svn/>
DAV svn
DavDepthInfinity on
SVNParentPath /var/local/svn/
Satisfy Any
Allow from all
DirectorySlash Off
LogLevel debug
</Location>
000-default.conf (это по умолчанию, я только добавил строку LogLevel)
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
Поместите три файла в папку и
docker build -t svn-server .
docker run -it -p 3570:80 --rm svn-server
curl http://localhost:3570/svn/myrepo
После выполнения запроса я ожидаю, что /var/log/apache2/error.log
будет содержать полный ответ GET /svn/myrepo
.