LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help with apache module (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-apache-module-472748/)

isuck@linux 08-10-2006 05:45 PM

Need help with apache module
 
I wonder how to install proxy_module for apache 2.0. Does anyone know where to get this module from and how to install it in DSO apache? I've been trying to download this module but the only one I found is proxy_http_mod not the other one. Was it deprecated or something? Thanks!

bathory 08-11-2006 02:31 AM

Use something like this:
Code:

./configure --enable-so --enable-mods-shared="proxy proxy_http proxy_ftp proxy_connect" --other-configure-options

isuck@linux 08-11-2006 08:00 AM

If i do that I'm rebuilding apache or not? can't I just load the module dinamically like others I have?

bathory 08-11-2006 08:27 AM

Run
Code:

httpd -l
to see if it's already compiled in your apache. If it's not then you can use apxs to compile it:
Code:

apxs -i -a -c mod_proxy.c
Perhaps you have to compile also some other module to make it work. Then use LoadModule in you httpd.conf to load those modules into apache.
If mod_proxy is already statically compiled then you have to rebuild apache if you insist to use mod_proxy as a DSO.

isuck@linux 08-11-2006 10:05 AM

no, it is not compiled, take a look:

Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

Now I don't know where to get that file mod_proxy.c from, I have one called mod_proxy.h but don't know what to do with it, if anything. Do you know where could I get mod_proxy.c? Thanks for your help!

isuck@linux 08-11-2006 11:09 AM

thanks a lot, got the file from the source, my next problem is when I apxs the module i get this

apxs:Error: Command failed with rc=65536

any idea of what this is?

isuck@linux 08-11-2006 12:07 PM

It seems that was a version too new.


All times are GMT -5. The time now is 06:40 PM.