w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Apache Basic authentication not working

From http://httpd.apache.org/docs/2.2/mod/core.html#location

The enclosed directives will be applied to the request if the path component of the URL meets any of the following criteria:

  1. The specified location matches exactly the path component of the URL.
  2. The specified location, which ends in a forward slash, is a prefix of the path component of the URL (treated as a context root).
  3. The specified location, with the addition of a trailing slash, is a prefix of the path component of the URL (also treated as a context root).

so you need to remove "http://x.x.x.x" from your path in Location node





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.