LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2006, 06:45 PM   #1
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
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!
 
Old 08-11-2006, 03:31 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,903

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Use something like this:
Code:
 ./configure --enable-so --enable-mods-shared="proxy proxy_http proxy_ftp proxy_connect" --other-configure-options

Last edited by bathory; 08-11-2006 at 06:21 AM.
 
Old 08-11-2006, 09:00 AM   #3
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
If i do that I'm rebuilding apache or not? can't I just load the module dinamically like others I have?
 
Old 08-11-2006, 09:27 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,903

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
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.
 
Old 08-11-2006, 11:05 AM   #5
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
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!
 
Old 08-11-2006, 12:09 PM   #6
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
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?
 
Old 08-11-2006, 01:07 PM   #7
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
It seems that was a version too new.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache: no mod_rewrite module? psychobyte Linux - Networking 1 05-07-2005 01:43 AM
Apache + SSL as a module kernelvn Linux - Security 3 09-20-2004 04:16 AM
Apache + PHP Module chrisk5527 Linux - General 16 04-06-2004 07:09 AM
apache authentication module antken Linux - Security 2 01-06-2003 09:44 AM
Help for Apache module AuthenPasswd !!! chuck77 Linux - General 2 01-31-2002 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration