Lighttpd way to achieve safety certification htaccess

2010-07-21  来源:本站原创  分类:OS  人气:178 

We all know there is a powerful Linux Apache server, he can achieve a lot of advanced techniques, such as we need a directory for user security authentication, to ensure their safety. In Apache, this all can use. Htaccess file to control, and the results are quite satisfactory, there is no back door. Well, today I say here about this lightweight in Lighttpd server software, how to prevent unauthorized user access.

Open / etc / lighttpd / lighttpd.conf file

Confirmed server.modules open "mod_auth" (you can remove the # in front of)

# # Auth
auth.debug = 0 # This is the debugging information. 0 is off
auth.backend = "plain" # authentication. There are four kinds, we choose the simplest.
auth.backend.plain.userfile = "/ etc / lighttpd / .lighttpdpwd" verify user name password file

Create the password file. Lighttpdpwd

vi / etc / lighttpd / .lighttpdpwd
test: test
nicelover: 123456

User name can be added, the format in accordance with the user: password

Case

Global definition, we can set a virtual host, you can also set the global in the global set of all virtual hosts will have an impact. We have on awstats safety certification program directory setting an example.

In the space with

auth.require = ("/ awstats" =>
(
"Method" => "basic",
"Realm" => "Authentication Awstats Management",
"Require" => "valid-user"
),
)

This site will be for any domain name directories awstats security certification.

For a virtual host folder security certification, such as we need to import the database management software for secure authentication, then we can do

# # Phpmyadmin.nicelover.cn
$ HTTP ["host"] = ~ "phpmyadmin \. Nicelover \. Cn $" (
auth.require = ("/" =>
(
"Method" => "basic",
"Realm" => "Authentication PhpMyadmin Management",
"Require" => "valid-user"
),
)
)

Case, auth.require defined domain name surrounded by curly braces, safety certification will be certified this domain.

Specific instructions, please refer to the official wiki lighttpd
http://trac.lighttpd.net/trac/wiki/Docs% 3AModAuth

相关文章
  • Lighttpd way to achieve safety certification htaccess 2010-07-21

    We all know there is a powerful Linux Apache server, he can achieve a lot of advanced techniques, such as we need a directory for user security authentication, to ensure their safety. In Apache, this all can use. Htaccess file to control, and the res

  • Nginx (or Lighttpd) + PHP (fastcgi) how to use. Htaccess 2010-07-21

    Nginx (or Lighttpd) + PHP (fastcgi) how to use. Htaccess $ Cd / usr / ports / devel / pecl-htscanner $ Make install clean lighttpd.conf in the access-deny is defined as follows (prevent people get to go) url.access-deny = ("~", ". inc"

  • CXF safety certification 2010-05-26

    CXF's webService has been created is good, but there is no security at all, after all, this is the Internet service ah. CXF to a very comprehensive security framework, but given ws_security DEMO CXF too complicated, it is password jks X509 Timestamp.

  • JAVA foundation: In order to build Web Services Struts applications 2009-03-30

    MVC model at the basis of Web Services implementation solutions will be even better point. Part in the follow-up, you will see how to use Struts to do this. I will elaborate on WSManager layer to the existing Struts framework, this one demonstrated t

  • JAVA foundation: In order to build Web Services Struts application 2009-04-01

    Here, I will briefly introduce the next Struts Architecture and Model - View - Controller (MVC). Struts encourages the Model - View - Controller design paradigm to build up basic applications. Struts view through the ActionForm with Struts controller

  • To safety or to the user experience? Talk on smart mobile terminals signature verification mechanism 2011-01-01

    Most of the smart phone system installation and operation of an application, require the certificate signature verification. Without any sign of the program is not installed on the smartphone and run. Although some terminals can be installed and run

  • install linux environment 2011-01-07

    . First find the apache php mysql source package download URL address http://www.apache.org http://www.php.net http://www.mysql.com . Install apache 1) Extract the source package # Tar-zxf httpd-2.2.9.tar.gz # Cd httpd-2.2.9 2) modify worker.c (worke

  • php open source project 2011-05-11

    WordPress Blog] [PHP open source blog WordPress is the most popular open source personal publishing system (Blog) one of the building based on PHP + MySQL. WordPress offers features include: 1. The article published, classification, archiving. 2. To

  • cas client User Guide 2009-05-05

    2008-02-27 JA-SIG (CAS) Study Notes 3 Keywords: cas sso uniform identity authentication java ja-sig Technical background knowledge: JA-SIG CAS service environment to build, please refer to: JA-SIG (CAS) study notes a JA-SIG CAS business architecture

  • FLASH and server communication (JAVA) 2010-03-20

    1.FLASH obtained through the URL address of the server data. In this way the most simple, just like in the browser's address bar, hit the same inside. First create a URLRequest, URLLoader and then loaded on the line. The following is included in an i

  • [Change] Scrum method of Twenty Questions 2010-04-06

    Scrum for agile methods, in 10 years ago by Ken Schwaber and Jeff Sutherland co-sponsor, the name comes from rugby, the software used to simulate Scrum software development team which displayed the speed and flexibility. (In football rules, Scrum is

  • [Translation] use Safesforce.com and Java to integrate cloud computing applications (on) 2010-05-06

    Original: Integrate your Cloud Computing Apps with Salesforce.com, Java OF: Andrew Lawlor Source: http://www.devx.com/SaaS/Article/44382/0/page/1 The current economic environment caused by pressure to reduce development and maintenance of enterprise

  • Thinking in uml 03 uml core elements (4) 2010-05-27

    6. Analysis of class in most projects, analysis of class is neglected a very useful element. Two important properties: (1) of the representative system, the main category of "cluster functions", which means that class analysis is the computer fr

  • National security document management system Chevalier officially listed in 2010 2010-06-01

    Beijing China Chevalier Electronic Document Management System Certification Co., Ltd. Safety (GFA EFS) in the formal market in early 2010, the system is the Wealth of Nations security R & D team developed after more than a year to complete, integrate

  • Acegi framework introduced 2010-06-22

    Acegi framework introduced On 2008-08-26: Chen Xionghua Source: IT168 Outline Any application for a complete system, improve the authentication and authorization mechanism is essential. Acegi Security (hereinafter referred to as Acegi) for a Spring-b

  • Google Wave guide entry 2010-06-25

    Since September last year, Google has begun inviting people to use its Google Wave collaboration services. But now the search giant began to think it's the service is ready to open a golden age, and it announced the service open to all. Google Wave W

  • Spring Security Acegi way of learning a 2010-08-03

    Outline Acegi Security (hereinafter referred to as Acegi) for a Spring-based enterprise applications provide powerful and flexible security framework for access control solutions, Acegi has become an official Spring sub-project, I also called Spring

  • Little Ant-CAS single sign-on series (4) - Using RDBMS Authentication 2010-08-17

    In practice, the user authentication information usually stored in the RDBMS or LDAP, so to better ensure the safety of the system. This section will use the RDBMS is stored, through a simple example to demonstrate its use. 1. Preparation of environm

  • JAVA Programmer Interview - Sunflower Collection 2010-09-23

    What are the characteristics of object-oriented aspects of 1. Abstract: Abstract is to overlook a theme with the current target 2. Unrelated to those aspects, 3. To more fully pay attention to the current target 4. Related aspects. Abstract is not 5.

  • 100 interview questions (a) 2010-09-29

    1 What are the characteristics of object-oriented aspects of (1). Abstract: Abstract is to ignore the topic has nothing to do with those aspects of the current target in order to more fully attention-related aspects of the current target. Abstract do