proxymis
asked on
.htaccess no effect
My goal is to password protect site:
(site is avaible in /var/www)
I have put an .htaccess into /var/www/.htaccess
www.elite-voyance.com
here is the content:
I have the mod rewrite enable as shown in:
http://www.elite-voyance.com/phpinfo.php
Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_actions mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_fcgid mod_include mod_mime mod_negotiation mod_php5 mod_reqtimeout mod_rewrite mod_setenvif mod_ssl mod_status mod_suexec mod_suphp
and NOTHING: it seems .htaccess has no effect at all
What am I doing wrong ?
(site is avaible in /var/www)
I have put an .htaccess into /var/www/.htaccess
www.elite-voyance.com
here is the content:
Authname "login"
AuthUserFile /var/www/.htpasswd
AuthType Basic
require valid-user
I have the mod rewrite enable as shown in:
http://www.elite-voyance.com/phpinfo.php
Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_actions mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_fcgid mod_include mod_mime mod_negotiation mod_php5 mod_reqtimeout mod_rewrite mod_setenvif mod_ssl mod_status mod_suexec mod_suphp
and NOTHING: it seems .htaccess has no effect at all
What am I doing wrong ?
Do you have access to the server's configuration files? If so, this should be done there instead. If not, processing of the .htaccess files may be disabled with an AllowOverride directive which could be the cause of this not working.
ASKER
yes I have ROOT access to server: what should I do ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.