Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

svn apache access in RHEL/Fedora

First of all, please modify the Location section in /etc/httpd/conf.d/subversion.conf like so:

<Location /repos>
   DAV svn
   SVNParentPath /home/svn/repos

   SSLRequireSSL
   Require valid-user

   AuthType Basic
   AuthUserFile /etc/httpd/local/svn-auth
   AuthName "SVN Authorization"
   AuthzSVNAccessFile /etc/local/httpd/svnauthz.conf 
</Location>

If you want SSL, also modify /etc/httpd/conf.d/ssl.conf like:

#   Server Certificate:
SSLCertificateFile /etc/pki/tls/certs/localhost.crt

#   Server Private Key:
SSLCertificateKeyFile /etc/pki/tls/private/dchen.key

#   Certificate Authority (CA):
SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt

Refer following links for certificate generation:
Self-signed SSL Certificate for testing purposes

Real SSL Certificate

After this, and it’s important, check the SELinux setting.
The quick workaround is, of course, set it to either permissive mode or disable it.
But it is better to set SELinux label accordingly.
Execute following commands:

setsebool -P httpd_unified=1

Please refer man 8 httpd_selinux or http://fedoraproject.org/wiki/SELinux/apache for further information.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: