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.
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...
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?
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.
> We and AJP upstream also accept patches ;) That's what I was thinking about ;). Thx for the info!
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.