Re: [us...@httpd] Send email upon HTTP response 500

2010-05-05 Thread Jarl Friis
Hi Nick. Thank you for your time. Nick Kew writes: > On 5 May 2010, at 10:09, Jarl Friis wrote: > >> Hi. >> >> I am looking for a module that can send me emails every time a HTTP >> 500 Response is returned to the user. > > Why not hook that in to the logging? Do you mean the appache httpd lo

Re: [us...@httpd] IP based redirect with mod_rewrite

2010-05-05 Thread Priya Vadlakonda (Contractor)
True The problem is on the fail over environment, we don't have a load balancer and they would want a solution on Apache so they can implement the same even in the fail over env I will anyway send the log, may be you have more ideas Thanks Priya From: Igor Ci

Re: [us...@httpd] IP based redirect with mod_rewrite

2010-05-05 Thread Charan
Wouldn't this work if we enable X-Forwarded headers on the Load Balancers. Thanks, Charan On Wed, May 5, 2010 at 6:54 PM, Igor Cicimov wrote: > Yeah that's what I was suspecting. Because of the F5 masquerading the > apache is not getting the client IP but the one set by F5. > > The simplest so

Re: [us...@httpd] IP based redirect with mod_rewrite

2010-05-05 Thread Igor Cicimov
Yeah that's what I was suspecting. Because of the F5 masquerading the apache is not getting the client IP but the one set by F5. The simplest solution would be to set the rule you need on the F5 load balancer than on apache server. Igor On Thu, May 6, 2010 at 11:36 AM, Priya Vadlakonda (Contrac

Re: [us...@httpd] IP based redirect with mod_rewrite

2010-05-05 Thread Priya Vadlakonda (Contractor)
If I remember right, I think when I set the log for debugging The rule does not seem to work as expected and is checking proxy ip instead of client ip Anyway, to be sure I will set up the rule yet again and send you the log snippet. Thanks Priya From: Igor Ci

Re: [us...@httpd] IP based redirect with mod_rewrite

2010-05-05 Thread Igor Cicimov
I wonder why the %{REMOTE_ADDR} approach is failing? Are you getting a wrong REMOTE_ADDR or your rule is not working? Can you please post your rewrite rule for that case and appropriate rewrite logs with RewriteLogLevel set as high as possible for debugging? You can also try to combine SetEnvIf an

Re: [us...@httpd] Send email upon HTTP response 500

2010-05-05 Thread Nick Kew
On 5 May 2010, at 10:09, Jarl Friis wrote: > Hi. > > I am looking for a module that can send me emails every time a HTTP > 500 Response is returned to the user. Why not hook that in to the logging? > I have looked at mod_tee, which could probably do the job, however it > seems very unmature. T

Re: [us...@httpd] Unable to start HTTPD , apache web server

