亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1939 | 回復(fù): 1
打印 上一主題 下一主題

[Record]Subversion, Apache2 and SSL configure Build on Debian5 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-07-05 16:43 |只看該作者 |倒序瀏覽
#
# flyeee at hotmail dot com
#

1.# apt-get install subversion
2.# apt-get install apache2 apache2-utils
3.# apt-get install libapache2-svn
自動配置加載mod_dav.so and mod_dav_svn.so
4.# htpasswd -cm /etc/apache2/svnconf.d/.svn/proj_name_authz_svn.htpasswd name1
5.# mkdir /home/svnroot, chmod 700 /home/svnroot
6.# chown -R www-data:staff /home/svnroot
7.# svnadmin create proj_name
8.# chown -R www-data:staff proj_name
9.# cp /etc/apache2/sites-available/default-ssl /etc/apache2/sites-available/ssl

下面是 SSL 加密:
10.# a2dissite default-ssl   (disable default-ssl,為了enable 一個公共的 ssl)
11.# cd /etc/apaches2/site-enabled
12.# a2enmod ssl
執(zhí)行下面這步,將在/etc/apaches2/site-enabled里 ssl (鏈接到 /etc/apache2/sites-available/ssl)
13.# a2ensite ssl
14.# make-ssl-cert generate-default-snakeoil --force-overwrite
15.# /usr/sbin/apache2-ssl-certificate
根據(jù)情況輸入信息,將/etc/apache2/ssl 里生成 apache.pem 和它的符號鏈接

根據(jù)個人情況裁剪 /etc/apache2/sites-available/ssl 里的內(nèi)容,至少添加下面的內(nèi)容
SSLEngine On
SSLRequireSSL
SSLCertificateFile /etc/apache2/ssl/apache.pem

15.# /etc/init.d/apache restart

現(xiàn)將 /etc/apache2/sites-available/ssl 和 access.conf 貼上,不清楚就看本帖最后的內(nèi)容:

----------------------------------------------------------------------------------------
  1 #
  2 # SSL Primary Configure
  3 # author: ...
  4 # July 5, 2009
  5 #
  6
  7 NameVirtualHost *:443  
  8
  9 <VirtualHost *:443>
10         ServerName yourname
11         ServerAdmin root@localhost
12
13       # ServerSignature On
14         SSLEngine On
15         SSLCertificateFile /etc/apache2/ssl/apache.pem
16
17         <Directory />
18                 Options FollowSymLinks
19                 AllowOverride None
20         </Directory>
21
22         DocumentRoot /var/www/
23         <Directory />
24                 Options FollowSymLinks
25                 AllowOverride None
26         </Directory>
27         <Directory /var/www/>
28                 Options Indexes FollowSymLinks MultiViews
29                 AllowOverride None
30                 Order allow,deny
31                 allow from all
32         </Directory>
33
34         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
35         <Directory "/usr/lib/cgi-bin">
36                 AllowOverride None
37                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
38                 Order allow,deny
39                 Allow from all
40         </Directory>
41
42         ErrorLog "/var/log/apache2/error_log"
43         TransferLog "/var/log/apache2/access_log"
44         CustomLog /var/log/apache2/ssl_access.log combined
45
46         BrowserMatch ".*MSIE.*" \
47                 nokeepalive ssl-unclean-shutdown \
48                 downgrade-1.0 force-response-1.0
49
50         #### Selection of Subversion
51         <Location /yourname>
52                 DAV svn
53                 SVNParentPath /home/svnroot/yourname/
54         #       SVNPathAuthz off
55
56                 AuthType Basic
57                 AuthName "Subversion Repository 1"
58
59                 AuthzSVNAccessFile /etc/apache2/yourname/access.conf
60                 AuthUserFile /etc/apache2/yourname/authz.htpasswd
61
62                 SSLRequireSSL
63                 Require valid-user
64         #       Satisfy Any
66         </Location>
67 </VirtualHost>
----------------------------------------------------------------------------------------
#
# Permission Control
# File: access.conf
# Date: xxxx
#

[groups]
task_admin = name1,name2
trunk =
branches =
tags =
developer =
supporter =

[/]
@task_admin = rw

[/trunk]

[/branches]

[/tags]

----------------------------------------------------------------------------------------

--

參考說明:
1.man something...
2.look up /usr/share/doc/apache2/README.Debian.gz
3.look up /etc/subversion/里的文件
4.look up 中文或英文《使用Subversion進行版本控制》
5.manage it youerself, ~ :~

[ 本帖最后由 tianzhilei 于 2009-9-3 13:15 編輯 ]

論壇徽章:
5
寅虎
日期:2015-01-20 09:16:52亥豬
日期:2015-01-21 14:43:44IT運維版塊每日發(fā)帖之星
日期:2015-12-17 06:20:00每日論壇發(fā)貼之星
日期:2015-12-17 06:20:00每周論壇發(fā)貼之星
日期:2015-12-20 22:22:00
2 [報告]
發(fā)表于 2009-07-05 16:45 |只看該作者

樓主好
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP