[us...@httpd] modul development, insertion of postdata into request

2009-10-21 Thread broetchen25
Hello, the thing to have: inserting (raw) postdata to a request, so later modules like php can reach it. reading is simple with 'apr_brigade_flatten' but writing draws problems, i tried 'apr_brigade_write' and flush it into input filters -> internal server error :-/ have anyone some snippets of

Re: [us...@httpd] modul development, insertion of postdata into request

2009-10-21 Thread Nick Kew
broetche...@gmx.net wrote: Hello, the thing to have: inserting (raw) postdata to a request, so later modules like php can reach it. reading is simple with 'apr_brigade_flatten' but writing draws problems, i tried 'apr_brigade_write' and flush it into input filters -> internal server error :-/

Re: [us...@httpd] modul development, insertion of postdata into request

2009-10-21 Thread Martin Schuhmacher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi >> inserting (raw) postdata to a request, so later modules like php >> can reach it. >> reading is simple with 'apr_brigade_flatten' but writing draws >> problems, i tried 'apr_brigade_write' and flush it into input filters >> -> internal server er

[us...@httpd] mod_ext_filter cmd output is garbage

2009-10-21 Thread Marcos Mendez
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

Re: [us...@httpd] mod_ext_filter cmd output is garbage

2009-10-21 Thread André Warnier
Marcos Mendez wrote: 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 def

Re: [us...@httpd] modul development, insertion of postdata into request

2009-10-21 Thread Nick Kew
Martin Schuhmacher wrote: that book is laying on my desk, it only deescribes howto get the data, not howto insert it Um, haven't time to check just now, but I'm sure there's an input filter example! Anyway, you insert data by making a bucket (or buckets) of them, and inserting that in your ca

Re: [us...@httpd] mod_ext_filter cmd output is garbage

2009-10-21 Thread Marcos Mendez
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 Mendez wrote: >> >>

[us...@httpd] Re: modul development, insertion of postdata into request

2009-10-21 Thread Dan Poirier
Nick Kew writes: > Martin Schuhmacher wrote: > >> that book is laying on my desk, it only deescribes howto >> get the data, not howto insert it > > Um, haven't time to check just now, but I'm sure there's an > input filter example! 8.12.4 Input Filter Example (p. 232 in my copy) -- Dan Poirier

Re: [us...@httpd] mod_ext_filter cmd output is garbage

2009-10-21 Thread Marcos Mendez
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 fly. Just doesn't seem to work with my php script. --- example proxy conf --- ExtFilterDefine myfilter1 mode=output intype=text/html cmd="/usr/bin/php -f /etc/apac

[us...@httpd] SOAP calls are not processed after upgrade to 2.2.14

2009-10-21 Thread Hickey, Tom
I am trying to upgrade my Apache http server from 2.2.4 to 2.2.14 and all SOAP calls are returned with a 500 Internal Server Error message. I have loaded all modules I used in 2.2.4 and am using the same basic configuration in my httpd.conf. The server starts without any errors and if I uninsta

Re: [us...@httpd] SOAP calls are not processed after upgrade to 2.2.14

2009-10-21 Thread André Warnier
Hickey, Tom wrote: I am trying to upgrade my Apache http server from 2.2.4 to 2.2.14 and all SOAP calls are returned with a 500 Internal Server Error message. I have loaded all modules I used in 2.2.4 and am using the same basic configuration in my httpd.conf. The server starts without any er

[us...@httpd] mod_filter with mod_include problem

2009-10-21 Thread Daniel Stutzbach
I am trying to use mod_filter to setup server-side includes as well as compression. However, I'm observing rather odd behavior. Apache sends the "Content-Encoding: gzip" header, but sends the data uncompressed (causing FireFox to display "Content Encoding Error"). The compression works fine for

Re: [us...@httpd] mod_ext_filter cmd output is garbage

2009-10-21 Thread Marcos Mendez
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 > fly. Just doesn't

Re: [us...@httpd] mod_ext_filter cmd output is garbage

