Web Site Services (ii)
User Authorization Restrictions
1 Creating a user authentication data file (new data file /usr/local/httpd/conf/.awspwd including a user named webadmin )
View the created user data file
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/8F/70/wKioL1jeRuvQv5TUAAG4iPJ3SVc619.png-wh_500x0-wm_ 3-wmp_4-s_2232606525.png "title=" image 1.png "alt=" wkiol1jeruvqv5tuaag4ipj3svc619.png-wh_50 "/>
2 Adding a user authorization configuration
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/8F/72/wKiom1jeRvaSPS9WAAAYyfiexb4404.png-wh_500x0-wm_ 3-wmp_4-s_2204381521.png "title=" image 2.png "alt=" wkiom1jervasps9waaayyfiexb4404.png-wh_50 "/>
AuthName defining a protected realm name
AuthType Setting the type of authentication Basic indicates a base certificate
AuthUserFile Set the path of the authentication file to hold the user account password
Require Valid-user requires only legitimate users in the authentication file to access
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/8F/70/wKioL1jeRwORqKBOAAEqOjXVToo115.png-wh_500x0-wm_ 3-wmp_4-s_1922522537.png "title=" image 3.png "alt=" wkiol1jerworqkboaaeqojxvtoo115.png-wh_50 "/>
Restart the service for the new configuration to take effect
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/8F/72/wKiom1jeRxKAg68eAAAbGLhTVbI263.png-wh_500x0-wm_ 3-wmp_4-s_4053444266.png "title=" image 4.png "alt=" wkiom1jerxkag68eaaabglhtvbi263.png-wh_50 "/>
3 Authenticating user access authorizations
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/8F/70/wKioL1jeRyCQcGQpAADc2fgepaU381.png-wh_500x0-wm_ 3-wmp_4-s_3882573378.png "title=" image 5.png "alt=" wkiol1jerycqcgqpaadc2fgepau381.png-wh_50 "/>
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/8F/72/wKiom1jeRy6RZtOkAADQDx2aw7k297.png-wh_500x0-wm_ 3-wmp_4-s_782008711.png "title=" image 6.png "alt=" wkiom1jery6rztokaadqdx2aw7k297.png-wh_50 "/>
Domain-based virtual host
1 preparing Web page documents for a virtual host
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/8F/72/wKiom1jeRz6x40n5AAEKuQg8CrU929.png-wh_500x0-wm_ 3-wmp_4-s_438838771.png "title=" image 7.png "alt=" wkiom1jerz6x40n5aaekuqg8cru929.png-wh_50 "/>
2 Adding a virtual host configuration
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/8F/70/wKioL1jeR0vi3DJsAAAxJ3xBlmA117.png-wh_500x0-wm_ 3-wmp_4-s_3231170431.png "title=" image 8.png "alt=" wkiol1jer0vi3djsaaaxj3xblma117.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/8F/70/wKioL1jeR13x-9eSAAFhZ-tWdMI595.png-wh_500x0-wm_ 3-wmp_4-s_160072916.png "title=" image 9.png "alt=" wkiol1jer13x-9esaafhz-twdmi595.png-wh_50 "/>
Load stand-alone configuration files
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/8F/72/wKiom1jeR2vz5ipvAAANo5VJePE603.png-wh_500x0-wm_ 3-wmp_4-s_2734594065.png "title=" image 10.png "alt=" wkiom1jer2vz5ipvaaano5vjepe603.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/8F/70/wKioL1jeR-ri940bAAEfFhtNp68812.png-wh_500x0-wm_ 3-wmp_4-s_2251805061.png "title=" image 1.png "alt=" Wkiol1jer-ri940baaeffhtnp68812.png-wh_50 "/>
Set access permissions for a directory
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/8F/70/wKioL1jeSBTz2GooAAC2nvFMt3g198.png-wh_500x0-wm_ 3-wmp_4-s_726806745.png "title=" image 2.png "alt=" Wkiol1jesbtz2gooaac2nvfmt3g198.png-wh_50 "/>
Restart the service for configuration to take effect
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/8F/72/wKiom1jeSDSzQPxLAAAO9gSzPVo592.png-wh_500x0-wm_ 3-wmp_4-s_959626974.png "title=" image 3.png "alt=" Wkiom1jesdszqpxlaaao9gszpvo592.png-wh_50 "/>
4 Accessing the virtual Web host on the client
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/8F/70/wKioL1jeSJXCuf2MAADD7H46CVI280.png-wh_500x0-wm_ 3-wmp_4-s_1577446812.png "title=" image 4.png "alt=" wkiol1jesjxcuf2maadd7h46cvi280.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/8F/72/wKiom1jeSKKQznQ0AACf_nWv2cY428.png-wh_500x0-wm_ 3-wmp_4-s_4259162097.png "title=" image 5.png "alt=" wkiom1jeskkqznq0aacf_nwv2cy428.png-wh_50 "/>
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/8F/70/wKioL1jeSK6RVQevAADfU2MG_SA953.png-wh_500x0-wm_ 3-wmp_4-s_4250291364.png "title=" image 6.png "alt=" wkiol1jesk6rvqevaadfu2mg_sa953.png-wh_50 "/>
IP address-based virtual host
650) this.width=650; "Src=" Https://s5.51cto.com/wyfs02/M01/8F/70/wKioL1jeSLqQQcCVAAAPQjA72bQ903.png-wh_ 500x0-wm_3-wmp_4-s_2024483670.png "title=" image 7.png "alt=" wkiol1jeslqqqccvaaapqja72bq903.png-wh_50 "/>
650) this.width=650; "Width=" 3 "height=" 5 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/E /u261/themes/default/images/word.gif ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650) this.width =650; "Width=" 3 "height=" 5 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/themes/ Default/images/word.gif ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" Width= " 3 "height=" 5 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/themes/default/images /word.gif ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" width= "3" height= "5" Src= "/e/u261/themes/default/images/spacer.gif" style= "Background:url ("/e/u261/themes/default/images/word.gif ") No-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>650" this.width=650; "width=" 3 "height=" 5 "src="/e/u261/ Themes/default/images/spacer.gif "style=" Background:url ("/e/u261/themes/defaUlt/images/word.gif ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" Width= "3" height= "5" src= "/e/u261/themes/default/images/spacer.gif" style= "Background:url ("/e/u261/themes/default/images/ Word.gif ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/8F/70/wKioL1jeSNSCmVsZAARMIPI6HqM012.png-wh_500x0-wm_ 3-wmp_4-s_987665647.png "title=" image 8.png "alt=" Wkiol1jesnscmvszaarmipi6hqm012.png-wh_50 "/>
650) this.width=650; "Width=" 3 "height=" 5 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/E /u261/themes/default/images/word.gif ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650) this.width =650; "Width=" 3 "height=" 5 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/themes/ Default/images/word.gif ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= " Https://s3.51cto.com/wyfs02/M00/8F/72/wKiom1jeSOmRj3csAAIev2wNpRU745.png-wh_500x0-wm_3-wmp_4-s_1611265400.png " title= "Picture 9.png" alt= "wkiom1jesomrj3csaaiev2wnpru745.png-wh_50"/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/8F/70/wKioL1jeSSWAcfcRAAAMqfBURyc217.png-wh_500x0-wm_ 3-wmp_4-s_1736321341.png "title=" image 10.png "alt=" wkiol1jesswacfcraaamqfburyc217.png-wh_50 "/>
Client Authentication
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/8F/70/wKioL1jeSnywIE3kAACnOM4rthE205.png-wh_500x0-wm_ 3-wmp_4-s_2638648659.png "title=" image 1.png "alt=" wkiol1jesnywie3kaacnom4rthe205.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/8F/72/wKiom1jeSouBn90eAAE9dIThZCE710.png-wh_500x0-wm_ 3-wmp_4-s_2411716102.png "title=" image 2.png "alt=" wkiom1jesoubn90eaae9dithzce710.png-wh_50 "/>
Port-based virtual host
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/8F/72/wKiom1jeSpqBp1DYAADgZrTcrK4630.png-wh_500x0-wm_ 3-wmp_4-s_2374099040.png "title=" image 3.png "alt=" wkiom1jespqbp1dyaadgzrtcrk4630.png-wh_50 "/>
Domain-based virtual web host