The `FilterProvider` syntax has changed in Apache 2.4 #4552

Closed
xchs opened this Issue Jul 22, 2012 · 8 comments

Comments

Projects
None yet
2 participants
@xchs
Contributor

xchs commented Jul 22, 2012

I recently upgraded my Apache web server from version 2.2.21 to 2.4.2 and while testing the Contao 2.11.5 hotfix branch I am getting server errors complaining about a syntax error regarding the FilterProvider directive (that we are currently using in our .htaccess.default server configuration file):

FilterProvider takes three arguments, filter-name provider-name match-expression

In fact, the syntax for the FilterProvider directive has changed in version 2.4:

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

However, the solutions actually discussed in the html5-boilerplate GitHub tracker do not look quite promising at all (apart the fact, the mod_version module fairly sure not being available in all hosting environments, I guess). Do we really need to do a version compare as proposed there in the ticket?

Does anyone know a better way we could handle this issue (maybe before rolling out the upcoming bugfix release 2.11.5)?

@leofeyer

This comment has been minimized.

Show comment Hide comment
@leofeyer

leofeyer Jul 23, 2012

Owner

Funny you are mentioning it, because I also came across the issue this weekend :)

I am curious what they chose as their preferred solution, although I don't like the idea of having the same block three times (twice if mod_version is available and one legacy block). I'd rather have a htaccess.default.2.2 and a .htaccess.default.2.4.

Owner

leofeyer commented Jul 23, 2012

Funny you are mentioning it, because I also came across the issue this weekend :)

I am curious what they chose as their preferred solution, although I don't like the idea of having the same block three times (twice if mod_version is available and one legacy block). I'd rather have a htaccess.default.2.2 and a .htaccess.default.2.4.

@xchs

This comment has been minimized.

Show comment Hide comment
@xchs

xchs Jul 23, 2012

Contributor

I'd rather have a htaccess.default.2.2 and a .htaccess.default.2.4.

Yeah, that might be an alternative (meanwhile). However, we would have to maintain then four copies of the server configuration file, two with the default configuration and another two for the developing stage.

Contributor

xchs commented Jul 23, 2012

I'd rather have a htaccess.default.2.2 and a .htaccess.default.2.4.

Yeah, that might be an alternative (meanwhile). However, we would have to maintain then four copies of the server configuration file, two with the default configuration and another two for the developing stage.

leofeyer added a commit that referenced this issue Aug 13, 2012

Added the new Apache 2.4 "FilterProvider" syntax to the `.htaccess.de…
…fault` file, merged the code from the `.htaccess.dev` file and added general redirect rules to redirect the empty domain to the "www" subdomain or vice-versa (see #4552)
@leofeyer

This comment has been minimized.

Show comment Hide comment
@leofeyer

leofeyer Aug 13, 2012

Owner

Adjusted the .htaccess.default file accordingly in 371d5a3.

Owner

leofeyer commented Aug 13, 2012

Adjusted the .htaccess.default file accordingly in 371d5a3.

@leofeyer leofeyer closed this Aug 13, 2012

@xchs

This comment has been minimized.

Show comment Hide comment
@xchs

xchs Aug 29, 2012

Contributor

In the H5BP .htaccess server configuration file was added a more general compression configuration for Apache (see a36b296)

Contributor

xchs commented Aug 29, 2012

In the H5BP .htaccess server configuration file was added a more general compression configuration for Apache (see a36b296)

@leofeyer leofeyer reopened this Aug 29, 2012

@leofeyer

This comment has been minimized.

Show comment Hide comment
@leofeyer

leofeyer Aug 29, 2012

Owner

It seems they entirely dropped the FilterProvider syntax. Does this work with Apache 2.4?

Owner

leofeyer commented Aug 29, 2012

It seems they entirely dropped the FilterProvider syntax. Does this work with Apache 2.4?

@xchs

This comment has been minimized.

Show comment Hide comment
@xchs

xchs Aug 29, 2012

Contributor

They claim so, yeah. See h5bp/html5-boilerplate#1012 (comment) and the corresponding pull request.

Contributor

xchs commented Aug 29, 2012

They claim so, yeah. See h5bp/html5-boilerplate#1012 (comment) and the corresponding pull request.

@leofeyer

This comment has been minimized.

Show comment Hide comment
@leofeyer

leofeyer Aug 29, 2012

Owner

Cool :)

Owner

leofeyer commented Aug 29, 2012

Cool :)

@leofeyer

This comment has been minimized.

Show comment Hide comment
@leofeyer

leofeyer Sep 4, 2012

Owner

Changed in 0cec9ee.

Owner

leofeyer commented Sep 4, 2012

Changed in 0cec9ee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment