Apache virtual hosts set of experiments

 

 

 

 

 

 

 

                                                                        Lab: implement basic user authentication

Use specific commands to complete the creation of such files and user management

htpasswd

-c automatically create a file, it should only be used when the file does not exist

-p clear text passwords

-d CRYPT format encryption, the default

-m md5 format encryption

-s sha format encryption

-D delete the specified user

Generate user passwords stored files

Create a user

Add Configuration

an examination

 

Restart Service

 

After the restart the service to test your browser

                               Experiment: shared home directory


View module

Anyone can access this file implements

 

Create a file

Access (Permission Denied)

 

 

Check the error log

 

Plus rights (only to apache a person's permission)

 

ok

In the validation set

Restart Service

 

After login

       

                                                                                 

                                    Experiment: to achieve the status page

 

View module

Enable status

 

Restart Service

In the browser test (this can function as a monitor)

Lower limit only through 192.168.174.0 this segment access (only you can access the network)

Restart Service

                                   Experiment: Based on IP multi-Hosting

 

Built 3 folder (create 3 files and then take 3 pages)

 

Temporary plus 3 address

 

To set prior to testing under the hosts, or to put up a DNS

test

 

                                   

 

                                       Experiment: Based on port multiple virtual hosts

Change hosts

test

 

Guess you like

Origin www.cnblogs.com/guopeijun123/p/11225868.html