Note that there are some explanatory texts on larger screens.

plurals
  1. POApache HTTP Basic Auth - 401 error after supplying username and password
    primarykey
    data
    text
    <p>I am attempting to configure my amazon server with Apache Http to prompt the user for username/password upon hitting the domain via browser.</p> <p>Here is a snippet from my app.conf file (included in the httpd.conf)</p> <pre><code>Alias / "/opt/bitnami/apache2/htdocs" &lt;Directory "/opt/bitnami/apache2/htdocs"&gt; AuthType Basic AuthName "No Trespassing" AuthUserFile "/opt/bitnami/apache2/users" Require valid-user &lt;IfVersion &lt; 2.3 &gt; Order allow,deny Allow from all Satisfy all &lt;/IfVersion&gt; &lt;IfVersion &gt;= 2.3&gt; Require all granted &lt;/IfVersion&gt; ErrorDocument 403 "Authentication error" &lt;/Directory&gt; </code></pre> <p>After logging in I am redirected to a 401 "Authorization error" page. Any reason here? I am thinking perhaps my other .conf file causes some conflict.</p> <p>In httpd.conf I have the following:</p> <pre><code>WSGIScriptAlias / /opt/bitnami/apps/django/scripts/djangoApp.wsgi &lt;Directory '/opt/bitnami/apps/django/django_projects/djangoApp'&gt; Order allow,deny Allow from all Satisfy all &lt;/Directory&gt; </code></pre> <p>Could the first line of each of those snippets be causing a conflict here, preventing me from logging in? I am not sure, but they both look to be creating a similar alias.</p> <p>If there are any more details I should provide, please let me know.</p> <p>Here is the error in the logs:</p> <pre><code>[Wed Jan 09 03:49:49 2013] [error] [client X.X.X.X] client denied by server configuration: /opt/bitnami/apache2/htdocsindex.html [Wed Jan 09 03:49:49 2013] [error] [client X.X.X.X] client denied by server configuration: /opt/bitnami/apache2/htdocsfavicon.ico [Wed Jan 09 03:50:28 2013] [error] [client X.X.X.X] client denied by server configuration: /opt/bitnami/apache2/htdocsindex.html [Wed Jan 09 03:50:28 2013] [error] [client X.X.X.X] client denied by server configuration: /opt/bitnami/apache2/htdocsfavicon.ico [Wed Jan 09 03:50:28 2013] [error] [client X.X.X.X] client denied by server configuration: /opt/bitnami/apache2/htdocsfavicon.ico </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload