Re: [users@httpd] Problem when mixing RewriteRules and directives

2012-03-22 Thread Bruno Tréguier
Le 23/03/2012 à 1:37, Igor Cicimov a écrit : This is very interesting problem and I thought the issue was the typo leaving your var empty. I'll have to do some research about the mod_rewrite myself to confirm it precedes SetEnvIf in the order of execution. Now I'm really curious about the soluti

Re: [users@httpd] Problem when mixing RewriteRules and directives

2012-03-22 Thread Igor Cicimov
This is very interesting problem and I thought the issue was the typo leaving your var empty. I'll have to do some research about the mod_rewrite myself to confirm it precedes SetEnvIf in the order of execution. Now I'm really curious about the solution my self and will try to find some explanatio

Re: [users@httpd] Why is apache running after doing apachectl -k stop

2012-03-22 Thread Igor Cicimov
Yep, it's up to you how you are going to implement your script. The point is you can't start the server until you confirm that all the threads/children processes have died and the port 80 (or what ever port your apache is running on) is free for the new process to bind to. On Fri, Mar 23, 2012 at

Re: [users@httpd] Why is apache running after doing apachectl -k stop

2012-03-22 Thread Silviu Andrica
Thanks for the replies. I had the impression that apachetcl -k stop will not return until httpd stopped. Cheers, Silviu On Mar 22, 2012, at 23:45 , Daniel Ruggeri wrote: > On 3/22/2012 4:58 PM, Igor Cicimov wrote: >> Thats too fast not all threads can close in just miliseconds you know. >> Add "

Re: [users@httpd] Problem when mixing RewriteRules and directives

