loadmodule section:
Add the following two rows to the end of loadmodule.
# Loadmodule vhost_alias_module modules/mod_vhost_alias.so and
Loadmodule dav_svn_module modules/mod_dav_svn.so
Loadmodule authz_svn_module modules/mod_authz_svn.so
3c. Add the following to end of the file. Note: This location directive is
Minimal example with no authentication directives. For other options,
Especially authentication options, see the Subversion Install file,
The Subversion b
SVN new project
Take creating an HP project as an example:
Create a folder Hp in F: \ svn_repo
Select the HP folder, right-click tortoisesvn -- create repository here
C: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf folder editing httpd. confInsert at the end
Dav SVN
Svnpath F:/svn_repo/HP
Authtype basic
Authname "Subversion repositories"
Authuserfile F:/svn_repo/passwd
Require valid-user
Take creating an HP p
-LockAvoid locking (may damage parallel compilation ).-With-picTry to use only the PIC/non-pic object [default = use both].-Enable-memory-LimitSupports memory restrictions during compilation.-Disable-URL-fopen-wrapperDo not use the fopen wrapper of the URL to access files through HTTP or FTP.-Enable-VersioningOnly the required symbols are output. For more information, see the install file.-With-imsp [= dir]Including imsp support (DIR is the include directory of imsp and libimsp. A directory ). O
Use HTTP Headers to defend against WEB Attacks
Load the page again and a warning box will pop up.
Perform the same test in FireFox and the test is successful.
Change the value of the X-XSS-Protection header to 1 and try again.
Header ("X-XSS-Protection: 1 ");
You can easily see that X-XSS-Protection has been successfully enabled.
HTTP/1.1 200 OK
Date: Sun, 12 Apr 2015 14:54:42 GMT
Server: Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8y
-2.2.8// Configure apache#./Configure -- enable-dav -- enable-so -- enable-ssl -- enable-maintainer-mode -- prefix =/usr/local/apache2 -- enable-mod-shared = all// Compile# Make// Install the SDK after compilation# Make install// Test the installation. First modify the apache configuration file# Vi/usr/local/apache2/conf/httpd. confChange ServerName to ServerName: 80// Start the apache service#/Usr/local/apache2/bin/apachectl start// Open the browserH
not found../Configure -- prefix =/usr/local/apache -- with-apr =/usr/local/apr/-- with-apr-util =/usr/local/apu/-- Enable-so -- enable-dav -- enable-maintainer-mode -- enable-rewrite-- Enable-ssl -- with-ssl =/usr/local/opensslSo you have to install pcre (Regular Expression function library)Download the version 8.36 from the official website.Tar-zxvf pcre-8.36.tar.gzCd pcre-8.36Mv pcre-8.36/usr/local/pcre copy directly to/usr/local./Configure (compil
Instructions for SVN project management under Apache
Instructions for SVN project management under Apache
(1) install Apaceh and SVN first.
(2) Find the httpd. conf file in the apache directory and add the following configuration in the last line:Include conf/svn. properties
(3) Add a svn. properties file under the conf directory of apache.The added content is as follows (1 ):
DAV svnSVNParentPath "D:/svn"AuthType BasicAuthName "Subversion repositorie
(via a windows Network Neighbor ). However, there is a fatal drawback in this way: access without a password is greatly reduced in installation.
3. Add security configurations
Edit the file in step 2 and change it:
# Dav filesystemDAVLockDB var/DavLockAlias/webdav "/home/webdavfolder"Dav OnAuthType BasicAuthName DAVAuthUserFile/usr/local/svn-auth-file # password verification fileRequire user user1
4. Creat
Exception: exception objects with more details, such as HTTP status codes, error codes, and error call stacks.
Supplement: If you use a basic or advanced application template, the error operation and error view are defined.
Custom error format
The error processor displays the error according to the format set for the Response. if the yii \ web \ Response: format Response format is html, the error or exception view is used to display the error message, as described in the previous section. Fo
')]) {
$_session [' test_sess ']++;
}Else{
$_session [' test_sess '] = 0;
}
Echo $_session[' test_sess '];
Use an HTTP packet sniffer tool called Httplook to grab the package:
The first time the server is requested:
get/test.php http/1.1Accept: */*referer:http://localhost/Accept-language:zh-cnAccept-encoding:gzip, deflateuser-agent:mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon;. NET CLR 1.1.4322)Host:localhostConnection:keep-alive
T
is published by "the first time the server returns:
The code is as follows:
HTTP/1.1 200 OKDate: Fri, 26 Aug 2005 07:44:22 GMTServer: Apache/2.0.54 (Win32) SVN/1.2.1 PHP/5.0.4 DAV/2X-Powered-By: PHP/5.0.4Set-Cookie: PHPSESSID = bmmc3mfc94ncdr15ujitjogma3; path =/Expires: Thu, 19 Nov 1981 08:52:00 GMTCache-Control: no-store, no-cache, must-revalidate, post-check = 0, pre-check = 0Pragma: no-cacheContent-Length: 1Keep-Alive: time
infinite", what is the problem!
Why is the file encoding UTF-8 required? or how has it changed in the middle!
------ Solution --------------------
Is the browser UTF-8 encoded?
How is love infinite?
------ Solution --------------------
Since you say "do not help", I will pass.
Prompt ASCII (25) = %
------ Solution --------------------
Check whether the default host encoding is utf8.
------ Solution --------------------
The http header information contains
MS-Author-Via:
Routing cdapr-1.3.6./configure -- prefix/usr/local/aprmake amp; makeinstallcd..www.2cto.com ####### security
Apache and svn integrated installation under CentOS ####### install apr ######### tar zxvf apr-1.3.6. tar. gzcd apr-1.3.6. /configure -- prefix =/usr/local/aprmake make installcd .. www.2cto.com ####### install apr-util ####### tar zxvf apr-util-1.3.8. tar. gzcd apr-util-1.3.8. /configure -- with-apr =/usr/local/aprmake make installcd .. ######## If apache has been installed, you need
: svnadmin create repos
5: chown-R apache. apache repos
6: vi/etc/httpd/conf. d/subversion. conf
Configure Localtion as follows: note that the default value is SVNParentPath, which is changed to SVNPath.
DAV svn
SVNPath/var/www/svn/repos
# Limit write permission to list of valid users.
#
# Require SSL connection for password protection.
# SSLRequireSSL
AuthType Basic
AuthName "Subversion repos"
AuthUserFile/etc/svn-auth-conf
Require valid-user
#
during code consolidation* Permission control cannot be granted to the owner of the code* Issues with different versions of the project are difficult to publishHow SVN works:Subversion Directory Description:*dav directory: is to provide Apache and MOD_DAV_SVN use of the directory, let them store internal data*DB Directory: All version-controlled data storage files*hooks directory: The directory where the hook script files are placed*locks directory:
install it. You can do this in Ubuntu.
Sudo apt-Get install subversion libapache2-svn libapache-mod-Dav apache2
If the installation fails because the installation package cannot be found, runApt-Get Install update.
Step 2: Enable SSL,
Sudo a2enmod sslsudo sh-c "Echo 'Listen 443 '>/etc/apache2/ports. conf"
Because the default SSL port is port 443, we add it to the Apache port configuration file.
The third step is to generate SSL authentica
1. First describe the HTTP common methods
Get gets the specified resource
POST submits data to the specified resource for processing requests
Head gets the specified resource header information
PUT replaces the specified resource (browser operation not supported)
Delete Deletes the specified resource
OPTIONS allows clients to view server performance
TRACE echo the request received by the server, primarily for testing or diagnostics
Connect is reserved for pro
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.