centos apache svn forbidden
<p>I am using centos 7, I installed httpd, svn and mod_dav_svn, I can access the apache by <a href="http://localhost" rel="nofollow noreferrer">http://localhost</a>.</p>

<p>my /etc/httpd/conf.modules.d/10-subversion.conf looks like :</p>

<pre><code>LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so
LoadModule dontdothat_module  modules/mod_dontdothat.so

&lt;Location /svn&gt;
DAV svn
SVNParentPath /svn
AuthName "SVN repo"
AuthType Basic
AuthUserFile /etc/svn/svn-auth
AuthzSVNAccessFile /svn/authz
Require valid-user
&lt;/Location&gt;
</code></pre>

<p>Create svn repo by command : </p>

<pre><code>cd /svn
sudo svnadmin create repo
sudo chown -R apache:apache repo
</code></pre>

<p>Then setup user permission for users by editting /svn/authz which copied from /svn/repo/conf/authz</p>

<pre><code>sudo cp /svn/repo/conf/authz /svn/authz
</code></pre>

<p>However, when I accessed <a href="http://localhost/svn/repo" rel="nofollow noreferrer">http://localhost/svn/repo</a>, it showed me that 403 forbidden, You don't have permission to access /svn/repo on this server.</p>

<p>my /svn directory is :</p>

<pre><code>[frank@localhost svn]$ ls
authz  repo

[frank@localhost svn]$ ls -l
total 4

-rw-r--r--. 1 root   root   1123 Nov 12 11:08 authz
drwxr-xr-x. 6 apache apache   80 Nov 12 11:01 repo
</code></pre>

<blockquote>
  <p>/svn/authz</p>
</blockquote>

<pre><code>[groups]
admin = frank
general_user=test1

[/]
@admin=rw

[repo:/]
@general_user=r
</code></pre>

<p>What's the problem?</p>

<p><strong>----- Updated on 14 Nov ------------</strong></p>

<p>I enabled logging like </p>

<pre><code>&lt;Location /svn&gt;    
DAV svn  
 …  
&lt;/Location&gt;

CustomLog logs/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION
</code></pre>

<p>there is svn_logfile under /var/log/httpd, but it is empty.</p>

<blockquote>
  <p>-rw-r--r--. 1 apache apache    0 Nov 14 22:32 svn_logfile</p>
</blockquote>

<p>In error_log, the information displayed as </p>

<pre><code>[Mon Nov 14 22:32:15.789588 2016] [core:notice] [pid 6924] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Nov 14 22:32:15.791536 2016] [suexec:notice] [pid 6924] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
[Mon Nov 14 22:32:15.828814 2016] [auth_digest:notice] [pid 6924] AH01757: generating secret for digest authentication ...
[Mon Nov 14 22:32:15.830345 2016] [lbmethod_heartbeat:notice] [pid 6924] AH02282: No slotmem from mod_heartmonitor
[Mon Nov 14 22:32:15.842779 2016] [mpm_prefork:notice] [pid 6924] AH00163: Apache/2.4.6 (CentOS) SVN/1.7.14 configured -- resuming normal operations
[Mon Nov 14 22:32:15.842858 2016] [core:notice] [pid 6924] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Nov 14 22:32:25.641415 2016] [authz_svn:error] [pid 6933] (13)Permission denied: [client ::1:60550] Failed to load the AuthzSVNAccessFile: Can't open file '/svn/authz': Permission denied
[Mon Nov 14 22:32:25.641504 2016] [authz_svn:error] [pid 6933] [client ::1:60550] Access denied: 'frank' GET repo:/
</code></pre>

<p>but permission of /svn/authz is:</p>

<blockquote>
  <p>drwxr-xr-x.   4 apache apache   41 Nov 13 22:16 svn</p>
  
  <p>-rwxrwxrwx. 1 apache apache 1120 Nov 12 22:58 authz </p>
  
  <p>drwxr-xr-x. 6 apache apache   80 Nov 12 11:01 repo</p>
</blockquote>