# apache - basic auth - proxy

```
<VirtualHost *:80>
    ServerAdmin info@xxxxxx
    ServerName xxx.xxx.com
    DocumentRoot /var/www/html/xxx.xxxx.com
    ServerAlias xxxx.xxx.com
    DocumentRoot /var/www/html/xxx.xxxx.com

    ProxyPreserveHost On
    ProxyRequests Off
    ProxyPass /  http://xx.x.xxx.xxx:xxxx/
    ProxyPassReverse /  http://xx.x.xxx.xxx:xxxx/

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

<Location />
  AuthType Basic
  AuthName "Attention"
  AuthBasicProvider file
  AuthUserFile "/var/www/.htpasswd"
  Require valid-user
</Location>

    ErrorLog /var/log/apache2/xxxx.xxxxxx.com-error.log
    LogLevel error
    CustomLog /var/log/apache2/xxxx.xxxxx.com-access.log combined
</VirtualHost>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://security.musana.net/system/apache-basic-auth-proxy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