2009-10-21 Thread André Warnier
Now wait, you are talking about a "forward proxy" here ? You mean that the browsers of your network have this one set up as a http proxy, and it goes and gets the pages out there for them, and returns them ? If that's the case, then of course you could have character set issues, unless you par

Re: [us...@httpd] mod_ext_filter cmd output is garbage

2009-10-21 Thread Marcos Mendez
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 text/html. So I guess it's definately an encoding issue. Any way how to solve that? Strangely enough, the sed filter examples work no matter what. So I don't understand w

Re: [us...@httpd] mod_ext_filter cmd output is garbage

2009-10-21 Thread Marcos Mendez
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 > text/html. So I guess it's

[us...@httpd] Trying to detect client dropping connection before CGI process is finished, stuck...:(

2009-10-21 Thread Fi Dot
Dear All, I seem to be completely stuck with trying to detect client dropping connection, no matter how hard I try. I start with a simple Perl script running as a standard CGI app: #!/usr/bin/perl use strict; Log("$$: starting process"); $SIG{PIPE} = sub { Log("$$: P

Re: [us...@httpd] mod_ext_filter cmd output is garbage

2009-10-21 Thread André Warnier
I'll continue to top-post.. I really don't know enough about how mod_proxy handles things in the forward direction, to be able to help more. I see a mod_deflate somewhere in your log, indicating that some compression is taking place, but I don't know if that's before or after your filter come

Re: [us...@httpd] mod_filter with mod_include problem

2009-10-21 Thread Nick Kew
Daniel Stutzbach wrote: I am trying to use mod_filter to setup server-side includes as well as compression. Have you checked the exact output, and whether this could be in the family of https://issues.apache.org/bugzilla/show_bug.cgi?id=17629 https://issues.apache.org/bugzilla/show_bug.cgi?id=

Re: [us...@httpd] mod_filter with mod_include problem

2009-10-21 Thread Daniel Stutzbach
On Wed, Oct 21, 2009 at 5:37 PM, Nick Kew wrote: > Daniel Stutzbach wrote: > >> I am trying to use mod_filter to setup server-side includes as well as >> compression. >> > > Have you checked the exact output, and whether this could be > in the family of > > https://issues.apache.org/bugzilla/show

Re: [us...@httpd] mod_ext_filter cmd output is garbage

2009-10-21 Thread Marcos Mendez
Thanks Andre. I got Substitute working in no time. :) On Wed, Oct 21, 2009 at 6:32 PM, André Warnier wrote: > I'll continue to top-post.. > > I really don't know enough about how mod_proxy handles things in the forward > direction, to be able to help more.  I see a mod_deflate somewhere in your >

[us...@httpd] Apache modules question

2009-10-21 Thread antoine
Hello everyone , I have a project where i want to add a new phase between the content generation and the logging phase of a request. In other words i want after the response is generated and ready to be sent to the client to manipulate the html produced code (do my stuff) and then send it to

Re: [us...@httpd] server side scripts + local display

2009-10-21 Thread aurfalien
Thanks Eric. U provided a good clue. I got it running and heres what I did incase any one needs to know. My Xen server runs Apache and I have VNC server enabled on it as a no priv user. This user has, in there ,bashrc; xhost + In my Python script running server side via http://xen-dom-U-a

