In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The first pop-up (simple build and port-based) https://blog.51cto.com/14451009/2444673 of Linux powered Apache service
Linux subscription Apache Service second bullet (based on IP and domain name) https://blog.51cto.com/14451009/2444687
The above two blogs introduce some simple configurations of apache software based on different configurations. This blog simply introduces the access control of the website.
Or take the configuration file of the first blog as an example. Now I have two more websites, one is www.demo.com and the other is www.abc.com.
Now that both websites of my test can be accessed, what I need to do now is to make the test machine can not access www.demo.com but can access www.abc.com.
The address of my test machine here is 192.168.220.132.
After knowing the IP address, we need to modify the configuration file as follows. Revisit the service after you finish writing, and then test it.
The test machine here can no longer access the www.demo.com page normally, but the default home page comes out, while www.abc.com can access it normally.
Here, open another Windows XP system as a test machine, and then fill in the address of the DNS server 192.168.220.130.
While the two websites of the XP system can be accessed normally, there is a function of denying access to the IP address. However, in addition to denying access, there is also a function to add a password to the website, so let's briefly introduce the function of adding a user's password to the site.
Here, use the htpasswd-c command to create a file for verifying the username + password. The following refers to the path to the generated file, and finally the user name of the generated file.
After the verification file is generated, it should be added to the configuration file of Apache. The previous www.demo.com website has been set to deny access to the IP address, so here we take the www.abc.com website as the experimental subject, and the specific configuration file is written as follows. Just restart the service after you finish writing.
Restart the service is complete, we want to test the machine above to open the www.abc.com website. Then the verification window appears, and now try pretending to type the wrong account and password. Directly reported the wrong, prompt the wrong password.
Next, enter according to the account and password you set up at the beginning.
On this side, we successfully accessed the content of the website.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.