Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587844 - www-servers/nginx-1.10.1 and newer: AJP module not included
Summary: www-servers/nginx-1.10.1 and newer: AJP module not included
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-03 00:28 UTC by Mehmet Ceyran
Modified: 2016-07-26 09:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mehmet Ceyran 2016-07-03 00:28:20 UTC
Although NGINX_MODULES_HTTP includes "ajp", the AJP module is not compiled into Nginx. This leads to the following error when starting:

nginx: [emerg] unknown directive "ajp_pass" in /etc/nginx/nginx.conf:45


Reproducible: Always

Steps to Reproduce:
1. NGINX_MODULES_HTTP=ajp emerge nginx
2. /etc/init.d/nginx start
Actual Results:  
 * Checking nginx' configuration ...
nginx: [emerg] unknown directive "ajp_pass" in /etc/nginx/nginx.conf:45
nginx: configuration file /etc/nginx/nginx.conf test failed
nginx: [emerg] unknown directive "ajp_pass" in /etc/nginx/nginx.conf:45
nginx: configuration file /etc/nginx/nginx.conf test failed
 * failed, please correct errors above                                                                            [ !! ]
 * ERROR: nginx failed to start


Expected Results:  
Nginx should start smoothly.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2016-07-20 00:11:19 UTC
Well, this is probably a leftover: AJP module is long time broken and was removed around v1.8.x. With the bump to v1.10.1 I removed the following block from the ebuild:

> if use nginx_modules_http_ajp; then
> 	eerror "The AJP module currently doesn't build for nginx >1.8."
> 	eerror "It will be reintroduced with the 1.9 series when proven stable."
> 	eerror "Either disable it or stick with nginx 1.7.x."
> 	die "AJP module not supported"
> fi

I'll drop the USE flag with the next bump, too. Sorry...
Comment 2 Mehmet Ceyran 2016-07-20 20:27:05 UTC
I think it is a bad idea to drop the ebuilds for 1.7 then. Any chance the plugin can be re-included when the compatibility problems are fixed?
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2016-07-20 20:41:05 UTC
Well, we dropped 1.7 in August 2015 (051d652ca697e5c634e9a14e7f596ecd797afdcf)... almost a year ago. Looks like you are the first one who is missing the AJP module...

Anyways: 1.7.x is EOL and vulnerable. If you really want to use an outdated nginx version go to the Gentoo repository (https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-servers/nginx/) and copy the outdated ebuild to your local portage tree.

And yes, once AJP works again with mainline or stable we will add it back.

We and AJP upstream also accept patches ;)

Sorry but there's nothing else we can do.
Comment 4 Mehmet Ceyran 2016-07-20 20:43:02 UTC
> We and AJP upstream also accept patches ;)

That's what I was thinking about ;).

Thx for the info!
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2016-07-26 09:58:48 UTC
AJP module is now official dropped: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=241566775da8ad5bb854d98aa84f0bb89757ae0c

Like said, once the module is working again with recent nginx and has proven stability we will bring it back.