[us...@httpd] SetHandler only if not Forbidden

2009-03-21 Thread Jack Bates
There are two Apache servers sharing content in my student file space, * http://cgi.sfu.ca/~jdbates/ ExecCGI is on * http://www.sfu.ca/~jdbates/ ExecCGI is off When I add, Action my-handler /~jdbates/my-handler SetHandler my-handler - to my .htaccess, cgi.sfu.ca works, but www.sfu.ca errors 403

[us...@httpd] Re: CGI Child Process Question

2009-03-21 Thread Lihet Ruben
Look, I am sorry for misleading you. I am not an Apache geek and I know little about its internals. I am rephrasing the question: Data: I have a script that sends data to a client. I want to know how much data I have send (not how much data did the client received). Now, I assume, the client cance

RE: [us...@httpd] Precondition failed 412 error on uploading files using davfs

2009-03-21 Thread Oskar Svadkovskey
Sorry for needless cluttering of the list. I got the answer just now. For those interested: The if_match-bug was fixed in Apache 2.2.8. So it will not work with apache 2.2.3. The latest release of Apache is 2.2.11. I had tested the Apache fix for this bug before the release of 2.2.8 by patchi

[us...@httpd] Re: CGI Child Process Question

2009-03-21 Thread Lihet Ruben
The nature of this project does allow me to reveal any details. This thread is closed, I'm not here to argue with 10s of unknown people on the Internet. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Saturday, March 21, 2009 4:37 PM To: users@httpd.apache.org Subj

[us...@httpd] Precondition failed 412 error on uploading files using davfs

2009-03-21 Thread Oskar Svadkovskey
Hi all I was curious if anybody has experience with the following issue. We are using the latest stable davfs 1.3.3 to upload files to Apache.. There is an option in davfs2.conf called if_match_bug. With this option enabled davfs sends a HEAD request after each PUT. Setting this option to 0 is

Re: [us...@httpd] Re: CGI Child Process Question

2009-03-21 Thread André Warnier
Lihet Ruben wrote: Well, I don't know better. I didn't knew at all before I emailed the list. At first, I made an assumption, and I wanted someone to confirm it. Mean time, I did reasearch on how it works and I found an answer, then share it to the community ;) Don't be mad at me :D Well, may

RE: [us...@httpd] Re: CGI Child Process Question

2009-03-21 Thread Lihet Ruben
Well, I don't know better. I didn't knew at all before I emailed the list. At first, I made an assumption, and I wanted someone to confirm it. Mean time, I did reasearch on how it works and I found an answer, then share it to the community ;) Don't be mad at me :D -Original Message- From

Re: [us...@httpd] http to https

2009-03-21 Thread Brian Mearns
On Sat, Mar 21, 2009 at 4:52 AM, Davide Bianchi wrote: > Tim DeBoer wrote: >> For example if I type in secure.foo.com , I want >> apache to read/load it as https://secure.foo.com in my browser. > > What you need is to setup an http site 'secure.foo.com' that > automatically

Re: [us...@httpd] Re: CGI Child Process Question

2009-03-21 Thread André Warnier
Lihet Ruben wrote: [...] Well, if you know better, why do you ask ? - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: u

[us...@httpd] module path problem

2009-03-21 Thread Alexander Hjalmarsson
Hi! I want to get the path in a module I've created but I have some kind of problem with it. It just works like the ordinary "pwd", and in 30% of the cases it works like it should, but in the rest, it doesn't return anything at all. if ((buffad = (char *)malloc((size_t)sizead)) != NULL) ptrad

[us...@httpd] Re: CGI Child Process Question

2009-03-21 Thread Lihet Ruben
André Warnier wrote: "A cgi-bin program is a separate process from the Apache child that runs it." My tests (and the whole cgi logic in a web server) concluded that the cgi-script is a child of apache. This because the the ppid() of the cgi-script is the pid() of the apache server daemon. ;) Tha

Re: [us...@httpd] Re: CGI Child Process Question

2009-03-21 Thread André Warnier
Lihet Ruben wrote: [...] I would look at this in another way. A cgi-bin program is a separate process from the Apache child that runs it. The Apache process starts the cgi-bin process, and arranges to read back everything that the cgi-bin writes to STDOUT. Then Apache sends this to the browser.

Re: [us...@httpd] http to https

2009-03-21 Thread Davide Bianchi
Tim DeBoer wrote: > For example if I type in secure.foo.com , I want > apache to read/load it as https://secure.foo.com in my browser. What you need is to setup an http site 'secure.foo.com' that automatically redirect to the https site. Somethig like Servername se

[us...@httpd] http to https

2009-03-21 Thread Tim DeBoer
Hi everyone, I've been playing around with SSL and want to set up apache to automagically handle traffic as https, rather than http on the SSL enabled sites. For example if I type in secure.foo.com, I want apache to read/load it as https://secure.foo.com in my browser. Right now it just loads as h