htaccess
Permitir PHP_VALUE no .htaccess
Postado em 26/06/2008 por Rogerio - Categoria: Dicas Linux - Tags: php htaccess
Teoricamente só precisa do "AllowOverride Options" e "php_admin_flag engine on".
Exemplo (configuração do apache):
php_admin_flag engine On AllowOverride FileInfo AuthConfig Limit Options
Exemplo (.htaccess):
php_value post_max_size 20971520 php_value upload_max_filesize 20971520 php_value magic_quotes_gpc off php_value session.save_handler files php_value register_globals off
htaccess pedindo senha no Apache
Postado em 26/06/2008 por Rogerio - Categoria: Dicas Linux - Tags: apache htaccess autenticação
Exemplo de arquivo .htaccess
AuthType Basic AuthName "SITE COM SENHA" AuthUserFile /etc/apache2/senhas_do_site.txt require valid-user
No apache, deve estar setado a opção:
AllowOverride AuthConfig