[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, however it
seems very unmature. Then mod_diagnostics, but that seems mostly for
debugging other modules.

I also seem to remember that apache httpd can send email on certain
events (reponse 500) even without an additional module. But searching
for "apache send email" is useless as these words are all over the
internet.

Please help.

Jarl


-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[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


  

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 to compile mod_proxy_html.c using apxs with following command
>
> # ./apxs -c -I /usr/include/libxml2 -I. -i mod_proxy_html.c
>
> it gives following error* "./apxs: not found"*
>
> i have verified that apxs is available under folder /usr/local/apache2/bin
>
>
> Thanks
>
>
>


-- 
With Regards,
Sakthi Esakiappan.M
Server Administrator

MercuryMinds Technologies Pvt Ltd
www.mercuryminds.com "An E-Commerce mentor"
+91 44 45588587
sakthi.esakiap...@mercuryminds.com
www.mercuryminds.com

Disclaimer: This message is intended only for the use of the individual or
entity to which it is addressed and may contain information that is
privileged, confidential and exempt from disclosure under applicable law. If
you have received this message in error, you are hereby notified that we do
not consent to any reading, dissemination, distribution or copying of this
message. If you have received this communication in error, please notify the
sender immediately and destroy the transmitted information.


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 by
>
> chmod +x /usr/local/apache2/bin/apxs
>
> On 5 May 2010 15:15, Tapan Maheshwari  wrote:
>
>> 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.c
>>
>> it gives following error* "./apxs: not found"*
>>
>> i have verified that apxs is available under folder
>> /usr/local/apache2/bin
>>
>>
>> Thanks
>>
>>
>>
>
>
> --
> With Regards,
> Sakthi Esakiappan.M
> Server Administrator
>
> MercuryMinds Technologies Pvt Ltd
> www.mercuryminds.com "An E-Commerce mentor"
> +91 44 45588587
> sakthi.esakiap...@mercuryminds.com
> www.mercuryminds.com
>
> Disclaimer: This message is intended only for the use of the individual or
> entity to which it is addressed and may contain information that is
> privileged, confidential and exempt from disclosure under applicable law. If
> you have received this message in error, you are hereby notified that we do
> not consent to any reading, dissemination, distribution or copying of this
> message. If you have received this communication in error, please notify the
> sender immediately and destroy the transmitted information.
>


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 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 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



  


-- 
With Regards,
Sakthi Esakiappan.M
Server Administrator

MercuryMinds Technologies Pvt Ltd
www.mercuryminds.com "An E-Commerce mentor"

+91 44 45588587
sakthi.esakiap...@mercuryminds.com
www.mercuryminds.com

Disclaimer: This message is intended only for the use of the individual or 
entity to which it is addressed and may contain information that is privileged, 
confidential and exempt from disclosure under applicable law. If you have 
received this message in error, you are hereby notified that we do not consent 
to any reading, dissemination, distribution or copying of this message. If you 
have received this communication in error, please notify the sender immediately 
and destroy the transmitted information.





  

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: Wednesday, May 5, 2010, 11:17 AM

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 by

chmod +x /usr/local/apache2/bin/apxs


On 5 May 2010 15:15, Tapan Maheshwari  wrote:



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




  


-- 
With Regards,
Sakthi Esakiappan.M
Server Administrator

MercuryMinds Technologies Pvt Ltd
www.mercuryminds.com "An E-Commerce mentor"


+91 44 45588587
sakthi.esakiap...@mercuryminds.com
www.mercuryminds.com

Disclaimer: This message is intended only for the use of the individual or 
entity to which it is addressed and may contain information that is privileged, 
confidential and exempt from disclosure under applicable law. If you have 
received this message in error, you are hereby notified that we do not consent 
to any reading, dissemination, distribution or copying of this message. If you 
have received this communication in error, please notify the sender immediately 
and destroy the transmitted information.








  

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 attachments are for the sole use of the intended 
recipient(s) and may contain information that is proprietary to Ahold and/or 
its subsidiaries (“Ahold”) or otherwise confidential or legally privileged. If 
you have received this message in error, please notify the sender by reply, and 
delete all copies of this message and any attachments. If you are the intended 
recipient you may use the information contained in this message and any files 
attached to this message only as authorized by Ahold. Files attached to this 
message may only be transmitted using secure systems and appropriate means of 
encryption, and must be secured using the same level of password and security 
protection with which the file was provided to you. Any unauthorized use, 
dissemination or disclosure of this message or its attachments is strictly 
prohibited. 


From: "Tapan Maheshwari"  
To: users@httpd.apache.org 
Sent: Wednesday, May 5, 2010 8:42:51 AM 
Subject: Re: [us...@httpd] apxs: not found 

Hi, 
Thanks for writing 



1) SunOS 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-V440 

2) /usr/bin:/bin:/usr/sbin:/sbin 

