I am trying to configure a basic authentication for my server using apache, and I need ssl to be enabled as well.
the problem is, the basic authentication prompt sometimes works and sometimes not!! I wonder which part of my configuration is wrong...

maybe I should share few parts of my codes. in httpd.conf I have:

NameVirtualHost *:443
Listen 443
ServerAdmin root@localhost
ServerName localhost
in ssl.conf I have:

<VirtualHost *:443>
ServerAdmin root@localhost
# DocumentRoot /var/www/html
# ServerName localhost
ServerAlias analyzer
ProxyPass /
ProxyPassReverse /
ErrorLog /var/logs/https/analyzer-error.log
CustomLog /var/logs/https/analyzer-access.log combined
SSLEngine On
SSLCertificateFile /etc/httpd/conf/ssl.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key
SSLProxyEngine on

Order deny,allow
Deny from all
Allow from all
AuthName "analyzer"
AuthType Basic
AuthUserFile /var/www/.htpasswd
Require valid-user
any clues what is the cause of the problem..?