+ Responder ao Tópico



  1. #1

    Padrão [Suporte] Ajuda em .htpasswd e .htacess

    Galera estou usando kurumin 7 e estou tentando porproteção htpasswd e htaccess. mais n consigo de forma alguma.olhem o erro.

    meu arquivo .htaccess

    AuthUserFile /usr/local/bolsa/usuarios
    AuthType Basic
    AuthName "Entre com Login e Senha"
    require user BolsaFamilia
    Order deny,allow
    Allow from all

    meu .htpasswd

    BolsaFamilia:z9pmBM1zXmJl.

    meu arquivo de configuração do apache2 default o q esta em negrito abaixo foi o q eu inseri e la no final o erro q da.

    NameVirtualHost *
    <VirtualHost *>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www/
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    <Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    allow from all
    # This directive allows us to have apache2's default start page
    # in /apache2-default/, but still have / go to the right place
    RedirectMatch ^/$ /apache2-default/
    </Directory>
    <Directory /var/www/msn-proxy/php>
    Options Indexes
    AllowOverride AuthConfig
    Order allow,deny
    allow from all
    </Directory>


    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined
    ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    </VirtualHost>


    ERRO QUANDO ATIVO ESTA CONFIGURAÇÃO E TENTO ACESSAR A PAGINA

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 Server at localhost Port 80

  2. #2

    Padrão

    [QUOTE=uoquisala;388354]Galera estou usando kurumin 7 e estou tentando porproteção htpasswd e htaccess. mais n consigo de forma alguma.olhem o erro.

    meu arquivo .htaccess

    AuthUserFile /usr/local/bolsa/usuarios
    AuthType Basic
    AuthName "Entre com Login e Senha"
    require user BolsaFamilia
    Order deny,allow
    Allow from all

    meu .htpasswd

    BolsaFamilia:z9pmBM1zXmJl.


    mano.. muda em AuthUserFile /usr/local/bolsa/usuarios para o nome do arquivo de senha no seu caso o .htpasswd

    o correto ficaria
    AuthUserFile /usr/local/www/data-dist/diretorio_com_senha/.htpasswd
    e o .htaccess no mesmo diretorio!

    []'s