[us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread khalid touati
Hi Guys, I am a newbie here, I have the following issue, when I try to start apache, o get the following message this server contains several virtual host, here is the error: /usr/sbin/apache2 -k start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sock

Re: [us...@httpd] Apache modules question

2009-10-21 Thread Eric Covener
On Wed, Oct 21, 2009 at 8:54 PM, antoine wrote: > > My friend who works in the same project has done this with filters (i think) > but we are looking for > a faster way (maybe a new module enabled after the content generation). I think anything but a filter is a complete dead end. -- Eric Coven

Re: [us...@httpd] Apache modules question

2009-10-21 Thread Nick Kew
antoine wrote: Hello everyone , I have a project where i want to add a new phase between the content generation and the logging phase of a request. In other words i want after the response is generated and ready to be sent to the client to manipulate the html produced code (do my stuff) and

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread aurfalien
Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server between each uncommenting. Although at 1st glance, sound like you have some kind of issue with the log dir. On Oct 21, 2009, at 6:35 PM, khalid tou

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread Nick Kew
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 What happened when you googled that error message? (This is Lesson 1 in how to solve problems). -- Nick Kew - The official User-To-User support forum

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread Eric Covener
On Wed, Oct 21, 2009 at 9:47 PM, wrote: > Hi, > I would simplify things and comment out all the virtual servers to see what > haps. > Then uncomment 1 by 1, restarting the Apache server between each > uncommenting. > Although at 1st glance, sound like you have some kind of issue with the log > di

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread aurfalien
Funny thing, I noticed google doesn't return as much cool stuff like it used to a few years back. While I don't have any #s or results proven via the scientific method, as of late I feel they are censoring/controlling the results. On Oct 21, 2009, at 6:50 PM, Nick Kew wrote: (98)Address a

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread Frank Gingras
Hello Khalid, Please read : http://wiki.apache.org/httpd/CouldNotBindToAddress Frank. aurfal...@gmail.com wrote: Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server between each uncommenting. Although

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread aurfalien
Well, if you have a better idea, please advice our friend. On Oct 21, 2009, at 6:51 PM, Eric Covener wrote: On Wed, Oct 21, 2009 at 9:47 PM, wrote: Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server be

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread Francois Gingras
See my previous response: http://wiki.apache.org/httpd/CouldNotBindToAddress Frank. On Wed, Oct 21, 2009 at 9:56 PM, wrote: > Well, if you have a better idea, please advice our friend. > > > On Oct 21, 2009, at 6:51 PM, Eric Covener wrote: > >> On Wed, Oct 21, 2009 at 9:47 PM,   wrote: >>> >>>

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread ktouati
Thnks, I did comment out include that point to VH but nothing happend, for logs we are using symb link to point to dir! Sent from my Verizon Wireless BlackBerry -Original Message- From: aurfal...@gmail.com Date: Wed, 21 Oct 2009 18:47:57 To: Subject: Re: [us...@httpd] please need help s

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread khalid touati
Francois Gingras wrote: See my previous response: http://wiki.apache.org/httpd/CouldNotBindToAddress Frank. On Wed, Oct 21, 2009 at 9:56 PM, wrote: Well, if you have a better idea, please advice our friend. On Oct 21, 2009, at 6:51 PM, Eric Covener wrote: On Wed, Oct 21, 2009 at

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread khalid touati
khalid touati wrote: Francois Gingras wrote: See my previous response: http://wiki.apache.org/httpd/CouldNotBindToAddress Frank. On Wed, Oct 21, 2009 at 9:56 PM, wrote: Well, if you have a better idea, please advice our friend. On Oct 21, 2009, at 6:51 PM, Eric Covener wrote: O

[us...@httpd] AllowOverride

2009-10-21 Thread Rajwinder-office Singh
Hi, Currently if i "do not" allow a directive in "AllowOverride" then apache throws "500 internal server error". Which i am not comfortable with as, If you a r telling apache to owner only certain directives in htaccess then putting a "not allowed" directive actually brings website down.( which i

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread Scott Haneda
Maybe you need to use sudo to start in order to bind to that port? -- Scott * If you contact me off list replace talklists@ with scott@ * On Oct 21, 2009, at 10:38 PM, khalid touati wrote: Hi i've read it carrefully but i can't find the answer to my case!

Re: [us...@httpd] please need help starting apache2 ASAP

2009-10-21 Thread khalid touati
Scott Haneda wrote: Maybe you need to use sudo to start in order to bind to that port? actually what is happening is when i kill all the process, and i start apche i cant see this process using ps aux | grep httpd but i can see it using netsat -plant, and this seems to be not the process fath