2012-03-22 Thread Bruno Tréguier
Le 23/03/2012 à 0:23, Bruno Tréguier a écrit : 1) the X-Debug-Request-URI header is correct in the HTTP response, example: X-Debug-Request-URI: /cartes-en-ligne/checkout/ 2) the X-CheckingOut header, however, is NOT set. :-( Sorry, that was another test. The right output is of course: X-Debu

Re: [users@httpd] accessing named pipe files from apache web server

2012-03-22 Thread William A. Rowe Jr.
On 3/22/2012 8:56 AM, Mysterious Mose wrote: > > I just want a plain named pipe as a file on the web server. I will > write information to the pipe, and when a web browser accesses the > pipe, it will read the information. Simple, right? But whenever I try > to access the pipe through the web,

Re: [users@httpd] Problem when mixing RewriteRules and directives

2012-03-22 Thread Bruno Tréguier
Le 22/03/2012 à 22:50, Igor Cicimov a écrit : "The problem I'm facing here seems to rely in the fact that the variables I'm trying to use (like "THE_REQUEST", for example) are only defined within mod_rewrite's scope, and are not available to other directives like SetenvIf." And i dont think this

Re: [users@httpd] Why is apache running after doing apachectl -k stop

2012-03-22 Thread Daniel Ruggeri
On 3/22/2012 4:58 PM, Igor Cicimov wrote: > Thats too fast not all threads can close in just miliseconds you know. > Add "sleep 5" between stop and start and you should be fine. The only concern with waiting for 5 seconds is that it might not be enough if a request is still finishing up. I often

[users@httpd] mod_cache.so doesn't build on Apache2.2.22

2012-03-22 Thread Junhee Park
Hi All, Can anyone tell me how to build "mod_cache.so" on Apache2.2.22? This is indeed pretty basic stuff. But for some reason I can not get it built inside the module directory. I have tried configuring with these options (--enable-cache / --enable-cache --enable-disk-cache / --enable-cache -

Re: [users@httpd] Why is apache running after doing apachectl -k stop

2012-03-22 Thread Igor Cicimov
Thats too fast not all threads can close in just miliseconds you know. Add "sleep 5" between stop and start and you should be fine. On Mar 23, 2012 5:20 AM, "silviu andrica" wrote: > Hello, > > I was wondering if running the following commands > sudo /usr/local/apache2.3/bin/apachectl stop > ech

Re: [users@httpd] Problem when mixing RewriteRules and directives

2012-03-22 Thread Igor Cicimov
Hold on, it should be SetEnvIf and not SetenvIf in your stanza! On Mar 23, 2012 8:50 AM, "Igor Cicimov" wrote: > "The problem I'm facing here seems to rely in the fact that the variables > I'm trying to use (like "THE_REQUEST", for example) are only defined within > mod_rewrite's scope, and are

Re: [users@httpd] Problem when mixing RewriteRules and directives

2012-03-22 Thread Igor Cicimov
"The problem I'm facing here seems to rely in the fact that the variables I'm trying to use (like "THE_REQUEST", for example) are only defined within mod_rewrite's scope, and are not available to other directives like SetenvIf." And i dont think this is correct i have used SetEnvIf with REQUEST_UR

Re: [users@httpd] Problem when mixing RewriteRules and directives

2012-03-22 Thread Igor Cicimov
Do you have SetEnvIf and Location togather in the config? Remove the Location one and leave the SetEnvIf only to catch the env var for the header. I read somewhere a case when LocationMatch was affecting SetEnvIf. On Mar 23, 2012 1:26 AM, "Bruno Tréguier" wrote: > Le 22/03/2012 11:11, Igor Cicim

[users@httpd] mod_wsgi|fcgid and subversion >= 1.7 issues

2012-03-22 Thread Adrian Gschwend
Hi group, I have an interesting problem on my server with mod_wsgi and mod_fcgid, this is an update of a posting I did on the mod_wsgi list, see http://groups.google.com/group/modwsgi/browse_thread/thread/f7171b7442965c78# for the full thread. The mod_wsgi developers had no explanation for the ef

[users@httpd] RE: LogFormat

2012-03-22 Thread Tosh, Michael J
Tosh, Michael J wrote: > Does the %{}C Format do a regexp search or substring match? How can I force > it to match the full > string? Found my own answer, https://issues.apache.org/bugzilla/show_bug.cgi?id=28037

[users@httpd] Serving pre-compressed static content using httpd 2.2.x

2012-03-22 Thread Christopher Schultz
All, I've been reading a bit lately about serving pre-compressed static content with httpd, and it looks like I have a few options that have various pros and cons. I'd like to make sure I have things straight because my testing so far has left me a bit frazzled. If I'm wrong about any of the asse

[users@httpd] LogFormat

2012-03-22 Thread Tosh, Michael J
I'm running a Bugzilla instance on my apache server. Bugzilla contains two cookies when a user is logged in, Bugzilla_login (an integer) and Bugzilla_logincookie. (a hex string) I'd like to capture the value of Bugzilla_login in my CustomLog. I have the following CustomLog directive: Custom

Re: [users@httpd] accessing named pipe files from apache web server

2012-03-22 Thread Mysterious Mose
Good morning Tom, Thank you for your response! It's too bad things aren't as simple as I think they should be. :-) I do understand how named pipes work in general on Unix, how you must have a reader and a writer for anything to happen. If I create a named pipe and have no writer proc

Re: [users@httpd] accessing named pipe files from apache web server

2012-03-22 Thread Mysterious Mose
Good morning Nick! Funny enough, you were the one who responded to the November 2009 thread that I saw earlier. How I'm trying to access it is just through a regular HTTP GET, like it was any other file. I feel like named pipes behave like regular files for the most part when you're in th

Re: [users@httpd] Dynamic selection of mod_authnz_ldap's 'require ldap-group' object?

2012-03-22 Thread Eric Covener
On Thu, Mar 22, 2012 at 2:03 PM, Eric Covener wrote: >>        So, how to supply the information parsed from the URI as part of the >>        argument to the require ldap-group directive *at REQUEST time*.   Is >>        that %{xxx} resolution something that takes place at the time the >>        r

Re: [users@httpd] Dynamic selection of mod_authnz_ldap's 'require ldap-group' object?

2012-03-22 Thread Eric Covener
>        So, how to supply the information parsed from the URI as part of the >        argument to the require ldap-group directive *at REQUEST time*.   Is >        that %{xxx} resolution something that takes place at the time the >        request is being serviced and honored, or is it something t

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
J.Lance Wilkinson wrote: 3) SetEnvIf REQUEST_URI "^(.*)/umg-(.*)$" UMG=$1 Logs (non-matching) REQUEST_URI of "/server-info?config" as: ."GET /server-info?config HTTP/1.1" 200 38314 UMG=- Logs (matching) REQUEST_URI of "/umgs/umg-up.dlt.ul.gml.managers/umgs.php" as: ."GET /umgs/umg

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
Mysterious Mose wrote: Hello again Lance, PCRE version 7.8 2008-09-05 re> @^/(.*)/umg-(.*)(.html|/(.*)?)$@ data> /umgs/umg-up.dlt.sslcerts.mgttool/umgs.php 0: /umgs/umg-up.dlt.sslcerts.mgttool/umgs.php 1: umgs 2: up.dlt.sslcerts.mgttool 3: /umgs.php 4: umgs.ph Wow, this is a

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread Mysterious Mose
Hello again Lance, > PCRE version 7.8 2008-09-05 >re> @^/(.*)/umg-(.*)(.html|/(.*)?)$@ > data> /umgs/umg-up.dlt.sslcerts.mgttool/umgs.php > 0: /umgs/umg-up.dlt.sslcerts.mgttool/umgs.php > 1: umgs > 2: up.dlt.sslcerts.mgttool > 3: /umgs.php > 4: umgs.ph Wow, this is a very handy

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
Eric Covener wrote: On Thu, Mar 22, 2012 at 10:18 AM, J.Lance Wilkinson wrote: I'm trying to extract part of a URI into an environment variable to use in an authorization scheme (let's skip talking about how I'll USED that variable for the moment). I have the following directives in my configu

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
Eric Covener wrote: Why both locationmatch AND checking the request URI in setenvif? The elipsis indicates more stuff, of course. Inside my Location stanza are access restriction directives to be applied when the URI matches. I'm hoping (yet another pass on my thread f