3) 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: Wednesday, May 5, 2010, 11:17 AM 


please write: 

uname -a 
echo $PATH 
which apxs 

Cheers, 
Mauri 




2010/5/5 Sakthi Esakiappan < sakthi.esakiap...@mercuryminds.com > 


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 < tapan...@yahoo.com > wrote: 


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.c 
it gives following error "./apxs: not found" i have verified that apxs is 
available under folder /usr/local/apache2/bin 

Thanks 



-- 
With Regards, 
Sakthi Esakiappan.M 
Server Administrator 

MercuryMinds Technologies Pvt Ltd 
www.mercuryminds.com "An E-Commerce mentor" 
+91 44 45588587 
sakthi.esakiap...@mercuryminds.com 
www.mercuryminds.com 

Disclaimer: This message is intended only for the use of the individual or 
entity to which it is addressed and may contain information that is privileged, 
confidential and exempt from disclosure under applicable law. If you have 
received this message in error, you are hereby notified that we do not consent 
to any reading, dissemination, distribution or copying of this message. If you 
have received this communication in error, please notify the sender immediately 
and destroy the transmitted information. 




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: Wednesday, May 5, 2010, 2:45 PM

#yiv320749157 p {margin:0;}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 attachments are for the sole use of the intended 
recipient(s) and may contain information that is proprietary to Ahold and/or 
its subsidiaries (“Ahold”) or otherwise confidential or legally privileged.  If 
you have received this message in error, please notify the sender by reply, and 
delete all copies of this message and any attachments.  If you are the intended 
recipient you may use the information contained in this message and any files 
attached to this message only as authorized by Ahold.  Files attached to this 
message may only be transmitted using secure systems and appropriate means of 
encryption, and must be secured using the same level of password and security 
protection with which the file was provided to you.  Any unauthorized use, 
dissemination or disclosure of this message or its attachments is strictly 
prohibited.

From: "Tapan Maheshwari" 
To: users@httpd.apache.org
Sent: Wednesday, May 5, 2010 8:42:51 AM
Subject: Re: [us...@httpd] apxs: not found

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: Wednesday, May 5, 2010, 11:17 AM

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 by

chmod +x /usr/local/apache2/bin/apxs


On 5 May 2010 15:15, Tapan Maheshwari  wrote:



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




  


-- 
With Regards,
Sakthi Esakiappan.M
Server Administrator

MercuryMinds Technologies Pvt Ltd
www.mercuryminds.com "An E-Commerce mentor"


+91 44 45588587
sakthi.esakiap...@mercuryminds.com
www.mercuryminds.com

Disclaimer: This message is intended only for the use of the individual or 
entity to which it is addressed and may contain information that is privileged, 
confidential and exempt from disclosure under applicable law. If you have 
received this message in error, you are hereby notified that we do not consent 
to any reading, dissemination, distribution or copying of this message. If you 
have received this communication in error, please notify the sender immediately 
and destroy the transmitted information.











  

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

-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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 following:

/usr/local/apache2/bin/httpd –t –d $(Path_to_httpd.conf)

Substitute $(Path_to_httpd.conf) with the full path and name of where your 
httpd.conf is located.  For example:

If your httpd binary is located at /usr/local/apache2/bin/httpd
And
Your httpd.conf is located at /usr/apache2/conf/httpd.conf
Then your statement would look like this

/usr/local/apache2/bin/httpd –t –d usr/apache2/conf/httpd.conf

 The –t switch does a syntax check on your file without actually starting 
apache.  When you are ready to start it you can do so with the same command but 
just remove the –t switch.

From: Tapan Maheshwari [mailto:tapan...@yahoo.com]
Sent: Wednesday, May 05, 2010 2:41 AM
To: users@httpd.apache.org
Subject: RE: [us...@httpd] Unable to start HTTPD , apache web server

Hi,
Thanks for replying

The first line of httpd.conf is
ServerRoot "/usr/apache2"
I dont see any error in this line

