Does anyone know if ext_filter should work when using apache as a
proxy? I'm trying to add some content to the html body of content
served by the proxy, but it doesn't seem to be working. Has anyone
tried this? I think that my configuration is correct, at least for the
locally hosted website becaus
Via Off
On Mon, Oct 19, 2009 at 12:32 PM, Eric Covener wrote:
> On Mon, Oct 19, 2009 at 11:52 AM, Marcos Mendez
> wrote:
>> Does anyone know if ext_filter should work when using apache as a
>> proxy? I'm trying to add some content to the html body of content
>> serve
Hi Eric,
I did a full stop and start of apache instead of restart. It works! Thanks!
On Mon, Oct 19, 2009 at 12:47 PM, Eric Covener wrote:
> On Mon, Oct 19, 2009 at 12:39 PM, Marcos Mendez
> wrote:
>> Hi Eric, thanks for the quick response. So then I must be doing
>> som
Hi Eric,
Sorry. I mispoke. The filter is working, but it seems to be ignoring
the html content. I'm using intype=text/html.
Regards,
Marcos
On Mon, Oct 19, 2009 at 5:54 PM, Marcos Mendez wrote:
> Hi Eric,
>
> I did a full stop and start of apache instead of restart. It works!
Hi,
I had to create two filters, one for text/html and one for text/plain
and use SetOutputFilter for both. :)
Thanks!
On Mon, Oct 19, 2009 at 6:14 PM, Marcos Mendez wrote:
> Hi Eric,
>
> Sorry. I mispoke. The filter is working, but it seems to be ignoring
> the html content. I
Hi,
I'm having problem running anything other than the sample sed command
used with ext_filter in the documentation (eg cmd="/bin/sed
s/verdana/aria/g"). When I try to run a script (sh, bash, or php) I
always get (binary) garbage in the output. Any ideas?
My filters are defined as:
ExtFilterDefi
Heheheh... I doubt my script-writing abilities! Here's a simple php5
script to echo the output.
I've tried the script with cat sometextfile | php -f test.php and it
echoes the standard input.
Regards,
Marcos
On Wed, Oct 21, 2009 at 11:15 AM, André Warnier wrote:
> Marcos
/usr/bin/php -f /etc/apache2/script1.php"
SetOutputFilter myfilter1
Regards,
Marcos
On Wed, Oct 21, 2009 at 12:06 PM, Marcos Mendez wrote:
> Heheheh... I doubt my script-writing abilities! Here's a simple php5
> script to echo the output.
>
>
> $stdin = file_
Could it be some output encoding issue (UTF vs ASCII)? Or perhaps
compression issue?
On Wed, Oct 21, 2009 at 1:19 PM, Marcos Mendez wrote:
> I should probably also mention that being through mod_proxy. I've
> setup a transparent proxy and I'm trying to add some content on the
>
s,
> unless you parse all the documents on the way back, and figure out
> a) what kind of data this is (a jpeg image, a css stylesheet ?)
> b) if it is a "text" type, what character set and encoding it's in
> c) what kind of transfer encoding may have been used (compressed ?)
would mod_filter solve this? i'm going to try some changes and see if
that works.
On Wed, Oct 21, 2009 at 5:37 PM, Marcos Mendez wrote:
> Yes absolutely. I've setup a forward proxy, where I have to open a
> port (8080) for people to use it. I've set the filter type to
&g
; expected benefit.
>
> By the way, have you looked at :
> http://httpd.apache.org/docs/2.2/mod/mod_substitute.html
> (but I'm not sure even that one takes charsets into account).
> and maybe also
> http://httpd.apache.org/docs/2.2/mod/mod_charset_lite.html
>
> I also rem
Does anyone have any suggestions about what is the best way to
implement an ad-supported proxy? I've got mod_substitute injecting
some content, but it only seems to work on simple websites. Should I
be looking at redirecting urls to a frame, and putting the ads there?
Is there any other way of doin
liably for me... for example with google.com or
yahoo.com. I was wondering if doing an internal redirect, framing the
url (so that it renders as normal) and placing my ads outside would be
better.
On Mon, Oct 26, 2009 at 2:59 PM, William A. Rowe, Jr.
wrote:
> Marcos Mendez wrote:
>> D
r.com myadserver.com 172.16.1.29
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|]*?)>|[X]Advert
content|iq"
Order allow,deny
Allow from all
ProxyVia Off
On Tue, Oct 27, 2009 at 7:25 A
Had not heard of mod_publisher. I tried it out, and for my simple test
page it seems to work great. However when I visit other sites I'm
getting a content encoding error. I've disabled any content
modification, to test that just passing the pages through would work,
but it doesn't.
So added a Load
Hi Mike, when I run google (yahoo, eweek etc) through the proxy (using
mod_substitute) i do not see my modification in the page source, no
matter where I try to insert it.
-
The official User-To-User support forum of the Apache HT
On Tue, Oct 27, 2009 at 12:45 PM, Mike Cardwell
wrote:
> Marcos Mendez wrote:
>
>> Hi Mike, when I run google (yahoo, eweek etc) through the proxy (using
>> mod_substitute) i do not see my modification in the page source, no
>> matter where I try to insert it.
>
>
Hi, after playing around and not liking the results, I'm redirecting
to a cgi that does allow inserting of content and I'm getting my ads
now. Still using mod_proxy, but no substitutions.
Thanks for the help!
On Tue, Oct 27, 2009 at 1:07 PM, Marcos Mendez wrote:
> On Tue, Oct 27,
I'm using mod_proxy/mod_rewrite to redirect requests to a specific
script which handles them. For example:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^123.123.123.123 [NC]
RewriteRule $(.+) http://123.123.123.123/myscript?url=%{REQUEST_URI}
This is working great. The question is, can I hide tha
?url=%{REQUEST_URI} [R,L]
> or
> RewriteRule $(.+) http://123.123.123.123/myscript?url=%{REQUEST_URI} [P,L]
>
> Cheers,
>
> Igor
>
> On Wed, Oct 28, 2009 at 8:55 AM, Marcos Mendez
> wrote:
>>
>> I'm using mod_proxy/mod_rewrite to redirect re
On Wed, Oct 28, 2009 at 8:43 AM, Krist van Besien
wrote:
> On Tue, Oct 27, 2009 at 10:55 PM, Marcos Mendez
> wrote:
>> I'm using mod_proxy/mod_rewrite to redirect requests to a specific
>> script which handles them. For example:
>>
>>
>> Re
Anybody got any ideas how to fix this? The proxy is redirecting to a
cgi. While this works fine with http, when using https, the request
uri becomes http://domain name:443 instead of keeping https://domain
name or converting it back to its original form?
SSLProxyEngine on
RewriteEngine on
Rew
On Wed, Oct 28, 2009 at 12:50 PM, Marcos Mendez wrote:
> Anybody got any ideas how to fix this? The proxy is redirecting to a
> cgi. While this works fine with http, when using https, the request
> uri becomes http://domain name:443 instead of keeping https://domain
> name or conver
Hi,
Is there an easy way to configure mod_proxy to let certain ports
passthru? I've got a couple of rewrite rules on port 80, but don't
know how to do that for SSL/443 for example so that the proxy does not
get involved.
Regards,
Marcos
--
Hi,
I've purchased a GoDaddy certificate to secure two websites. I've got
the virtual hosts configured correctly for port 80, but when I use
https, the browser gets redirected to the first website always. Is
there anything special that I need to do with the 443 virtual host to
handle two websites?
Thank you!
On Mon, Jan 11, 2010 at 12:31 AM, Nilesh Govindarajan wrote:
> On 01/11/2010 10:45 AM, Marcos Mendez wrote:
>>
>> Hi,
>>
>> I've purchased a GoDaddy certificate to secure two websites. I've got
>> the virtual hosts configured correctly for po
27 matches
Mail list logo