Re: [users@httpd] accessing named pipe files from apache web server

2012-03-22 Thread Tom Evans
On Thu, Mar 22, 2012 at 1:56 PM, Mysterious Mose wrote: > Good morning, > > […] > >    Why is this so difficult, and why aren't more people interested in > doing this? It seems like such a simple thing to do. If I create a > named pipe and write data to it, cat can get the data out, along with > m

Re: [users@httpd] accessing named pipe files from apache web server

2012-03-22 Thread Nick Kew
On Thu, 22 Mar 2012 06:56:56 -0700 "Mysterious Mose" wrote: > I just want a plain named pipe as a file on the web server. How are you trying to access it? A named pipe isn't a regular file, and can't in general be treated as such. Not having tried it with apache, I don't know what to expe

Re: [users@httpd] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

2012-03-22 Thread Nick Kew
On Thu, 22 Mar 2012 14:57:02 +0100 "Richard Westebbe" wrote: > - When mod_unixd is loaded before mod_fcgid everything seems to work fine. > So I don't think that an bugzilla report is nescessary. > Though I think it might be a great advantage, if such dependencies would be > resolved interna

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
Mysterious Mose wrote: Good morning Lance, I don't think your regexp is quite right. You could test it out with grep or sed or something by echoing in the string from the log. You have: "^/(.*)/umg/.(.*)(.html|/(.*)?)$" I think you mean: "^/(.*)/umg\.(.*)(.html|/(.*)?)$" Tha

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread Mysterious Mose
Good morning Lance, I don't think your regexp is quite right. You could test it out with grep or sed or something by echoing in the string from the log. You have: "^/(.*)/umg/.(.*)(.html|/(.*)?)$" I think you mean: "^/(.*)/umg\.(.*)(.html|/(.*)?)$" That is, I believe you want

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread Eric Covener
On Thu, Mar 22, 2012 at 10:18 AM, J.Lance Wilkinson wrote: > I'm trying to extract part of a URI into an environment variable to use in > an authorization scheme (let's skip talking about how I'll USED that > variable for the moment). > > I have the following directives in my configuration: > > Lo

