Configure Apache and subversion for snow leopard

Source: Internet
Author: User
When Snow Leopard configures Apache and subversion to install xcode, it automatically installs the support for subversion. However, when I configure the HTTP support for subversion, I always report SVN: Options of 'HTTP: // localhost/svnrep ': 200 OK (http: // localhost) error. In desperation, You have to configure the HTTPS method. The result is OK, I really don't know what's wrong. The configuration is very simple, that is, remove the comment in/etc/apache2/httpd. conf:
Include/private/etc/apache2/extra/httpd-ssl.conf

Then generate the certificate:
Sudo OpenSSL req-New-X509-days 3650-nodes-out/etc/apache2/Apache. pem-keyout/etc/apache2/Apache. pem
Just answer the question and the certificate will be fine.

Edit httpd-ssl.conf, add the following line

Sslcertificatefile "/private/etc/apache2/Apache. pem"

Configure Apache support for subversion:
$ Sudo VI/etc/apache2/extra/httpd-subversion.conf

Java code
  1. Namevirtualhost*: 443
  2. <Virtualhost *: 443>
  3. Servername localmac
  4. Serveradmin webmaster @ localmac
  5. <Location/>
  6. Dav SVN
  7. Svnpath/users/user1/svnrep
  8. Authtype basic
  9. Authname "Local subversion repository"
  10. Authuserfile/etc/apache2/subversion. htpasswd
  11. Require valid-user
  12. </Location>
  13. Errorlog/var/log/apache2/error-ssl.log
  14. Loglevel warn
  15. Serversignature on
  16. </Virtualhost>
NameVirtualHost *:443<VirtualHost *:443>        ServerName localmac        ServerAdmin webmaster@localmac        <Location />                DAV svn                SVNPath /Users/user1/svnrep                AuthType Basic                AuthName "Local Subversion Repository"                AuthUserFile /etc/apache2/subversion.htpasswd                Require valid-user        </Location>        ErrorLog /var/log/apache2/error-ssl.log        LogLevel warn        ServerSignature On</VirtualHost>

Here I use the virtualhost method and add it to/etc/hosts.
127.0.0.1 localmac

That's simple, but it took me a day.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.