11.18 Apache user authenticationNote: This chapter uses a browser to detect the virtual machine IP and virtual host domain names in the physical machine hosts file.Configure user authentication Edit the virtual host profile "Httpd-vhosts.conf". [[emailprotected] ~]# vim/usr/local/apache2.4/conf/extra/httpd-vhosts.conf ... DocumentRoot "/data/wwwroot/111.com" ServerName 111.com Serveralias www.example.
Total Apache Apache user authentication method
A. Basic Apache user authentication method:
If you need to authenticate a file in a directory such as/home/ftp/pub, add the following line to the httpd.conf
Options Indexes FollowSymLinks
AllowOverride authconfig
Order Allow,d
Nbsp; after installing httpdhttpd-develpam-develsubversionsubversion-perl with rpm, cpanSVK can complete svk installation. Step 1 of enabling ssl for http: create key and request: opensslreq-new gt; new. cert. csr
Install with rpmHttpdHttpd-develPam-develSubversionSubversion-perlAfter the above package is installed, cpan SVK can complete the svk installation.Enable ssl for httpStep 1: Create the key and request:Openssl req-new> new. cert. csrStep 2: delete passphrase from the key (optional ):Op
Readers who frequently access the Internet may encounter this situation: when accessing some resources of some websites, a dialog box pops up in the browser asking users and passwords to access resources. This is a technology used for user authentication. User authentication is the first line of defense to protect network system resources, it controls all the login and check the legitimacy of the access to
After Apache configures user authenticationAllowOverride authconfigAuthName "Z"AuthType Basicauthuserfile/data/.htpasswdRequire Valid-userAuthentication is required for the first visit, and then the browser cache is cleared, and the second time the directory is accessed, no authentication is required. However, the cache has been cleared, why do not need authentication
One, Apache user authentication
1. Encrypt directory vim/usr/local/apache2.4/bin/apachectl start vim/usr/local/ apache2.4/conf/extra/httpd-vhosts.conf//123.com that virtual host edited into the following DocumentRoot "/data/wwwroot/www.123.com" ServerName www.123.com AllowOverride authconfig//This equivalent to open the authentication switc
apache| server Currently, Apache, PHP4, MySQL are the best partners to build a Web site under Linux, these three software are free software.The combination of the three, through the HTTP protocol, the use of PHP4 and MySQL, the implementation of Apache user authentication function. PHP4 can be authenticated when it is
Open usr/local/apache2/conf/extra/http-vhostd.conf1. Vim usr/local/apache2/conf/extra/http-vhostd.conf Enter theseAllowOverride authconfigAuthName "Welcome" CustomAuthType Basicauthuserfile/data/.htpasswd Password fileRequire Valid-user2./usr/local/apache2/bin/hdpasswd-c/data/.hdpasswd TextEnter passwordRe-enter3. When you create a user doc,/USR/LOCAL/APACHE2/BIN/HDPASSWD/DATA/.HDPASSWD docThe-c option is not required.4./usr/local/apache2/bin/apachectl-t5./usr/local/apache2/bin/apachectl Gracefu
Purpose: In order to increase the security, when the user accesses: admin.php needs to enter the authentication information to proceed the next stepOperation Steps:In the virtual host configuration file, you need to join#admin. Directory where PHP is locatedallowoverride authconfig #启用验证模块AuthType Basic #类型AUTHUSERFILE/DATA/WWW/.HTPASSWD #密码文件所在的位置Require Valid-userHtpasswd-c/DATA/WEB/TEST/.HTPASSWD Test#第一次创建用户要用到-C parameter is added to the user for
Release date:Updated on:
Affected Systems:Apache Group Tomcat 7.xApache Group Tomcat 6.xApache Group Tomcat 5.xUnaffected system:Apache Group Tomcat 7.0.12Apache Group Tomcat 6.0.33Apache Group Tomcat 5.5.34Description:--------------------------------------------------------------------------------Bugtraq id: 49762Cve id: CVE-2011-1184
Tomcat is a Servlet container developed by the Jakarta project under the Apache Software Foundation. According to t
Release date: 2012-4 4Updated on: 2012-12-06
Affected Systems:Apache Group Tomcat 7.0.0-7.0.29Apache Group Tomcat 6.0.0-6.0.35Description:--------------------------------------------------------------------------------Bugtraq id: 56812CVE (CAN) ID: CVE-2012-3546
Apache Tomcat is a popular open source JSP application server program.
Versions earlier than Tomcat v7.0.30 and 6.0.36 have security vulnerabilities in FORM
1, in the corresponding virtual host configuration file segment, addAllowOverride authconfigAuthName "Custom"AuthType BasicAUTHUSERFILE/DATA/.HTPASSWD # Here's/data/.htpasswd you can write a path or name, no limitRequire Valid-userAfter saving, and then2, create an Apache authenticated userHTPASSWD-CM/DATA/.HTPASSWD TestAdd the second user, do not add-C, because the-C is the meaning of the creation, if added will be the file rewrite.How
In this example, Apache Shiro is used to implement identity authentication in a Web application, integrating Shiro with spring and storing user information using an embedded Derby database.
The persistent layer is hibernate, and the database connection pool is Alibaba druid. 2. Preparation
Create an inline Derby database, this example uses db-derby-10.10.1.1. 2.1 Build Table
Create Table Users (
Id int PRIM
Lamp Build-apache user authentication (enter password to access)The website is not displayed directly after entering the URL, but prompts you to enter the password to access;Edit Httpd-vhosts.conf Documentvim /usr/local/apache2.4/conf/extra/httpd-vhosts.confCreate a password fileCreate password file with user name admin/usr/local/apache2.4/bin/htpasswd -c -m /data/.htpasswd adminReload Configuration-t,grace
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.