2010-05-05 Thread Nick Kew
On 4 May 2010, at 08:06, Tapan Maheshwari wrote: > /usr/local/apache2/bin/httpd: syntax error at line 1: `(' unexpected Looks like your system may be trying to run httpd as a script, which implies the installation is broken. How did you install? What does "file /usr/local/apache2/bin/httpd" tel

Re: [us...@httpd] apxs: not found

2010-05-05 Thread Nick Kew
On 5 May 2010, at 14:54, Tapan Maheshwari wrote: > YES, > i am executing this command from this directory: /usr/local/apache2/bin > where apxs is present. > > again, apxs is not a binary, this is a text file Did you build apxs or install from package built elsewhere? If the latter, you ma

Re: [us...@httpd] Redirect question

2010-05-05 Thread Doug McNutt
>DNS resolves the "server" and "application" hostnames correctly. If I go to: >http://application/application >I get the correct page. What I want is for >http://application >to redirect me to >http://application/a

Re: [us...@httpd] Redirect question

2010-05-05 Thread Justin Pasher
- Original Message - From: john.c.kenn...@ldhenergy.com Date: Wed, 5 May 2010 17:52:39 -0400 Subject: Re: [us...@httpd] Redirect question To: users@httpd.apache.org ServerName server ServerAlias application RewriteEngine On RewriteCond %{HTTP_HOST} ^application$ [NC]

Re: [us...@httpd] Redirect question

2010-05-05 Thread John . C . Kennedy
- Original Message - > From: john.c.kenn...@ldhenergy.com > Date: Wed, 5 May 2010 16:46:34 -0400 > Subject: [us...@httpd] Redirect question > To: users@httpd.apache.org > > > My user wants me to set up so that > http://application > will redirect to: > http://server/a

Re: [us...@httpd] Redirect question

2010-05-05 Thread Justin Pasher
- Original Message - From: john.c.kenn...@ldhenergy.com Date: Wed, 5 May 2010 16:46:34 -0400 Subject: [us...@httpd] Redirect question To: users@httpd.apache.org My user wants me to set up so that http://application will redirect to: http://server/application How

Re: [us...@httpd] Redirect question

2010-05-05 Thread John . C . Kennedy
At 16:46 -0400 5/5/10, john.c.kenn...@ldhenergy.com wrote: I have an application running on a server at: http://server/application My user wants me to set up so that http://application will redirect to: http://server/application I have DNS set up and now if I go to: http://application/application

RE: [us...@httpd] Redirect question

2010-05-05 Thread John . C . Kennedy
Priya, I tried: Redirect permanent /index.jsp http://server/app/index.jsp and definitely got the loop you are referring to. The URL came out as: http://server/appappappappappappappappappappappappappappapp I also tried the following with the same result: Redirect permanent / http://server/app/inde

Re: [us...@httpd] Redirect question

2010-05-05 Thread Doug McNutt
At 16:46 -0400 5/5/10, john.c.kenn...@ldhenergy.com wrote: I have an application running on a server at: http://server/application My user wants me to set up so that http://application will redirect to: http://server/applic

RE: [us...@httpd] Redirect question

2010-05-05 Thread Priya Vadlakonda (Contractor)
And I assume you cleared cache / enabled cookies to make sure this isn't caused by firefox itself. From: Priya Vadlakonda (Contractor) [mailto:priya.vadlako...@ucop.edu] Sent: Wednesday, May 05, 2010 2:02 PM To: users@httpd.apache.org Subject: RE: [us...@httpd] Redirect question I think th

RE: [us...@httpd] Redirect question

2010-05-05 Thread Priya Vadlakonda (Contractor)
I think the redirect rule entered into a loop and unable to process Did you try Redirect permanent /application http://server/application Does /application internally call any JSP before loading the page? For eg: in or env, we have a /*, that internally calls a index.jsp and then i

[us...@httpd] Redirect question

2010-05-05 Thread John . C . Kennedy
I have checked the archives since I am sure this has been asked before but can not find an answer. I have an application running on a server at: http://server/application My user wants me to set up so that http://application will redirect to: http://server/application I have DNS set up and now

[us...@httpd] IP based redirect with mod_rewrite

2010-05-05 Thread Priya Vadlakonda (Contractor)
Hi How do I set up a rule in Apache( If at all that is possible) to redirect traffic based on the IP address of the client. Here is the set up of the env There is a reverse proxy (F5 LTM) that does SSL offloading and this is the first point the user hits and this does load balancing acr

Re: [us...@httpd] mod_fcgid and htaccess

2010-05-05 Thread Jeff Trawick
2010/5/5 Piotr Kloc : > Hello ! > > In changelog of mod_fcgid I can see > > version 2.1 ( Feb 15th 2007 ) > 2. FCGIWrapper disallowed in .htaccess > > but in version 2.3.5  the possibility of use FCGIWrapper in .htaccess > still exist. The 2.1 change log isn't clearly worded. In fact, that change

[us...@httpd] mod_fcgid and htaccess

2010-05-05 Thread Piotr Kloc
Hello ! In changelog of mod_fcgid I can see version 2.1 ( Feb 15th 2007 ) 2. FCGIWrapper disallowed in .htaccess but in version 2.3.5 the possibility of use FCGIWrapper in .htaccess still exist. I can use in my .htaccess something like the following SetHandler fcgid-script FcgidWrapper "/pat

RE: [us...@httpd] Incorrect conversion of UTF-8 characters comming from X.509 certificates, please help

2010-05-05 Thread Thomas, Peter
This may help you; I patched mod_ssl to retrieve the certificate DN in RFC2253 [LDAP-compliant] format, instead of the deprecated method currently used: --- http-2.2.15-baseline/modules/ssl//ssl_engine_vars.c Sat Feb 27 16:00:58 2010 --- http-2.2.15/modules/ssl//ssl_engine_vars.c Tue Mar 23 14:2

Re: [us...@httpd] SCGI for specific extensions

2010-05-05 Thread Eric Covener
> This doesn't work well, because I don't know everything I will need to > exclude. > (\.js|\.gif|\.jpg|\.ico|\.css|\.swf|\.png|\.tiff|\.jpeg|\.json|\.zip|\.tar\.gz|\.mp3|\.doc)+$> > SCGIHandler Off Can't help re: SCGI, but you get out of the blacklist scheme with e.g.: S

Re: [us...@httpd] Unable to start HTTPD , apache web server

2010-05-05 Thread Eric Covener
> $ ./apachectl -k start . it gives me following error > /usr/local/apache2/bin/httpd: syntax error at line 1: `(' unexpected The problem is the contents of the file /usr/local/apache2/bin/httpd, not of the config file. Normally this is a binary. -- Eric Covener cove...@gmail.com

Re: [us...@httpd] apxs: not found

2010-05-05 Thread Sakthi Esakiappan
Also post cat /usr/local/apache2/bin/apxs On 5 May 2010 19:38, Hendrik Schmieder wrote: > Tapan Maheshwari schrieb: > > YES, >> i am executing this command from this directory: /usr/local/apache2/bin >> where apxs is present. >> >> again, apxs is not a binary, this is a text file >> >> Tha

[us...@httpd] SCGI for specific extensions

2010-05-05 Thread David Smith
I created a custom SCGI process and I'd like to only pass requests with a .gsp or .gspx extension to be handled by the process.. The problem I'm having is that it I've not been able to get specific request sent to the scgi process by extension, but rather I've only been able to tell it to process e

RE: [us...@httpd] Unable to start HTTPD , apache web server

2010-05-05 Thread Voellinger, Sandy
Do you have any include statements in your httpd.conf such as include conf/*.conf or vhosts.d/*.conf ? If so, you’ll need to make sure there aren’t any syntax errors in those files as well. Also, make sure that apache is using the same configuration file you are actually editing by doing the f

Re: [us...@httpd] apxs: not found

2010-05-05 Thread Hendrik Schmieder
Tapan Maheshwari schrieb: YES, i am executing this command from this directory: /usr/local/apache2/bin where apxs is present. again, apxs is not a binary, this is a text file Thanks, What is the output of ls -l /usr/local/apache2/bin/apxs ? Hendrik ---

Re: [us...@httpd] apxs: not found

2010-05-05 Thread Tapan Maheshwari
YES,i am executing this command from this directory: /usr/local/apache2/bin where apxs is present. again, apxs is not a binary, this is a text file Thanks, --- On Wed, 5/5/10, Nick Tkach wrote: From: Nick Tkach Subject: Re: [us...@httpd] apxs: not found To: users@httpd.apache.org Date: Wed

Re: [us...@httpd] apxs: not found

2010-05-05 Thread Nick Tkach
Okay, this is probably a stupid question, but what directory are you in when you run the apxs? I noticed you use "./apxs"... That's only going to work if you're in the same directory as the apxs binary(/usr/local/apache2/bin apparently, from what you've said). This email message and any attach

Re: [us...@httpd] apxs: not found

2010-05-05 Thread Tapan Maheshwari
Hi,Thanks for writing 1) SunOS 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-V4402) /usr/bin:/bin:/usr/sbin:/sbin3) no apxs in /usr/bin /bin /usr/sbin /sbin Thanks. --- On Wed, 5/5/10, Mauri wrote: From: Mauri Subject: Re: [us...@httpd] apxs: not found To: users@httpd.apache.org Date: Wednesd

Re: [us...@httpd] apxs: not found

2010-05-05 Thread Tapan Maheshwari
Hi,Thanks for writingStill getting same error :/usr/local/apache2/bin/apxs: not found Thanks --- On Wed, 5/5/10, Sakthi Esakiappan wrote: From: Sakthi Esakiappan Subject: Re: [us...@httpd] apxs: not found To: users@httpd.apache.org Date: Wednesday, May 5, 2010, 11:08 AM Hello, Have a try wit

Re: [us...@httpd] apxs: not found

2010-05-05 Thread Mauri
please write: uname -a echo $PATH which apxs Cheers, Mauri 2010/5/5 Sakthi Esakiappan > Hello, > > Have a try with > /usr/local/apache2/bin/apxs -c -I /usr/include/libxml2 -I. -i > mod_poxy_html.c > > and make sure that /usr/local/apache2/bin/apxs has executable permission if > not give it b

Re: [us...@httpd] apxs: not found

2010-05-05 Thread Sakthi Esakiappan
Hello, Have a try with /usr/local/apache2/bin/apxs -c -I /usr/include/libxml2 -I. -i mod_poxy_html.c and make sure that /usr/local/apache2/bin/apxs has executable permission if not give it by chmod +x /usr/local/apache2/bin/apxs On 5 May 2010 15:15, Tapan Maheshwari wrote: > Hi, > > i tried t

[us...@httpd] apxs: not found

2010-05-05 Thread Tapan Maheshwari
Hi, i tried to compile mod_proxy_html.c using apxs with following command # ./apxs -c -I /usr/include/libxml2 -I. -i mod_proxy_html.cit gives following error "./apxs: not found"i have verified that apxs is available under folder /usr/local/apache2/bin Thanks

[us...@httpd] Send email upon HTTP response 500

2010-05-05 Thread Jarl Friis
Hi. I am looking for a module that can send me emails every time a HTTP 500 Response is returned to the user. The point is that I am hosting a (rails) web-application and I would like to get notified every time something went wrong. I have looked at mod_tee, which could probably do the job, howev