Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache 2.4 e .htaccess erro 500 provocado pela diretiva FilterProvider #12

Open
alande-amorim opened this issue Aug 20, 2013 · 0 comments

Comments

@alande-amorim
Copy link

.htaccess gerando Internal Server Error no apache 2.4. Registro de log de erro do apache:

[Tue Aug 20 09:51:12.295370 2013] [core:alert] [pid 24538] [client 127.0.0.1:37392] /var/www/FacilMVC/.htaccess: FilterProvider takes three arguments, filter-name provider-name match-expression

Segundo http://httpd.apache.org/docs/2.4/upgrading.html :

mod_filter: FilterProvider syntax has changed and now uses a boolean expression to determine if a filter is applied.

De acordo com http://httpd.apache.org/docs/2.4/mod/mod_filter.html#upgrade :

The FilterProvider directive has changed from httpd 2.2: the match and dispatch arguments are replaced with a single but more versatile expression. In general, you can convert a match/dispatch pair to the two sides of an expression, using something like:

Solução, no apache 2.4, substituir as diretivas FilterProvider no .htacces de:

FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
...

Para:

FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} = 'text/html'"
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant