Apache. htaccess restricts file access. every time the code is written and submitted by svn, when the code is published online. the svn hidden folder is released to the production environment, so that malicious users can directly browse it. svn folder information, but this place. the parent directory of the svn directory is not... apache. htaccess restricts file access. every time the code is written and submitted by svn, when the code is published online. the svn hidden folder is released to the production environment, so that malicious users can directly browse it. svn folder information, but this place. the parent directory of the svn directory is not easy to control. it may exist in multiple folders. svn Directory, so it is difficult to restrict access through Directory, Files can be based on. the file names in the svn folder are matched to prevent access. svn files with the same name as business files can easily be killed by mistake. htaccess, which allows you to configure apache options. Www.2cto.com 1 first modify the apache configuration file, and change AllowOverride None to AllowOverride All 2. create a hidden file. htaccess in the. svn directory. 3. the content of the htaccess file is as follows: 1 2 Order allow, deny3 Deny from all4 4. restart apache to take effect. Www.2cto.com puts the hidden file under the svn code directory, so that it cannot access the. svn directory and the files in it.
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.