Thanks
--- On Tue, 5/4/10, Voellinger, Sandy  wrote:

From: Voellinger, Sandy 
Subject: RE: [us...@httpd] Unable to start HTTPD , apache web server
To: "'users@httpd.apache.org'" 
Date: Tuesday, May 4, 2010, 2:45 PM
Edit your httpd.conf – the first line has a syntax error that’s causing it to 
fail.  It looks like you have a left parenthesis ( that doesn’t belong.

Cheers-
Sandy



From: Tapan Maheshwari [mailto:tapan...@yahoo.com]
Sent: Tuesday, May 04, 2010 3:07 AM
To: users@httpd.apache.org
Subject: [us...@httpd] Unable to start HTTPD , apache web server

Hi,

I have downloaded & installed following apache binaries (x86/Solaris 9)  from 
http://www.sunfreeware.com/, The Operating system is SunOS 5.9

 apache-2.2.15-sol9-x86-local.gz
 expat-2.0.1-sol9-x86-local.gz
 libgcc-3.4.6-sol9-x86-local.gz
 libiconv-1.13.1-sol9-x86-local.gz
 openldap-2.4.16-sol9-x86-local.gz
 openssl-1.0.0-sol9-x86-local.gz
 sasl-2.1.21-sol9-x86-local.gz
 zlib-1.2.4-sol9-x86-local.gz

all these were installed without any error,
and also configured httpd.conf, but when i start httpserver by issuing command
$ ./apachectl -k start . it gives me following error

/usr/local/apache2/bin/httpd: syntax error at line 1: `(' unexpected

i have also tried directly executing ./httpd but it gives the same error.

Has anyone faced any such issue ?

Thanks.






[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 everything and to exclude certain extension and folder.
This doesn't work well, because I don't know everything I will need to
exclude.

I just want .gsp and .gspx files to be handled via SCGI.  Any suggestions ?

My lighttpd config is here, and it works:
http://code.google.com/p/easygsp/wiki/InstallEasyGSP

 LoadModule scgi_module modules/mod_scgi.so
 SCGIMount / 127.0.0.1:

 
 SCGIHandler Off
 
 
 SCGIHandler Off
 

 
 DirectoryIndex index.gspx index.gsp index.html
 

 # point to $EASYGSP_HOME/webapps
 DocumentRoot "/easygsp/webapps"

 # point to $EASYGSP_HOME/webapps
 
   Options FollowSymLinks

   AllowOverride None

   Order allow,deny
   Allow from all
 


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
>>
>> Thanks,
>>
>>
> What is the output of
> ls -l /usr/local/apache2/bin/apxs ?
>
>  Hendrik
>
> -
> 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: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


-- 
With Regards,
Sakthi Esakiappan.M
Server Administrator

MercuryMinds Technologies Pvt Ltd
www.mercuryminds.com "An E-Commerce mentor"
+91 44 45588587
sakthi.esakiap...@mercuryminds.com
www.mercuryminds.com

Disclaimer: This message is intended only for the use of the individual or
entity to which it is addressed and may contain information that is
privileged, confidential and exempt from disclosure under applicable law. If
you have received this message in error, you are hereby notified that we do
not consent to any reading, dissemination, distribution or copying of this
message. If you have received this communication in error, please notify the
sender immediately and destroy the transmitted information.


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

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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.:


SCGIHandler off



SCGIHandler on



-- 
Eric Covener
cove...@gmail.com

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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:22:53 2010
@@ -367,10 +367,20 @@
 }
 else if (strcEQ(var, "S_DN")) {
 xsname = X509_get_subject_name(xs);
-cp = X509_NAME_oneline(xsname, NULL, 0);
-result = apr_pstrdup(p, cp);
-modssl_free(cp);
-resdup = FALSE;
+BIO *bio;
+int n;
+
+if ((bio = BIO_new(BIO_s_mem())) == NULL) {
+result = NULL;
+} else {
+X509_NAME_print_ex(bio, xsname, 0, XN_FLAG_RFC2253);
+n = BIO_pending(bio);
+result = apr_pcalloc(p, n+1);
+n = BIO_read(bio, result, n);
+result[n] = NUL;
+BIO_free(bio);
+resdup = FALSE;
+}
 }
 else if (strlen(var) > 5 && strcEQn(var, "S_DN_", 5)) {
 xsname = X509_get_subject_name(xs)

See also: 
 
http://mail-archives.apache.org/mod_mbox/httpd-modules-dev/201003.mbox/%
3c5045a4d718cab644ba24979206486b60067a4...@hptimail03.hpti.com%3e
 





From: Luis Neves [mailto:luisne...@hotmail.com] 
Sent: Thursday, April 29, 2010 10:34 AM
To: users@httpd.apache.org
Subject: [us...@httpd] Incorrect conversion of UTF-8 characters
comming from X.509 certificates, please help


Hi there,
I am trying to match the values coming from
apache/mod_ssl/mod_authz_ldap against some fields (subjectDN and
issuerDN) in an Openldap directory
the problem is that Apache is receiving certificate data that
contains UTF8 encoded chars

That chars are being incorrectly encoded with '\x' characters
(deprecated source code? bug?) and this is making the effect of
mod_authz_ldap failing the query with "bad search filter" error

Here some example data on the ssl_error.log

http://www.mail-archive.com/openssl-us...@openssl.org/msg60934.html

I need help on solving this, Iam sucked and dont know what to do
to put this thing working
Can someboby help me please?

PS: Im using Apache 2.2.3 on a Centos 5.4, against openldap

Luis




Hotmail: Trusted email with Microsoft's powerful SPAM
protection. Sign up now. 




[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 "/path/to/wrapper.sh"
Options +ExecCGI
allow from all


How can I deny use FcgidWrapper in .htaccess ?

Regards,
Piotr Kloc




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 some
years back is when FCGIWrapper *started* being respected in .htaccess.

http://svn.apache.org/viewvc?view=revision&revision=753560

> I can use in my .htaccess something like the following
>
>
>
> SetHandler fcgid-script
> FcgidWrapper "/path/to/wrapper.sh"

yeah, I think this would be surprising to many

> How can I deny use FcgidWrapper in .htaccess ?

at the moment you have to patch and rebuild; edit mod_fcgid and
comment out "| OR_FILEINFO" in these two places:

AP_INIT_TAKE123("FcgidWrapper", set_wrapper_config, NULL,
RSRC_CONF | ACCESS_CONF | OR_FILEINFO,
...
   AP_INIT_TAKE123("FCGIWrapper", set_wrapper_config, NULL,
RSRC_CONF | ACCESS_CONF | OR_FILEINFO,

The changed lines should look like

RSRC_CONF | ACCESS_CONF /* | OR_FILEINFO */ ,

and recompile/reinstall.

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[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 across our
Apache Web Servers.

 

So, we have Apache as a proxy server that sits behind the firewall and
this is the second entry point.

 

The problem is I would need to set up a rewrite rule in Apache that
diverts user to a web page depending on the original IP address of the
client.

 

We run Apache v2 and use {X-Forwarded-For}i feature that enables us to
record the IP address of the client in the access log.

 

In the access log I get both  the F5 proxy IP and also the original
client IP.

 

wsad...@dolores:/etc/apache2> rpm -qa | grep apache2

apache2-2.0.49-27.38

apache2-worker-2.0.49-27.38

 

Now the condition and rule

 

As soon as the client hits the F5 and the request is sent to Apache, I
need Apache to make a decision by getting the actual client IP and
routing to the appropriate web page.

 

Say if the user is accessing a URI /* and the request is coming from
within 128.48.0.0/16 or ucop.edu domain

 

I need users to get to https://sseqa.ucop.edu/* 

 

For any other client IP requesting the same URI, Apache should make a
decision to re route the request to a different site https://

 

How do I do that?

 

Any support is appreciated.

 

I tried several ways to establish this but each time it fails. I don't
have the failure logs for one particular attempt.

 

%{REMOTE_ADDR}  

%{HTTP:X-FORWARDED-FOR}

%{REMOTE_HOST}  - When trying for a domain based redirect

 

Thanks

Priya

 

 



[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 if I go to:
http://application/application
the correct page is displayed. I just can not seem to get
http://application
to go to the right place.

I have tried to use Redirect:
Redirect permanent / http://server/application
but I then get:
Firefox has detected that the server is redirecting the request for this 
address in a way that will never complete.

What am I doing wrong?

Thanks,
John

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 index.jsp internally calls login.jsp

 

I had to say

 

 Redirect /*/loginjsp  https://example.com to make it work.

 

Thanks

Priya

 

From: john.c.kenn...@ldhenergy.com [mailto:john.c.kenn...@ldhenergy.com]

Sent: Wednesday, May 05, 2010 1:47 PM
To: users@httpd.apache.org
Subject: [us...@httpd] Redirect question

 


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 if I go to: 
http://application/application   
the correct page is displayed. I just can not seem to get 
http://application   
to go to the right place. 

I have tried to use Redirect: 
Redirect permanent / http://server/application
  
but I then get: 
Firefox has detected that the server is redirecting the request for this
address in a way that will never complete. 

What am I doing wrong? 

Thanks, 
John



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 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 index.jsp internally calls login.jsp

 

I had to say

 

 Redirect /*/loginjsp  https://example.com to make it work.

 

Thanks

Priya

 

From: john.c.kenn...@ldhenergy.com [mailto:john.c.kenn...@ldhenergy.com]

Sent: Wednesday, May 05, 2010 1:47 PM
To: users@httpd.apache.org
Subject: [us...@httpd] Redirect question

 


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 if I go to: 
http://application/application   
the correct page is displayed. I just can not seem to get 
http://application   
to go to the right place. 

I have tried to use Redirect: 
Redirect permanent / http://server/application
  
but I then get: 
Firefox has detected that the server is redirecting the request for this
address in a way that will never complete. 

What am I doing wrong? 

Thanks, 
John



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/application

I have DNS set up and now if I go to:
http://application/application
the correct page is displayed. I just can not seem to get
http://application
to go to the right place.

I have tried to use Redirect:
Redirect permanent / http://server/application
but I then get:
Firefox has detected that the server is redirecting the request for this 
address in a way that will never complete.

What am I doing wrong?

To me it looks as though you would have to own the domain name "application" 
with an appropriate .com, .net or the like before any browser would recognize 
your Location HTTP header. I'd like to see that header as it appears after your 
Redirect is processed. If this is all in a local domain does your local DNS - 
bind?? - do the right thing?

But then perhaps I'm about to learn something I don't now about apache.
-- 

--> A fair tax is one that you pay but I don't <--

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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/index.jsp
Redirect permanent /* http://server/app/index.jsp
Redirect permanent /*/ http://server/app/index.jsp

Is there any other info that I can give that would help?

Thanks,
John





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 index.jsp internally calls login.jsp
 
I had to say
 
 Redirect /*/loginjsp  https://example.com to make it work.
 
Thanks
Priya
 
From: john.c.kenn...@ldhenergy.com [mailto:john.c.kenn...@ldhenergy.com] 
Sent: Wednesday, May 05, 2010 1:47 PM
To: users@httpd.apache.org
Subject: [us...@httpd] Redirect question
 

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 if I go to: 
http://application/application 
the correct page is displayed. I just can not seem to get 
http://application 
to go to the right place. 

I have tried to use Redirect: 
Redirect permanent / http://server/application 
but I then get: 
Firefox has detected that the server is redirecting the request for this 
address in a way that will never complete. 

What am I doing wrong? 

Thanks, 
John


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
the correct page is displayed. I just can not seem to get
http://application
to go to the right place.

I have tried to use Redirect:
Redirect permanent / http://server/application
but I then get:
Firefox has detected that the server is redirecting the request for this 
address in a way that will never complete.

What am I doing wrong?

To me it looks as though you would have to own the domain name 
"application" with an appropriate .com, .net or the like before any 
browser would recognize your Location HTTP header. I'd like to see that 
header as it appears after your Redirect is processed. If this is all in a 
local domain does your local DNS - bind?? - do the right thing?

But then perhaps I'm about to learn something I don't now about apache.



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/application


I have also tried the following VirtualHost config with the same results:

NameVirtualHost XXX.XXX.XXX.XXX


ServerName application.example.com
ServerAlias *
Redirect permanent / http://servert/application


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 are your VirtualHost containers setup (assuming you are using them)? 
A simple rewrite rule with the domain check should work (assuming that 
"application" and "server" are domain names).



   ServerName  server
   ServerAlias application

   RewriteEngine   On
   RewriteCond %{HTTP_HOST} ^application$ [NC]
   RewriteRule . http://server/application [R=permanent]
     




--
Justin Pasher

-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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/application

How are your VirtualHost containers setup (assuming you are using them)? 
A simple rewrite rule with the domain check should work (assuming that 
"application" and "server" are domain names).


ServerName  server
ServerAlias application

RewriteEngine   On
RewriteCond %{HTTP_HOST} ^application$ [NC]
RewriteRule . http://server/application [R=permanent]
 



-- 
Justin Pasher


I get the same looping result. (I shortened application to app because I 
am too lazy to type all that!):
The requested URL 
/appappappappappappappappappappappappappappappappappappappappapp was not 
found on this server. 

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org




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]
   RewriteRule . http://server/application [R=permanent]
     




--
Justin Pasher


I get the same looping result. (I shortened application to app because 
I am too lazy to type all that!):
The requested URL 
/appappappappappappappappappappappappappappappappappappappappapp was 
not found on this server.


Did you remove any other Redirect rules in your VirtualHost container? I 
don't see how the above config could possibly cause a redirect like you 
are seeing, because once the redirect is made, the browser is no longer 
requesting http://application/ (it's requesting 
http://server/application). This rewrite only applies when the host name 
is "application".


--
Justin Pasher

-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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/application

I would expect a GET or other request to the document root for your instance of 
apache would look for a file named index.html or index.cgi and execute that. 
Apache has defaults that create a directory listing for the case without an 
index* file, but I'm pretty sure you can change that name with a directive.  
Should it be "application.xxx"?

An index.cgi could look at the environment variables and notice the 
"application" in the call and treat it specially. A procedure like that would 
be nearly impossible if there are multiple applications available.

Could you add an extra /application in the DNS server with a CNAME?

-- 

--> From the U S of A, the only socialist country that refuses to admit it. <--

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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 may be lacking a prerequisite (like perl).
The "file not found" could be from the shebang line.

-- 
Nick Kew

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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" tell you?

-- 
Nick Kew


-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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. Then mod_diagnostics, but that seems mostly for
> debugging other modules.

mod_tee was written to enable HTTP responses to be duplicated in email
in a particular situation (User wants email copy of a report).  It works for
that, but would take more work and testing to realise its potential as a
more general-purpose module.  If you think it might meet your needs,
try it and see!

-- 
Nick Kew

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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 and mod_rewrite for Remote_Addr
parameter but if the above try is failing this one should be failing too
since practically both are checking the same variable.

Igor

On Thu, May 6, 2010 at 6:09 AM, Priya Vadlakonda (Contractor) <
priya.vadlako...@ucop.edu> wrote:

>  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 across our Apache Web
> Servers.
>
>
>
> So, we have Apache as a proxy server that sits behind the firewall and this
> is the second entry point.
>
>
>
> The problem is I would need to set up a rewrite rule in Apache that diverts
> user to a web page depending on the original IP address of the client.
>
>
>
> We run Apache v2 and use {X-Forwarded-For}i feature that enables us to
> record the IP address of the client in the access log.
>
>
>
> In the access log I get both  the F5 proxy IP and also the original client
> IP.
>
>
>
> wsad...@dolores:/etc/apache2> rpm -qa | grep apache2
>
> apache2-2.0.49-27.38
>
> apache2-worker-2.0.49-27.38
>
>
>
> Now the condition and rule
>
>
>
> As soon as the client hits the F5 and the request is sent to Apache, I need
> Apache to make a decision by getting the actual client IP and routing to the
> appropriate web page.
>
>
>
> Say if the user is accessing a URI /* and the request is coming from within
> 128.48.0.0/16 or ucop.edu domain
>
>
>
> I need users to get to https://sseqa.ucop.edu/*
>
>
>
> For any other client IP requesting the same URI, Apache should make a
> decision to re route the request to a different site https://
>
>
>
> How do I do that?
>
>
>
> Any support is appreciated.
>
>
>
> I tried several ways to establish this but each time it fails. I don’t have
> the failure logs for one particular attempt.
>
>
>
> %{REMOTE_ADDR}
>
> %{HTTP:X-FORWARDED-FOR}
>
> %{REMOTE_HOST}  - When trying for a domain based redirect
>
>
>
> Thanks
>
> Priya
>
>
>
>
>


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 Cicimov 
To: users@httpd.apache.org 
Sent: Wed May 05 18:27:11 2010
Subject: Re: [us...@httpd] IP based redirect with mod_rewrite 


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 and mod_rewrite for Remote_Addr parameter 
but if the above try is failing this one should be failing too since 
practically both are checking the same variable.

Igor 


On Thu, May 6, 2010 at 6:09 AM, Priya Vadlakonda (Contractor) 
 wrote:


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 across our Apache 
Web Servers.

 

So, we have Apache as a proxy server that sits behind the firewall and 
this is the second entry point.

 

The problem is I would need to set up a rewrite rule in Apache that 
diverts user to a web page depending on the original IP address of the client.

 

We run Apache v2 and use {X-Forwarded-For}i feature that enables us to 
record the IP address of the client in the access log.

 

In the access log I get both  the F5 proxy IP and also the original 
client IP.

 

wsad...@dolores:/etc/apache2> rpm -qa | grep apache2

apache2-2.0.49-27.38

apache2-worker-2.0.49-27.38

 

Now the condition and rule

 

As soon as the client hits the F5 and the request is sent to Apache, I 
need Apache to make a decision by getting the actual client IP and routing to 
the appropriate web page.

 

Say if the user is accessing a URI /* and the request is coming from 
within 128.48.0.0/16 or ucop.edu domain

 

I need users to get to https://sseqa.ucop.edu/* 

 

For any other client IP requesting the same URI, Apache should make a 
decision to re route the request to a different site https://

 

How do I do that?

 

Any support is appreciated.

 

I tried several ways to establish this but each time it fails. I don’t 
have the failure logs for one particular attempt.

 

%{REMOTE_ADDR}  

%{HTTP:X-FORWARDED-FOR}

%{REMOTE_HOST}  - When trying for a domain based redirect

 

Thanks

Priya

 

 




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 (Contractor) <
priya.vadlako...@ucop.edu> wrote:

> 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 Cicimov
> *To*: users@httpd.apache.org
> *Sent*: Wed May 05 18:27:11 2010
> *Subject*: Re: [us...@httpd] IP based redirect with mod_rewrite
> 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 and mod_rewrite for Remote_Addr
> parameter but if the above try is failing this one should be failing too
> since practically both are checking the same variable.
>
> Igor
>
> On Thu, May 6, 2010 at 6:09 AM, Priya Vadlakonda (Contractor) <
> priya.vadlako...@ucop.edu> wrote:
>
>>  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 across our Apache Web
>> Servers.
>>
>>
>>
>> So, we have Apache as a proxy server that sits behind the firewall and
>> this is the second entry point.
>>
>>
>>
>> The problem is I would need to set up a rewrite rule in Apache that
>> diverts user to a web page depending on the original IP address of the
>> client.
>>
>>
>>
>> We run Apache v2 and use {X-Forwarded-For}i feature that enables us to
>> record the IP address of the client in the access log.
>>
>>
>>
>> In the access log I get both  the F5 proxy IP and also the original client
>> IP.
>>
>>
>>
>> wsad...@dolores:/etc/apache2> rpm -qa | grep apache2
>>
>> apache2-2.0.49-27.38
>>
>> apache2-worker-2.0.49-27.38
>>
>>
>>
>> Now the condition and rule
>>
>>
>>
>> As soon as the client hits the F5 and the request is sent to Apache, I
>> need Apache to make a decision by getting the actual client IP and routing
>> to the appropriate web page.
>>
>>
>>
>> Say if the user is accessing a URI /* and the request is coming from
>> within 128.48.0.0/16 or ucop.edu domain
>>
>>
>>
>> I need users to get to https://sseqa.ucop.edu/*
>>
>>
>>
>> For any other client IP requesting the same URI, Apache should make a
>> decision to re route the request to a different site https://
>>
>>
>>
>> How do I do that?
>>
>>
>>
>> Any support is appreciated.
>>
>>
>>
>> I tried several ways to establish this but each time it fails. I don’t
>> have the failure logs for one particular attempt.
>>
>>
>>
>> %{REMOTE_ADDR}
>>
>> %{HTTP:X-FORWARDED-FOR}
>>
>> %{REMOTE_HOST}  - When trying for a domain based redirect
>>
>>
>>
>> Thanks
>>
>> Priya
>>
>>
>>
>>
>>
>
>


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 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 (Contractor) <
> priya.vadlako...@ucop.edu> wrote:
>
>>  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 Cicimov
>> *To*: users@httpd.apache.org
>> *Sent*: Wed May 05 18:27:11 2010
>> *Subject*: Re: [us...@httpd] IP based redirect with mod_rewrite
>> 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 and mod_rewrite for Remote_Addr
>> parameter but if the above try is failing this one should be failing too
>> since practically both are checking the same variable.
>>
>> Igor
>>
>> On Thu, May 6, 2010 at 6:09 AM, Priya Vadlakonda (Contractor) <
>> priya.vadlako...@ucop.edu> wrote:
>>
>>>  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 across our Apache
>>> Web Servers.
>>>
>>>
>>>
>>> So, we have Apache as a proxy server that sits behind the firewall and
>>> this is the second entry point.
>>>
>>>
>>>
>>> The problem is I would need to set up a rewrite rule in Apache that
>>> diverts user to a web page depending on the original IP address of the
>>> client.
>>>
>>>
>>>
>>> We run Apache v2 and use {X-Forwarded-For}i feature that enables us to
>>> record the IP address of the client in the access log.
>>>
>>>
>>>
>>> In the access log I get both  the F5 proxy IP and also the original
>>> client IP.
>>>
>>>
>>>
>>> wsad...@dolores:/etc/apache2> rpm -qa | grep apache2
>>>
>>> apache2-2.0.49-27.38
>>>
>>> apache2-worker-2.0.49-27.38
>>>
>>>
>>>
>>> Now the condition and rule
>>>
>>>
>>>
>>> As soon as the client hits the F5 and the request is sent to Apache, I
>>> need Apache to make a decision by getting the actual client IP and routing
>>> to the appropriate web page.
>>>
>>>
>>>
>>> Say if the user is accessing a URI /* and the request is coming from
>>> within 128.48.0.0/16 or ucop.edu domain
>>>
>>>
>>>
>>> I need users to get to https://sseqa.ucop.edu/*
>>>
>>>
>>>
>>> For any other client IP requesting the same URI, Apache should make a
>>> decision to re route the request to a different site https://
>>>
>>>
>>>
>>> How do I do that?
>>>
>>>
>>>
>>> Any support is appreciated.
>>>
>>>
>>>
>>> I tried several ways to establish this but each time it fails. I don’t
>>> have the failure logs for one particular attempt.
>>>
>>>
>>>
>>> %{REMOTE_ADDR}
>>>
>>> %{HTTP:X-FORWARDED-FOR}
>>>
>>> %{REMOTE_HOST}  - When trying for a domain based redirect
>>>
>>>
>>>
>>> Thanks
>>>
>>> Priya
>>>
>>>
>>>
>>>
>>>
>>
>>
>


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 Cicimov 
To: users@httpd.apache.org 
Sent: Wed May 05 18:54:46 2010
Subject: Re: [us...@httpd] IP based redirect with mod_rewrite 


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 (Contractor) 
 wrote:


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 Cicimov 
To: users@httpd.apache.org 
Sent: Wed May 05 18:27:11 2010
Subject: Re: [us...@httpd] IP based redirect with mod_rewrite 

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 and mod_rewrite for Remote_Addr 
parameter but if the above try is failing this one should be failing too since 
practically both are checking the same variable.

Igor 


On Thu, May 6, 2010 at 6:09 AM, Priya Vadlakonda (Contractor) 
 wrote:


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 across our 
Apache Web Servers.

 

So, we have Apache as a proxy server that sits behind the 
firewall and this is the second entry point.

 

The problem is I would need to set up a rewrite rule in Apache 
that diverts user to a web page depending on the original IP address of the 
client.

 

We run Apache v2 and use {X-Forwarded-For}i feature that 
enables us to record the IP address of the client in the access log.

 

In the access log I get both  the F5 proxy IP and also the 
original client IP.

 

wsad...@dolores:/etc/apache2> rpm -qa | grep apache2

apache2-2.0.49-27.38

apache2-worker-2.0.49-27.38

 

Now the condition and rule

 

As soon as the client hits the F5 and the request is sent to 
Apache, I need Apache to make a decision by getting the actual client IP and 
routing to the appropriate web page.

 

Say if the user is accessing a URI /* and the request is coming 
from within 128.48.0.0/16 or ucop.edu domain

 

I need users to get to https://sseqa.ucop.edu/* 

 

For any other client IP requesting the same URI, Apache should 
make a decision to re route the request to a different site https://

 

How do I do that?

 

Any support is appreciated.

 

I tried several ways to establish this but each time it fails. 
I don’t have the failure logs for one particular attempt.

 

%{REMOTE_ADDR}  

%{HTTP:X-FORWARDED-FOR}

%{REMOTE_HOST}  - When trying for a domain based redirect

 

Thanks

Priya

 

 





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 logging feature? Is that so flexible
that logging could be done to an email recipient when specific
criterias are satisfied?

Could you ellaborate?

Jarl


-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org