logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Building httpd 2.4 with mod_evasive failing

 
Post new topic   Reply to topic    Apache Forum Index -> Apache Building & Member Downloads



View previous topic :: View next topic  
Author Message
Ali



Joined: 25 Jul 2016
Posts: 2
Location: France

PostPosted: Tue 26 Jul '16 15:49    Post subject: Building httpd 2.4 with mod_evasive failing Reply with quote

Hello,

We are using apache as a reverse proxy. For security we are building it from source and enabling only the modules that we need. Shared object are disabled, we disable mod_so during the configure stage.

I need to add mod_evasive to our reverse proxy but i am getting an error that Makefile.in doesn't exist. since shared objects are disabled i cannot use the apsx tools supplied with apache code.

mod_evasive source is downloaded from:
https://github.com/shivaas/mod_evasive

the code that i use to enable mod_evasive:
Code:
--with-module=mod_evasive-master:evasive24.c


a part of the errors i am getting
Code:
make[3]: *** No rule to make target `mod_mod_evasive24.c.lo', needed by `libmod_mod_evasive24.c.la'.  Stop.
make[3]: Leaving directory `/usr/local/reverseproxy/httpd-2.4.23/modules/mod_evasive-master'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/reverseproxy/httpd-2.4.23/modules/mod_evasive-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/reverseproxy/httpd-2.4.23/modules'
make: *** [all-recursive] Error 1


I searched the net but i didn't find any article about compiling httpd with mod_evasive, it's always enabled as shared object.

Did anybody build apache with mod_evasive before? any idea or advice how to install mod_evasive without enabling mod_so?

Thank you in advance for your help.

KR,
ALi
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Mon 01 Aug '16 16:31    Post subject: Reply with quote

hi Ali,
in the readme file it says that you compile apache the normal way without mod_evasive and than use

Code:

$APACHE_ROOT/bin/apxs -i -a -c mod_evasive24.c
Back to top
Ali



Joined: 25 Jul 2016
Posts: 2
Location: France

PostPosted: Tue 09 Aug '16 16:04    Post subject: Reply with quote

Thank you for your reply James, my problem is that we disable mod_so and shared object at the build. So i can't use the apxs tool. as i saw on the internet everybody compile mod_evasive using apxs, i think we have to enable the mod_so after all.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Wed 10 Aug '16 12:11    Post subject: Reply with quote

I don't know but the make file should be that hard. Something like:

Code:

/usr/local/reverseproxy/httpd-2.4.23/build/libtool --silent --mode=compile cc -prefer-pic   -U
__STR__ -D_THREAD_SAFE -D_USE_IRS -D_LARGEFILE64_SOURCE -g -qHALT=E -I/usr/local/reverseproxy/httpd-2.4.23/include -c -o /mod_evasive/mod_evasive20.lo /mod_evasive/mod_evasive20.c &&
touch /mod_evasive/mod_evasive20.slo


The normal apache modules do a trick see the followig urls:

https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x/modules/core/Makefile.in
https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x/modules/arch/win32/Makefile.in

I think what should work too for that module.
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache Building & Member Downloads
Page 1 of 1