Re: [users@httpd] Problem when mixing RewriteRules and directives

2012-03-22 Thread Bruno Tréguier
Le 22/03/2012 11:11, Igor Cicimov a écrit : Why don't you just do it this way: RewriteCond %{REQUEST_URI} !^/(media|skin|js)/ [OR] RewriteCond %{REQUEST_URI} !^/onlinestore/checkout RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l Rewrit

[users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
I'm trying to extract part of a URI into an environment variable to use in an authorization scheme (let's skip talking about how I'll USED that variable for the moment). I have the following directives in my configuration: LogFormat "%h %l %u %t \"%r\" %>s %b UMG=%{UMG}e" umgs CustomLog logs/u

Re: [users@httpd] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

2012-03-22 Thread Richard Westebbe
Hi Nick, first an update: - The problem, that I couldn't stop the httpd was caused by the init script. It was the original Apache init file, which searched for the pid file in /var/log/httpd/. I moved in my spec file to /var/run to make it fit to the terms of CentOS. - The kill -9 was ne

[users@httpd] accessing named pipe files from apache web server

2012-03-22 Thread Mysterious Mose
Good morning, OK, I feel like an idiot, because this seems to me like a straightforward thing, but not only can I not get it to work, I can't seem to even find information about it. When I search for "apache" and "named pipe" or "fifo" I keep getting tons of information about making the logs p

Re: [users@httpd] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

2012-03-22 Thread Nick Kew
On Thu, 22 Mar 2012 14:10:03 +0100 "Richard Westebbe" wrote: > Hi Nick, > > > Did you test it with everything dynamically loaded but with > > mod_unixd loaded before mod_fcgid? I'd expect that to work, > > given what you've told us! > > I tried this now. The result is, that Apache 2.4.1 is st

Re: [users@httpd] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

2012-03-22 Thread Richard Westebbe
Hi Nick, > Did you test it with everything dynamically loaded but with > mod_unixd loaded before mod_fcgid? I'd expect that to work, > given what you've told us! I tried this now. The result is, that Apache 2.4.1 is starting without any complains, so you where right. The order of how the modu

Re: [users@httpd] Subdomain rewrite

2012-03-22 Thread Rich Bowen
On Mar 21, 2012, at 8:09 PM, Chris Arnold wrote: > Apache 2.2.12 on SLES11 SP2. I am trying to get a subdomain working via a > rewrite rule, http://helpdesk.teknerds.net. > The rule is in its own vhost (helpdesk.teknerds.conf. I am confused if it > needs its own vhost or if the rewrite should g

Re: [users@httpd] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

2012-03-22 Thread Nick Kew
On Thu, 22 Mar 2012 12:21:09 +0100 "Richard Westebbe" wrote: > Well, > > it seems like I wasn't totally wrong with my assumption... > > With a statically linked mod_unixd mod_fcgid is working! The error message > is gone and a few some small tests > showed that mod_fcgid is doing what it s

Re: [users@httpd] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

2012-03-22 Thread Richard Westebbe
Well, it seems like I wasn't totally wrong with my assumption... With a statically linked mod_unixd mod_fcgid is working! The error message is gone and a few some small tests showed that mod_fcgid is doing what it shall do. Strange thing about it is that it is a problem to stop httpd now.

Re: [users@httpd] Uploading a file using HTTp to apache web server.

2012-03-22 Thread Sharmistha Chatterjee
After making suffiecient study I had posted the question as I didnt find anyway where there are reading a plain/text/jpeg/video data . Php is reading form data everywhere from url encoded forms. Anyways sorry for incovenience is its off the topic. Regards, Sharmistha On Thu, Mar 22, 2012 at 4:21

Re: [users@httpd] Uploading a file using HTTp to apache web server.

2012-03-22 Thread Tom Evans
On Thu, Mar 22, 2012 at 10:39 AM, Sharmistha Chatterjee wrote: > > Hi, > > I am trying to upload a file to apache web server . The post request is > successful. I am getting HTTP OK > > Post request > > POST /upload.php?save-as=t.txt HTTP/1.1 > Host: x.x.x.x > > Content-Length: 5 > Content-Type:

Re: [users@httpd] Uploading a file using HTTp to apache web server.

2012-03-22 Thread Sharmistha Chatterjee
Hi, I am trying to upload a file to apache web server . The post request is successful. I am getting HTTP OK Post request POST /upload.php?save-as=t.txt HTTP/1.1 Host: x.x.x.x Content-Length: 5 Content-Type: text/plain Hello

Re: [users@httpd] Problem when mixing RewriteRules and directives

2012-03-22 Thread Igor Cicimov
Why don't you just do it this way: RewriteCond %{REQUEST_URI} !^/(media|skin|js)/ [OR] RewriteCond %{REQUEST_URI} !^/onlinestore/checkout RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule .* index.php [L] and solve your rewrite

Re: [users@httpd] Uploading a file using HTTp to apache web server.

2012-03-22 Thread Sharmistha Chatterjee
Thank you. How the script will read the results, should it read using HTTP GET (as I am new to this). Is there any information available regarding this anywhere in the website. Regards, Sharmistha On Thu, Mar 22, 2012 at 2:24 PM, Daniel Gruno wrote: > On 22-03-2012 09:48, Sharmistha Chatterjee

Re: [users@httpd] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

2012-03-22 Thread Richard Westebbe
Hi William, thank you that you've already answered the question of Tianyin! @Tianyin: Hi, thank you for your time and interest! I'm trying to solve the problem too, at the moment. The appears to me, that the problem is caused by the fact, that mod_unixd is new in 2.4.1. I compiled 2.4

Re: [users@httpd] Uploading a file using HTTp to apache web server.

2012-03-22 Thread Daniel Gruno
On 22-03-2012 09:48, Sharmistha Chatterjee wrote: Hi, I am new to apache web server. My objective is to upload a file from a C program. I am facing an issue in uploading a file to APACHE web server on Linux. I am not able to find the uploaded file at the server. My post request has the followin

[users@httpd] Uploading a file using HTTp to apache web server.

2012-03-22 Thread Sharmistha Chatterjee
Hi, I am new to apache web server. My objective is to upload a file from a C program. I am facing an issue in uploading a file to APACHE web server on Linux. I am not able to find the uploaded file at the server. My post request has the following data and the HTTP response is also OK. if I dont

Re: [users@httpd] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

2012-03-22 Thread William A. Rowe Jr.
On 3/22/2012 3:25 AM, Tianyin Xu wrote: > Hi, Richard, > > The problem you found is really interesting to me. I would like to take a > look at it. > > But it seems that the module "mod_fcgid" is not an official Apache module? > Since I cannot > find it in the manual of Apache httpd-2.4.1 (see t

Re: Re: [users@httpd] Unable to create or access scoreboard (anonymous shared memory failure)

2012-03-22 Thread Tianyin Xu
Thanks a lot, William!! One amazing thing of Apache is that you developers are really responsible and do care the usability of the software. Best, T On Wed, Mar 21, 2012 at 9:32 PM, William A. Rowe Jr. wrote: > Room for improvement? Forwarding as attach to include formatting. > > Thanks for the

Re: [users@httpd] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

2012-03-22 Thread Tianyin Xu
Hi, Richard, The problem you found is really interesting to me. I would like to take a look at it. But it seems that the module "mod_fcgid" is not an official Apache module? Since I cannot find it in the manual of Apache httpd-2.4.1 (see the following link) http://httpd.apache.org/docs/2.4/mod/

Re: [users@httpd] RE: URGENT help required

2012-03-22 Thread Daniel Gruno
On 22-03-2012 05:56, karthiek.maralla wrote: Hi, I am getting following error when running a report through java in oc4j server. ...bla bla bla... Any help would be greatly appreciated Sending the letter again does still not make this the right place to ask for help. Have you tried the O