Why does Apache sometimes prompt you to enter the password twice when you access a file?
Source: Internet
Author: User
Article Title: Why does Apache sometimes prompt you to enter the password twice when you access a file. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Problem Analysis: if the host name of the server you access is different from the ServerName defined in the Apache configuration file, when a request to reference its own URL is generated, apache redirects your request to a new host name based on the settings of the UseCanonicalName attribute. for example, if you access a directory without adding a trailing slash, apache first requires verification on the original page and then executes redirection. because the host name has changed, Apache then requires verification on the page of the new host name. Two verification requests are required.
Solution:
1. add a slash at the end of each access to the directory;
2. use the ServerName defined in the Apache configuration file for access, or set UseCanonicalName off in the Apache configuration file.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service