http://d.hatena.ne.jp/toguni/20090818
sudo apt-get install apache2
sudo a2enmod ssl
sudo /etc/init.d/apache2 restart
sudo mkdir /etc/apache2/ssl
sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
sudo cp /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-ssl.conf.gz /etc/apache2/sites-available
cd /etc/apache2/sites-available
sudo gunzip httpd-ssl.conf.gz
mkdir ~/www
sudo vi httpd-ssl.conf
# DocumentRoot "/home/xxxxxx/wwww"
# #Listen 443
# SSLCertificateFile "/etc/apache2/ssl/apache.pem"
# SSLCertificateKeyFile "/etc/apache2/ssl/apache.pem"
sudo a2ensite httpd-ssl.conf
sudo /etc/init.d/apache2 restart
sudo apt-get install subversion libapache2-svn
sudo vi /etc/apache2/mods-enabled/dav_svn.conf
# <Location /svn>
# DAV svn
# SVNParentPath /home/XXXXXX/www/svn_repository
# AuthType Basic
# AuthName "Subversion Repository"
# AuthUserFile /etc/apache2/dav_svn.passwd
# AuthzSVNAccessFile /etc/apache2/dav_svn.authz
# Require valid-user
# </Location>
cd /etc/apache2
sudo htpasswd -cb dav_svn.passwd use-id(XXXXXX) password(YYYYYY)
sudo cat > dav_svn.authz << _EOF_EOF_
[/]
* = r
[test:/]
user1 = rw
_EOF_EOF_
$ sudo vi /etc/subversion/config
# enable-auto-props = yes ; 改行コードをサーバで統一
# apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName -----エラーがでたので、
$ sudo vi /etc/apache2/apache2.conf
ServerName Hostname
#確認してみる。
cd ~/www
sudo mkdir svn_repository
cd svn_repository
sudo svnadmin create test
sudo chown -R www-data.www-data test
cd ~
mkdir test
echo "TEST DATA" > test/data.txt
svn import test/ https://localhost/svn/test/ -m "import test"
svn checkout https://localhost/svn/test
0 件のコメント:
コメントを投稿