I've given up on nginx and modsecurity. Not because I don't think it works
but because nginx is not a good forward proxy. I'm now working to get the
cross compile to work for the modsecurity and apache.
I'm using the latest rc 2.8.0 and am getting a compile error, not sure if
its due to tool chain issues or an issue with the code. I've downloaded
the code from git.
https://github.com/SpiderLabs/ModSecurity/releases/download/v2.8.0-rc1/
msc_status_engine.c: In function 'msc_status_engine_machine_name':
msc_status_engine.c:137:26: error: storage size of 'u' isn't known
static struct utsname u;
^
make[5]: *** [mod_security2_la-msc_status_engine.lo] Error 1
Thanks
Derek
On Sat, Feb 22, 2014 at 8:51 PM, Derek Werthmuller <the...@gm...>wrote:
> Working on setting modsecurity with nginx in a forward proxy configuration
> on a raspberry pi.
> I've got modsecurity building ok it seems. Have nginx building with out
> modsecurity ok. But nginx will not link properly with modsecurity.
>
> nginx 1.5.10
> apache 2.2.26
> modsecurity 2.7.7
>
> Getting lots of messages like
> modsecurity-apache_2.7.7/nginx/modsecurity/apr_bucket_nginx.c:67: undefined
> reference to `apr_bucket_free'
>
> nginx doesn't have a with-apr section in its configure script, so I figure
> this is referring to modsecurity's use of apr.
>
> Also seems to be having trouble finding the libxml2 libraries.
> Bunch of these messages too.
> ../modsecurity-apache_2.7.7/nginx/modsecurity/../../standalone/.libs/standalone.a(standalone_la-msc_crypt.o):
> In function `hash_response_body_links':
> msc_crypt.c:(.text+0x17ec): undefined reference to `xmlXPathNewContext'
> msc_crypt.c:(.text+0x184c): undefined reference to `xmlXPathEvalExpression'
>
> Any guidance on getting this compiled correctly?
> Cheers
>
>
|