httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sai Jai Ganesh Gurubaran" <sguru...@cordys.com>
Subject RE: [users@httpd] mod_rewrite on 2.0.50
Date Thu, 12 Oct 2006 04:57:49 GMT
Hi All,
	After breaking my head finally I could make it work (by luck).
In the LoadModule section I have given the following:
<CODE BEGIN>
	LoadModule proxy_module modules/mod_proxy.so
	LoadModule proxy_connect_module modules/mod_proxy_connect.so
	LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
	LoadModule proxy_http_module modules/mod_proxy_http.so
	LoadModule status_module modules/mod_status.so

	#for rewriting the suggestion page we need mod_rewrite
	LoadModule rewrite_module modules/mod_rewrite.so
<CODE END>

I got a doubt that mod_rewrite does not get a chance to apply its rules
because mod_proxy has already taken the request.

What I did was put mod_rewrite on top of the LoadModule directives and
it did the work

Now httpd.conf looks like 

<CODE BEGIN>
	LoadModule rewrite_module modules/mod_rewrite.so
	LoadModule proxy_module modules/mod_proxy.so
	LoadModule proxy_connect_module modules/mod_proxy_connect.so
	LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
<CODE END>

After this change mod_rewrite kicked in and everything is working.

I was not aware that modules are loaded in the order the LoadModule
directives are given (in 2.0.50)

Regards,
Sai
-----Original Message-----
From: Sai Jai Ganesh Gurubaran 
Sent: Wednesday, October 11, 2006 7:33 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] mod_rewrite on 2.0.50

Hi Jeff,
	Did you make any break through?
I am not making any progress :(
 
I compiled in the mod_proxy_html using apxs. But these rules are never
touched ( don't get any logs :( )

Here is what I have been doing:


ProxyHTMLLogVerbose On

ProxyHTMLURLMap http://www.abc.com/suggestions.htm
http://myanotherserver/suggestion.htm

Also tried 
ProxyHTMLURLMap http://www.abc.com/suggestions.htm
http://myanotherserver/suggestion.htm Rihe


Why I am not getting any logs is one thing I am not able to figure out.
Even with mod_rewrite I had the same problem of logs not occurring.

Any help will be appreciated.

Note:
These are the last lines of httpd.conf and they are not inside any other
directives.

Regards,
Sai
-----Original Message-----
From: Jeff DeFord [mailto:jeff.deford@gmail.com] 
Sent: Thursday, October 05, 2006 10:45 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] mod_rewrite on 2.0.50

Unfortunately, I can not get mod_proxy_html to load. I grabbed the
latest source for mod_proxy_html and compiled it as follows:

    apxs -c -a -I/usr/local/include/libxml2/ -i mod_proxy_html.c

which returns what looks to be a successful compile and install:

    chmod 755 /apache/modules/mod_proxy_html.so
    [activating module `proxy_html' in /apache/conf/httpd.conf]

However, when I add the LoadModule directive for the module it fails
and I get the following error:


    Cannot load /apache/modules/mod_proxy_html.so into server:
ld.so.1: /export/home/apache/bin/httpd: fatal: relocation error: file
/dmz/modules/mod_proxy_html.so: symbol htmlFreeParserCtxt: referenced
symbol not found

The /apache directory is a sym link, could this be the culprit? I have
other modules I have compiled and added with no issues with the sym
link, so I don't think that is the real issue. But If it is so, then
how do I get around it? The thing that stands out is this error:
symbol htmlFreeParserCtxt: referenced symbol not found

Has anyone else seen this and if so, what did you do to correct it?

TIA,

-=jeff



On 10/4/06, Sai Jai Ganesh Gurubaran <sgurubar@cordys.com> wrote:
> Hi Jeff,
> Nick sent a link http://www.apacheweek.org/tutorials/reverseproxies
but
> that was not working. I think was he was referring to
> http://www.apacheweek.com/features/reverseproxies
>
> There is a module mod_proxy_html which is supposed to do the work.
>
> But, I see that 2.0.50 does not apply the rules :(.
> No message in the error logs too.
>
> (2.0.50 has some bug I feel, mod_rewrite with the same rules works
> smooth with 2.2.3 - I can see everything in RewriteLogs too).
>
> I will work on this again this weekend and try to set it up.
>
> All the best for u too.
>
> Let me know if you make any progress.
>
> Regards,
> Sai
>
> -----Original Message-----
> From: Jeff DeFord [mailto:jeff.deford@gmail.com]
> Sent: Thursday, October 05, 2006 1:00 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] mod_rewrite on 2.0.50
>
> Sai:
>
> Did you ever resolve this issue? I am having the same issue with my
> setup. The real server is configured using absolute URLs and I think
> that has something to do with it. I have not found a way to get the
> URLs to be re-written, but the proxy server functions as expected.
>
> Please let me know what you have found out...
>
> Regards,
>
> Jeff
>
> On 10/3/06, Sai Jai Ganesh Gurubaran <sgurubar@cordys.com> wrote:
> > Hi Nick,
> >
> > Answering your questions:
> >        1. why 2.0.50??????
> >         That is the  recommended version of the current application
we
> > are using is running on :(.
> >
> >
> > Thanks for pointing out the security aspect of it.
> >
> >
> > Ok, I got the definition of reverse and forward wrong :)
> >
> > But still my original problem remains.....
> >
> >
> >
> > -----Original Message-----
> > From: Nick Kew [mailto:nick@webthing.com]
> > Sent: Tuesday, October 03, 2006 1:50 PM
> > To: users@httpd.apache.org
> > Subject: Re: [users@httpd] mod_rewrite on 2.0.50
> >
> > On Tuesday 03 October 2006 08:43, Sai Jai Ganesh Gurubaran wrote:
> > > Hi,
> > > I am a newbie.
> > > We have set up Apache 2.0.50 as a forward proxy.
> >
> > Why such an old version?
> >
> > > Want to redirect a particular (external) page to our internal
page.
> > > i.e. for  http://www.abc.com/suggestions.htm to
> > > http://myanotherserver/suggestion.htm
> >
> > That's a reverse proxy.
> >
> > > #Apache as a Proxy
> > > ProxyRequests On
> >
> > If that's open to the outside, it's a serious security hole.
> >
> > See http://www.apacheweek.org/tutorials/reverseproxies
> >
> > --
> > Nick Kew
> >
> > Application Development with Apache - the Apache Modules Book
> > http://www.prenhallprofessional.com/title/0132409674
> >
> >
---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
>
***********************************************************************
> > The information in this message is confidential and may be legally
> > privileged. It is intended solely for the addressee. Access to this
> > message by anyone else is unauthorized. If you are not the
> > intended recipient, any disclosure, copying, or distribution of the
> > message, or any action or omission taken by you in reliance on
> > it is prohibited and may be unlawful. Please immediately contact
> > the sender if you have received this message in error. This email
> > does not constitute any commitment from Cordys Holding BV or
> > any of its subsidiaries except when expressly agreed in a written
> > agreement between the intended recipient and
> > Cordys Holding BV or its subsidiaries.
> >
>
***********************************************************************
> >
> >
> >
> >
---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message