Apache Builds HTTP protocol repository

Source: Internet
Author: User


1.Apache installation program
Package: Apache_2.2.14-win32-x86-no_ssl.msi
Path: \\10.202.101.23\10.Utility\01.Development\01.Development\CI\Apache\apache_2.2.14-win32-x86-no_ssl.msi
2.Subversion installation program
Package: Setup-subversion-1.6.9.msi
Path: \\10.202.101.23\10.Utility\01.Development\04.AddonControl\Setup-Subversion-1.6.9.msi
3.Apache Installation
1. The default option is always installed (there is no need to worry about halfway)
2. Locate the httpd.conf file (reference path: C:\Program files\apache software foundation\apache2.2\conf)
Modify the port, for example: Change the original 80 port to 8081
#Listen 12.34.56.78:80
Listen 8081
3. Restart Apache

4. Configure Apache
1. Copy subversion under Bin Mod_dav_svn.so and mod_authz_svn.so to the Apache modules folder under
2. Copy the Libdb44.dll under the Subversion bin to the Apache Bin folder under
3. Modify the httpd.conf file under the Conf folder under Apache
3.1 remove LoadModule Dav_fs_ Module modules/mod_dav_fs.so before "#"
3.2 remove LoadModule dav_module modules/mod_dav.so before the "#"
3.3 plus LoadModule dav_s Vn_module modules/mod_dav_svn.so
3.4 plus LoadModule authz_svn_module modules/mod_authz_svn.so
3.5 at the end of the file add:
& L T Location/svn>
DAV svn
#多仓库的父目录的路径
Svnpath D:\svnCloud\FirstHttp
#激活基本认证方式
authtype Basic
# Pop-up authentication dialog
AuthName authentication
#认证密码文件的文件名
authuserfile passwd
#分组及授权文件的文件名
authzsvnaccessfile Authz
# The URL
Require valid-user
Satisfy any
</location> can be accessed only through authentication;

5. User and password
5.1 Open cmd and go to Apache directory
5.2 Input Command: bin\htpasswd-c passwd user name, for example: Bin\htpasswd-c passwd user1
3.3 Follow the prompts to enter the password
5.4 Apache directory with a file named passwd
5.5 from the creation of the second user, the command entered under CMD is: bin\htpasswd passwd user name, for example: BIN\HTPASSWD passwd user2
6 Grouping and authorization
6.1 Create a Authz file in the Apache directory
6.2 Modify in the following format:
[Groups]
Group Name 1 = Crew 1
Group Name 2 = Crew 2, member 4

[Warehouse name 1:/]
@ Group Name 1 = RW
[Warehouse name 1:/folder 1]
@ Group Name 1 = RW
@ Group Name 2 = r

7. New repository, same as before

Apache Builds HTTP protocol repository

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.