<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Configuração do arquivo .htaccess</title>
        <description>Bom dia pessoal.

Recentemente perdi o &amp;quot;medo&amp;quot; e mudei a plataforma do meu site de Windows para Linux.
Nunca tinha mexido com o arquivo htacess e, consequentemente não tinha idéia do poder dele.
Não quero fazer nada de exorbitante, apenas quero usa-lo para questões de melhoria de desempenho.

Depois de várias pesquisas, eu criei um arquivo assim:

&amp;lt;Files ~ &amp;quot;^\.(htaccess|htpasswd)$&amp;quot;&amp;gt;
deny from all
&amp;lt;/Files&amp;gt;

Options -Indexes

# Erro 403
ErrorDocument 403 /erro_403.php

# Erro 404
ErrorDocument 404 /erro_404.php

# Gzip compression
&amp;lt;ifmodule mod_deflate.c&amp;gt;
  AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
&amp;lt;/ifmodule&amp;gt;
# End Gzip compression

# Turn off ETags
FileETag None

order deny,allow

O site ficou &amp;quot;turbo&amp;quot; em comparação às configurações anteriores, mas há momentos em que ele &amp;quot;enrosca&amp;quot; e logs do tipo são gerados na pasta raiz:

error_2014_06_06.txt

[Fri Jun 06 04:14:25 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jun 06 04:14:25 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 06 04:14:25 2014] [notice] Digest: done
[Fri Jun 06 04:14:25 2014] [notice] mod_python: Creating 4 session mutexes based on 7 max processes and 0 max threads.
[Fri Jun 06 04:14:26 2014] [notice] mod_python: using mutex_directory /tmp
[Fri Jun 06 04:14:26 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_python/3.3.1 Python/2.6.6 configured -- resuming normal operations
[Fri Jun 06 07:59:31 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jun 06 07:59:31 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 06 07:59:31 2014] [notice] Digest: done
[Fri Jun 06 07:59:32 2014] [notice] mod_python: Creating 4 session mutexes based on 7 max processes and 0 max threads.
[Fri Jun 06 07:59:32 2014] [notice] mod_python: using mutex_directory /tmp
[Fri Jun 06 07:59:32 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_python/3.3.1 Python/2.6.6 configured -- resuming normal operations
[Fri Jun 06 08:42:29 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jun 06 08:42:29 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 06 08:42:29 2014] [notice] Digest: done
[Fri Jun 06 08:42:29 2014] [notice] mod_python: Creating 4 session mutexes based on 7 max processes and 0 max threads.
[Fri Jun 06 08:42:29 2014] [notice] mod_python: using mutex_directory /tmp
[Fri Jun 06 08:42:30 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_python/3.3.1 Python/2.6.6 configured -- resuming normal operations

Se eu der um CTRL+SHIFT+DEL e colocar a url, às vezes ele gera esse log, mas depois se eu fechar o browser e colocar a url de novo ele abre normalmente.

Qualquer ajuda, desde já agradeço!</description>
        <link>/phorum/read.php?3,191458,191458#msg-191458</link>
        <lastBuildDate>Fri, 07 Aug 2026 22:02:23 +0000</lastBuildDate>
        <generator>Phorum 5.2.10</generator>
        <item>
            <guid>/phorum/read.php?3,191458,191458#msg-191458</guid>
            <title>Configuração do arquivo .htaccess</title>
            <link>/phorum/read.php?3,191458,191458#msg-191458</link>
            <description><![CDATA[Bom dia pessoal.<br />
<br />
Recentemente perdi o &quot;medo&quot; e mudei a plataforma do meu site de Windows para Linux.<br />
Nunca tinha mexido com o arquivo htacess e, consequentemente não tinha idéia do poder dele.<br />
Não quero fazer nada de exorbitante, apenas quero usa-lo para questões de melhoria de desempenho.<br />
<br />
Depois de várias pesquisas, eu criei um arquivo assim:<br />
<br />
&lt;Files ~ &quot;^\.(htaccess|htpasswd)$&quot;&gt;<br />
deny from all<br />
&lt;/Files&gt;<br />
<br />
Options -Indexes<br />
<br />
# Erro 403<br />
ErrorDocument 403 /erro_403.php<br />
<br />
# Erro 404<br />
ErrorDocument 404 /erro_404.php<br />
<br />
# Gzip compression<br />
&lt;ifmodule mod_deflate.c&gt;<br />
  AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript<br />
&lt;/ifmodule&gt;<br />
# End Gzip compression<br />
<br />
# Turn off ETags<br />
FileETag None<br />
<br />
order deny,allow<br />
<br />
O site ficou &quot;turbo&quot; em comparação às configurações anteriores, mas há momentos em que ele &quot;enrosca&quot; e logs do tipo são gerados na pasta raiz:<br />
<br />
error_2014_06_06.txt<br />
<br />
[Fri Jun 06 04:14:25 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)<br />
[Fri Jun 06 04:14:25 2014] [notice] Digest: generating secret for digest authentication ...<br />
[Fri Jun 06 04:14:25 2014] [notice] Digest: done<br />
[Fri Jun 06 04:14:25 2014] [notice] mod_python: Creating 4 session mutexes based on 7 max processes and 0 max threads.<br />
[Fri Jun 06 04:14:26 2014] [notice] mod_python: using mutex_directory /tmp<br />
[Fri Jun 06 04:14:26 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_python/3.3.1 Python/2.6.6 configured -- resuming normal operations<br />
[Fri Jun 06 07:59:31 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)<br />
[Fri Jun 06 07:59:31 2014] [notice] Digest: generating secret for digest authentication ...<br />
[Fri Jun 06 07:59:31 2014] [notice] Digest: done<br />
[Fri Jun 06 07:59:32 2014] [notice] mod_python: Creating 4 session mutexes based on 7 max processes and 0 max threads.<br />
[Fri Jun 06 07:59:32 2014] [notice] mod_python: using mutex_directory /tmp<br />
[Fri Jun 06 07:59:32 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_python/3.3.1 Python/2.6.6 configured -- resuming normal operations<br />
[Fri Jun 06 08:42:29 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)<br />
[Fri Jun 06 08:42:29 2014] [notice] Digest: generating secret for digest authentication ...<br />
[Fri Jun 06 08:42:29 2014] [notice] Digest: done<br />
[Fri Jun 06 08:42:29 2014] [notice] mod_python: Creating 4 session mutexes based on 7 max processes and 0 max threads.<br />
[Fri Jun 06 08:42:29 2014] [notice] mod_python: using mutex_directory /tmp<br />
[Fri Jun 06 08:42:30 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_python/3.3.1 Python/2.6.6 configured -- resuming normal operations<br />
<br />
Se eu der um CTRL+SHIFT+DEL e colocar a url, às vezes ele gera esse log, mas depois se eu fechar o browser e colocar a url de novo ele abre normalmente.<br />
<br />
Qualquer ajuda, desde já agradeço!]]></description>
            <dc:creator>Rogerio Pancini Pereira</dc:creator>
            <category>Perguntas Variadas / Não Relacionadas ao PHP</category>
            <pubDate>Fri, 06 Jun 2014 13:23:07 +0000</pubDate>
        </item>
    </channel>
</rss>
