Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

The FilterProvider syntax has changed in Apache 2.4 #4552

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

The FilterProvider syntax has changed in Apache 2.4 #4552

xchs opened this issue Jul 22, 2012 · 8 comments
Labels
Milestone

Comments

@xchs
Copy link
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
Copy link
Member

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
Copy link
Contributor Author

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
…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
Copy link
Member

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

@xchs
Copy link
Contributor Author

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
Copy link
Member

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

@xchs
Copy link
Contributor Author

xchs commented Aug 29, 2012

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

@leofeyer
Copy link
Member

Cool :)

@leofeyer
Copy link
Member

leofeyer commented Sep 4, 2012

Changed in 0cec9ee.

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

No branches or pull requests

2 participants