Apache 2

2007-05-30 Thread Christoph Seitz

Hallo,

ich habe auf meinem Mac den Apache 2- Webserver installiert, nur  
leider ein bisschen verkorgst Habe mich beim prefix vertan. Gib  
es ne Möglichkeit die Dateien nun wieder zu entfehrnen außer von hand??

mfg
Christoph
--
   Apache HTTP Server Mailing List users-de
 unsubscribe-Anfragen an [EMAIL PROTECTED]
  sonstige Anfragen an [EMAIL PROTECTED]
--



Apache 2

2007-05-30 Thread Christoph Seitz

Hallo,

ich habe auf meinem Mac den Apache 2- Webserver installiert, nur  
leider ein bisschen verkorgst Habe mich beim prefix vertan. Gib  
es ne Möglichkeit die Dateien nun wieder zu entfehrnen außer von hand??

mfg
Christoph

--
   Apache HTTP Server Mailing List users-de
 unsubscribe-Anfragen an [EMAIL PROTECTED]
  sonstige Anfragen an [EMAIL PROTECTED]
--



Re: Apache 2

2007-05-30 Thread Paul Puschmann
On Wed, May 30, 2007 at 07:58:33PM +0800, Christoph Seitz wrote:
 Hallo,
 
 ich habe auf meinem Mac den Apache 2- Webserver installiert, nur  
 leider ein bisschen verkorgst Habe mich beim prefix vertan. Gib  
 es ne Möglichkeit die Dateien nun wieder zu entfehrnen außer von hand??
 mfg
 Christoph

installiert = configure, make, maki install ?

Evtl. kannst du den Apache per make uninstall (o.ä.) entfernen, kommt
auf dein Makefile an.

Ansonsten sollte(TM) ja nicht so viel passieren wenn du ihn per Hand
entfernst und dann einfach nochmal neu installierst.

Paul
-- 
: Bitte einen Realname benutzen, unter dem Zitat antworten
: und einfache Text-Mails senden (kein HTML).
: Danke.


signature.asc
Description: Digital signature


Re: Apache 2

2007-05-30 Thread Christoph Seitz

Hallo,

ja ich habe configure make und make install gemacht. Make unistall  
gibt es leider nicht(auch keine ähnlichen). Ich war nur auf der  
Suche, ob es eine andere Lösung gibt. Ich bin aber leider noch nicht  
fündig geworden so habe ich es einfach per Hand gemacht. Aber  
trotzdem danke.


Christoph
Am 30.05.2007 um 21:40 schrieb Paul Puschmann:


On Wed, May 30, 2007 at 07:58:33PM +0800, Christoph Seitz wrote:

Hallo,

ich habe auf meinem Mac den Apache 2- Webserver installiert, nur
leider ein bisschen verkorgst Habe mich beim prefix vertan. Gib
es ne Möglichkeit die Dateien nun wieder zu entfehrnen außer von  
hand??

mfg
Christoph


installiert = configure, make, maki install ?

Evtl. kannst du den Apache per make uninstall (o.ä.) entfernen, kommt
auf dein Makefile an.

Ansonsten sollte(TM) ja nicht so viel passieren wenn du ihn per Hand
entfernst und dann einfach nochmal neu installierst.

Paul
--
: Bitte einen Realname benutzen, unter dem Zitat antworten
: und einfache Text-Mails senden (kein HTML).
: Danke.



--
   Apache HTTP Server Mailing List users-de
 unsubscribe-Anfragen an [EMAIL PROTECTED]
  sonstige Anfragen an [EMAIL PROTECTED]
--



Re: [EMAIL PROTECTED] Is Win32 Apache ready for prime time?

2007-05-30 Thread Foo JH




I'm running it with both PHP5 and mod_perl, without any problems, and 
I am using the binary (no recompile here, no M$ visual studio)

A success story! Perhaps you can share with me your setup process:
1. Are you installing from WAMP, or via direct binary download from Apache?
2. Are you using the MSI install from ActiveState + modperl 2 via the 
theoryx5 ppd for Apache 2.2?

3. Any other steps you took (special httpd.conf?) will be helpful

To paint the picture correctly: I have no issues running modperl + 
Apache2.2 + Windows XP running 99% of the time. It's that 1% that panics 
the clients.


Thanks.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Access problem with https port

2007-05-30 Thread renu tiwari
Hi,
   
  I have installed Apache 2.0.58 on RHEL 5.0.(Red Hat Linux Enterprise edition 
5.0)
  Also i have configured it with SSL.
   
  I am able to access the webserver page with HTTP port but am not able to 
access with  HTTPS port.
   
  I have checked the logs, i am getting this message 
  Apache/2.0.58 (Unix) mod_ssl/2.0.58 OpenSSL/0.9.8c configured -- resuming 
normal operations, also the process are starting properly.
   
  On RHEL 5.0 , Apache 2.2.3 is a included software, by default.
   
  Also i have tried installing Apache 2.2.3 on RHEL 5, but in that case even 
http port is not working.
   
  Is that becoz Apache 2.2.3 is already installed on this machine , there could 
be any conflict?
   
  Any suggestion towards this,will be highly appreciated.
  Kindly reply.
   
  Thanks,
  Renu
   
   

 
-
TV dinner still cooling?
Check out Tonight's Picks on Yahoo! TV.

Re: [EMAIL PROTECTED] Is Win32 Apache ready for prime time?

2007-05-30 Thread Sam Lavitt

Foo JH wrote:





I'm running it with both PHP5 and mod_perl, without any problems, and 
I am using the binary (no recompile here, no M$ visual studio)


A success story! Perhaps you can share with me your setup process:
1. Are you installing from WAMP, or via direct binary download from 
Apache?
2. Are you using the MSI install from ActiveState + modperl 2 via the 
theoryx5 ppd for Apache 2.2?

3. Any other steps you took (special httpd.conf?) will be helpful

To paint the picture correctly: I have no issues running modperl + 
Apache2.2 + Windows XP running 99% of the time. It's that 1% that 
panics the clients.


Thanks.

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Direct DL from apache, then using PHP5 (I was lazy and instead of 
compiling the module myself, I downloaded from Apache Lounge).  I didn't 
use ActiveState, etc. as I already had Perl on my box from working with 
it for school, so I got mod_perl and installed it, nothing really 
complex was needed, beyond sorting out a real nightmare of which 
php.ini is the real php.ini (after the PHP5 install I had three of them 
in use, one in c:\php\php5, one in c:\windows, one in c:\windows\system32)


I had some trouble with the MySQLi php module, for some reason it 
wouldn't ever work right, but when I used the plain MySQL one, I had no 
trouble.  MySQL was installed from the latest community build available 
at that time (about a year ago) and was an uneventful install.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] KRB5 context is not updated when starting a new Apache session (using mod_auth_kerb)

2007-05-30 Thread gil ran

Hi.

I am using a Linux-From-Scratch based Linux, with OpenLdap-2.3.27,
Heimdal-0.7.2, Apache-httpd-2.2.4, mod_auth_kerb-5.3 and php-5.2.1.

I'm trying to use OpenLDAP (over Heimdal GSSAPI with KRB5) from
mod_php under Apache (using php's ldap_sasl_bind with GSSAPI as
mechanism - it calls lsap_sasl_interactive_bind_s). Apache is
configured to re-use processes for handling multiple sessions
(mpm_workers_module with MaxRequestsPerChild of 0). The first time my
code runs inside any given httpd process it works OK. After that it
always fails with credentials error, which points to non-existing
credentials file from the previous time.

After some digging I discovered that the problem is due to KRB5CCNAME
evironment variable changes. When a process is re-used by Apache, it
first invokes mob_auth_kerb which authenticates and sets KRB5CCNAME
environment variable. The problem is that GSSAPI already has an
existing KRB5 context (from the previous time) which already has
default_cc_name. KRB5 does not re-read the environment variable and
stays with incorrect credentials file name.

It looks as if GSSAPI is not designed to be invoked from process
handling multiple sessions, because it does not have either of:
1) A way to re-initialize the default credentials file if the
environment changes
2) A ways to destory underlying KRB5 context after the work is
completed by the previous session.

I have an ugly hackish solution that solves my problem:
In Heimdal's KRB5 cache.cc: krb5_cc_default_name() I've changed

if (context-default_cc_name == NULL)
krb5_cc_set_default_name(context, NULL);

To:


   if ((context-default_cc_name == NULL) || strcmp(context-default_cc_name, 
getenv(KRB5CCNAME)))
krb5_cc_set_default_name(context, NULL);


Which always checks the environment variables whenever default name is required.

Another solution would be to modify mod_auth_kerb, to update GSSAPI
KRB5 context when KRB5CCNAME is changed. This also looks extremely
ugly to me. I didn't try to do that, but it should solve the problem.

Yet another solution is to configure Apache to kill each process after
handling 1 request. This is extremely undesirable, and will cause
other problems for me.

What would be the proper solution for this?

Thanks,
Gil Ran.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] How to store loginformation in user specified directory?

2007-05-30 Thread ramakrishnaprasad.annasamudram

Hi,
 
We are facing a tight problem regarding a user requirement to store logfile in 
user specified directory.We are getting segmentation fault when we are starting 
apache when we try to use a log file in user defined directory(other than 
logs/).
We used fopen(),fprintf() to write the user specified file.This always gave 
segmentation fault.The one option we had regarding using ErrorLog is failing 
since httpd.conf recognises path w.r.t ServerRoot.
Did any one has done this before? Is this possible ? If so please suggest a way 
out.
 
Thanks  regards,
Ramakrishna



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Re: [EMAIL PROTECTED] Is Win32 Apache ready for prime time?

2007-05-30 Thread Mark A. Craig
I'm running Apache 2.2.4 with PHP 5 to enable my blog, and it's been 
very stable since I installed it in April.  The only beef I have is its 
tendency to keep slowly sucking RAM as the days roll by, so I've been 
resorting to restarting it on occasion to keep the usage low.  I don't 
know if it's a memory leak or just normal behavior for my situation and 
config, and I confess I haven't investigated it in any depth yet.  None 
of what you described, in any case.


Mark

Foo JH wrote:

Hey Sam,

Just to check: are you running Apache 2.2 only from the binary, w/o 
any PHP/ modperl addons?
Ummm, actually Win32 Apache 2.2 is *VERY* stable, my current server 
is running on an XP home box (so shoot me) and has been up over six 
months!  I have never seen anything such as that exit status, perhaps 
you should try to chase that down?




-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Is Win32 Apache ready for prime time?

2007-05-30 Thread Jaqui Greenlees

--- Mark A. Craig [EMAIL PROTECTED] wrote:

 I'm running Apache 2.2.4 with PHP 5 to enable my
 blog, and it's been 
 very stable since I installed it in April.  The only
 beef I have is its 
 tendency to keep slowly sucking RAM as the days roll
 by, so I've been 
 resorting to restarting it on occasion to keep the
 usage low.  I don't 
 know if it's a memory leak or just normal behavior
 for my situation and 
 config, and I confess I haven't investigated it in
 any depth yet.

AFAIK, this isn't that uncommon, with windows itself.
You may need to adjust the memory management settings
for windows to resolve this. I know a number of people
who have the memory hog effect slowing their windows
systems down even without having a server on the
system, so even if apache didn't have very good memory
management it could still be windows.

The other issue is the php scripts, they might be
using keep-alive connections, which the sql server
backend could then be sucking resources causing the
slow response times. With enough resources eaten up,
no oftware will be completely stable, so whatever is
actually eating the resources is the cause of your odd
errors.

Jaqui






  Ask a question on any topic and get answers from real people. Go to 
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Is Win32 Apache ready for prime time?

2007-05-30 Thread Octavian Rasnita
Regarding Apache 2.2 on Windows, does anyone know how can I set it for waiting 
more when trying to start or stop it?

If I do
net stop apache2.2

It tries to stop for a long time, then it gives the error that it can't be 
stopped.
But it continues to try stopping, and in the meantime I cannot start it again.

Then, sometimes I try to start it with
net start apache2.2

It tries to start, but it gives an error telling that it cannot start. However, 
it continues to try starting, and finally it really starts.

I am using a Catalyst application with mod_perl.

Thank you.

Octavian

  - Original Message - 
  From: Jess Holle 
  To: users@httpd.apache.org 
  Sent: Wednesday, May 30, 2007 8:38 AM
  Subject: Re: [EMAIL PROTECTED] Is Win32 Apache ready for prime time?


  William A. Rowe, Jr. wrote: 
morgan gangwere wrote:
  i will agree that the win32 version of apache is *godly* stable - im
running somwthing like 2.2.3 win32 - a nice stable version.
Note that 2.2.4 fixed a *number* of bugs (and introduced one into Win2000,
the flaw of resolving all clients as 0.0.0.0 - disable win32 acceptex to
work around that one).  2.2.5 will be substantially improved over 2.2.4,
as well.
  That's nice to hear.

  When will 2.2.5 see the light of day, though?

  --
  Jess Holle



Re: [EMAIL PROTECTED] Apache 2.2.3 + Logging partial requests

2007-05-30 Thread Sander Smeenk
Quoting Joshua Slive ([EMAIL PROTECTED]):

 See:
 http://wiki.apache.org/httpd/Logs/Response_Size

Nice. Thanks.

% apache2 -l | grep logio
  mod_logio.c

Will work on that then, thanks alot!

Regards,
Sander.
-- 
| Those who get too big for their britches will be exposed in the end.
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8  9BDB D463 7E41 08CE C94D

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] My Question

2007-05-30 Thread Ravi Prakash
An apache module running on one machine, wants to communicate with another
module running under apache on remote machine.The communication should be
authenticated by using certificates on both sides. 

 

Does mod_ssl plays any role to authenticate the module certificates, without
requiring any concerning API implementation from the user? if yes ,How ?.
Remember I have provided certificates to each modules on both sides to
authenticate.

 

Kindly , Provide the details , How can I Authenticate two remote modules
running on different servers , if mod_ssl is not going to help me. ?

 

 

Best Regards

 

Ravi 



Re: [EMAIL PROTECTED] WAMP stack

2007-05-30 Thread Nat Colley
Thank you for responding. There does not appear to be any such file on 
apache.org. Did you mean apacheconf, which appears to be a separate website 
selling a gui for apache? Forgive me if I am being too literal, but I don't 
know what is slang and what is specifcally required. If you tell me where to 
look I will gladly go there. Thx. 

morgan gangwere [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nat Colley wrote:
   I got a wamp stack from a developer, and I have not been able to make 
 vhosts work. While recognizing it is entirely possible I did something wrong, 
 I notice that in this configuration he has changed the files the web is 
 served content from htdocs to something else, and further aliased that to yet 
 another directory where the applications are. So mydomain1 and mydomain2 both 
 go to the same page, and mydomain1/app2 comes up even though app2 is supposed 
 to be the content for mydomain2. I asked about this and he is being unusually 
 slow about responding. So here is my question: Can this webserver 
 configuration, by itself, keep vhosts from working? Thx. 
read the docs on apache.org under the apache.conf helpers - you should
be able to find what you need (did you already do this? if so, pardon my
ignorance)

- --
Just a Thought
Morgan Gangwere

For those who want my PGP key:
http://pengunassasin.kicks-ass.org/pgpKey.html

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGXOmmCF9T/dUsmAgRAlazAJ971Fnreu5TzuvLxWaLi8TMhQfPLgCggmEN
jGb2RktRI3iTm/uhlMNaFDI=
=LuoQ
-END PGP SIGNATURE-

-
The official User-To-User support forum of the Apache HTTP Server Project.
See  for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
-
Need Mail bonding?
Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.

RE: [EMAIL PROTECTED] My Question

2007-05-30 Thread Boyle Owen
 -Original Message-
 From: Ravi Prakash [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 30, 2007 2:07 PM
 To: users@httpd.apache.org
 Subject: [EMAIL PROTECTED] My Question
 
 An apache module running on one machine, wants to communicate 
 with another module running under apache on remote 
 machine.The communication should be authenticated by using 
 certificates on both sides. 
 
  
 
 Does mod_ssl plays any role to authenticate the module 
 certificates, without requiring any concerning API 
 implementation from the user? if yes ,How ?. Remember I have 
 provided certificates to each modules on both sides to authenticate.

By an amazing coincidence, another poster asked this very question just
a few days ago! You can find the answer here:

http://marc.info/?l=apache-httpd-usersm=118008898312318w=2

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

 
  
 
 Kindly , Provide the details , How can I Authenticate two 
 remote modules running on different servers , if mod_ssl is 
 not going to help me. ?
 
  
 
  
 
 Best Regards
 
  
 
 Ravi 
 

 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] TRACE and Apache 2.x

2007-05-30 Thread Bhagwati Gupta
I was having similar problem with the Apache 2.2.3-4 version and finally 
figured out that the TRACE option must be inside the virtual host 
configuration file (and not apache2.conf). Hope it helps.


Bhagwati

Foster, Stephen (ASPIRE) wrote:

We never got this to work properly.We ended up moving to 2.0.55 and using the 
traceenable feature:
 
http://httpd.apache.org/docs/2.0/mod/core.html#traceenable
 


-Original Message-
From: Jeroen Vriezen [mailto:[EMAIL PROTECTED]
Sent: 29 May 2007 09:57
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] TRACE and Apache 2.x


Hello,

Currently we are using Apache 2.0.46. On the 1.3.x version we always used the 
following mod_rewrite rule to disable the TRACE option:

RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]

When using these rules on Apache 2.0.46, TRACE is still possible. Beside the fact 
that the whole TRACK  TRACE
security issue is not that interesting, I still wonder how TRACE can be 
disabled in Apache 2.0.46. I've also tried the TraceEnable option but that
options seems to be supported in 2.0.55 and later only.

Hope someone can point me in the right direction.

Kind Regards,

Jeroen.




-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] question

2007-05-30 Thread Ravi Prakash
 Hi,

 

 

 

 I want certificate based authentication among remotely located apache 

 modules just like client/server authentication. Does mod_ssl provides 

 any mechanism to do it?

 

 If no, how can I authenticate a module to a remote module ?

 

 

 

 Thanks

 

 

 

 Ravi

 

 



RE: [EMAIL PROTECTED] question

2007-05-30 Thread Luis Moreira (ESI-GSQP)
Ravi,

 

Are you looking at the answers that are being posted ?

Are they getting thrown to your junk mail by accident?

 

I think this is the third time in a very short time I see
this question.

 

Luis

 

From: Ravi Prakash [mailto:] 
Sent: quarta-feira, 30 de Maio de 2007 14:20
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] question

 

 Hi,

 

 

 

 I want certificate based authentication among remotely located apache 

 modules just like client/server authentication. Does mod_ssl provides 

 any mechanism to do it?

 

 If no, how can I authenticate a module to a remote module ?

 

 

 

 Thanks

 

 

 

 Ravi

 

 



Re: [EMAIL PROTECTED] How to store loginformation in user specified directory?

2007-05-30 Thread Joshua Slive

On 5/30/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:



Hi,

We are facing a tight problem regarding a user  requirement to store logfile in 
user specified directory.We are getting  segmentation fault when we are 
starting apache when we try to use a log file in  user defined directory(other 
than logs/).
We used fopen(),fprintf() to write the user  specified file.This always gave 
segmentation fault.The one option we had  regarding using ErrorLog is failing 
since httpd.conf recognises path w.r.t  ServerRoot.
Did any one has done this before? Is this possible  ? If so please suggest a 
way out.



That doesn't really make any sense to me. Apache will happily write
the access and error logs wherever you tell it, if the permissions are
correct and there is sufficient space. Have you tried starting apache
under strace to see what syscall is failing? Have you tried debugging
the core dump?

I also don't understand what you mean when you say you used
fopen(),fprintf(). Why do you need to use these? It is apache that
controls the log files directly.

Finally, you should heed the warning in the docs that logs shouldn't
be written anywhere that root does not exclusively control. Otherwise,
whatever user controls the log directory can almost certainly gain
root.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] WAMP stack

2007-05-30 Thread Joshua Slive

On 5/29/07, Nat Colley [EMAIL PROTECTED] wrote:


I got a wamp stack from a developer, and I have not been able to make vhosts
work. While recognizing it is entirely possible I did something wrong, I
notice that in this configuration he has changed the files the web is served
content from htdocs to something else, and further aliased that to yet
another directory where the applications are. So mydomain1 and mydomain2
both go to the same page, and mydomain1/app2 comes up even though app2 is
supposed to be the content for mydomain2. I asked about this and he is being
unusually slow about responding. So here is my question: Can this webserver
configuration, by itself, keep vhosts from working? Thx.


I find this question relatively hard to decipher.

Virtual hosts will work if they are configured correctly. But you
haven't given us any idea about how your vhosts are configured.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] question

2007-05-30 Thread Joshua Slive

On 5/30/07, Ravi Prakash [EMAIL PROTECTED] wrote:



 I want certificate based authentication among remotely located apache

 modules just like client/server authentication. Does mod_ssl provides

 any mechanism to do it?



 If no, how can I authenticate a module to a remote module ?


Apache has no such thing as remote module(s). Please be more
specific about what you are trying to do.

(One guess is that you are using a reverse proxy to send requests from
one apache instance to another. In that case, yes, you should be able
to use certificate auth between the two servers. See the SSLProxy*
directives. But I've never done this myself so I don't know the
details.)

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] WAMP stack

2007-05-30 Thread Jaqui Greenlees

--- Joshua Slive [EMAIL PROTECTED] wrote:

 On 5/29/07, Nat Colley [EMAIL PROTECTED] wrote:
 
  I got a wamp stack from a developer, and I have
 not been able to make vhosts
  work. While recognizing it is entirely possible I
 did something wrong, I
  notice that in this configuration he has changed
 the files the web is served
  content from htdocs to something else, and further
 aliased that to yet
  another directory where the applications are. So
 mydomain1 and mydomain2
  both go to the same page, and mydomain1/app2 comes
 up even though app2 is
  supposed to be the content for mydomain2. I asked
 about this and he is being
  unusually slow about responding. So here is my
 question: Can this webserver
  configuration, by itself, keep vhosts from
 working? Thx.
 
 I find this question relatively hard to decipher.
 
 Virtual hosts will work if they are configured
 correctly. But you
 haven't given us any idea about how your vhosts are
 configured.
 
 Joshua.
 

Yes and no Joshua,
a friend of mine has 3 domains that his hosting
service has all mapped to the same virtual host, which
seems to be the main issue of the op.
I probably caught the question because of my friends
issue. :)
Until Nat, can get us the vhost configuration we can't
really answer what is wrong, since there are many ways
that the config could wind up pointing to the wrong
vhost.

Jaqui



  Get news delivered with the All new Yahoo! Mail.  Enjoy RSS feeds right 
on your Mail page. Start today at http://mrd.mail.yahoo.com/try_beta?.intl=ca

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] question

2007-05-30 Thread Ravi Prakash

Hi,

Details:

1. I have to use two apache web servers on two machines having some modules
in each of them.
2. Any of the apache module should be able to communicate with the apache
module of another machine.
3. I want ,when modules interact to each other on two machines , they could
use certificate based authentication to identify each other.


That is the work I want to do.

Certainly U people will help me.

Thanks

Ravi



 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Slive
Sent: Wednesday, May 30, 2007 7:36 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] question

On 5/30/07, Ravi Prakash [EMAIL PROTECTED] wrote:


  I want certificate based authentication among remotely located apache

  modules just like client/server authentication. Does mod_ssl provides

  any mechanism to do it?



  If no, how can I authenticate a module to a remote module ?

Apache has no such thing as remote module(s). Please be more
specific about what you are trying to do.

(One guess is that you are using a reverse proxy to send requests from
one apache instance to another. In that case, yes, you should be able
to use certificate auth between the two servers. See the SSLProxy*
directives. But I've never done this myself so I don't know the
details.)

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] question

2007-05-30 Thread Joshua Slive

On 5/30/07, Ravi Prakash [EMAIL PROTECTED] wrote:


Hi,

Details:

1. I have to use two apache web servers on two machines having some modules
in each of them.
2. Any of the apache module should be able to communicate with the apache
module of another machine.
3. I want ,when modules interact to each other on two machines , they could
use certificate based authentication to identify each other.


I'm starting to get irritated here. Either provide us with the details
or go hire a consultant.

How do you expect the modules to communicate? What kind of modules are
we talking about? Did I or did I not guess right that you are talking
about using a reverse proxy and HTTP for the communicating between the
servers? If I did guess right, have you read the SSL docs and
configured the SSLProxy* directives as written there?

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond

2007-05-30 Thread thomas Armstrong

Hi.

I'm trying to create an additional Rewrite Rule appart from those
created by default by my application (in this case, Wordpress). The
extra line (within '.htaccess') is:
---
RewriteRule ^faq index.php?page_id=119 [R,L]
---

However, I want users see 'http://myblog.com/faq' and not
'http://myblog.com/index.php?page_id=379'. This line works with other
Apache configurations, but not with mine. Any suggestion?

.htaccess
-
RewriteEngine On
RewriteBase /
DirectoryIndex index.php

# MY OWN REWRITE RULES
RewriteRule ^faq index.php?page_id=119 [R,L]

# Rewrite www.domain.com to domain.com
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule ^(.*) http://%1/$1 [R,L]

#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
--

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond

2007-05-30 Thread Vincent Bray

On 30/05/07, thomas Armstrong [EMAIL PROTECTED] wrote:

 Hi.

I'm trying to create an additional Rewrite Rule appart from those
created by default by my application (in this case, Wordpress). The
extra line (within '.htaccess') is:
---
RewriteRule ^faq index.php?page_id=119 [R,L]
---

However, I want users see 'http://myblog.com/faq' and not
'http://myblog.com/index.php?page_id=379'. This line works with other
Apache configurations, but not with mine. Any suggestion?


How exactly isn't is working? Do you see a loop? What does the error
log tell you? Are you able to edit the main server config file to
enable rewrite logging?

--
noodl

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond

2007-05-30 Thread thomas Armstrong

How exactly isn't is working?

Instead of 'http://myblog.com/faq' URL I see
'http://myblog.com/index.php?page_id=379'. The information is OK, but
I think it's an ugly URL.


Do you see a loop?

Nope


What does the error log tell you?

There's no error


Are you able to edit the main server config file to enable rewrite logging?

Yep, but I've got the same problem.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond

2007-05-30 Thread Joshua Slive

On 5/30/07, thomas Armstrong [EMAIL PROTECTED] wrote:

 How exactly isn't is working?
Instead of 'http://myblog.com/faq' URL I see
'http://myblog.com/index.php?page_id=379'. The information is OK, but
I think it's an ugly URL.


Start by replacing the [R] flag with [PT] and then see what you get.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond

2007-05-30 Thread Russ
The R flag means redirect.  You want P for proxy if you want the URL to not 
change, but this brings with it a host of other issues.

Russ
Sent wirelessly via BlackBerry from T-Mobile.  

-Original Message-
From: Vincent Bray [EMAIL PROTECTED]
Date: Wed, 30 May 2007 17:02:25 
To:users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a 
RewriteCond

On 30/05/07, thomas Armstrong [EMAIL PROTECTED] wrote:
  Hi.

 I'm trying to create an additional Rewrite Rule appart from those
 created by default by my application (in this case, Wordpress). The
 extra line (within '.htaccess') is:
 ---
 RewriteRule ^faq index.php?page_id=119 [R,L]
 ---

 However, I want users see 'http://myblog.com/faq' and not
 'http://myblog.com/index.php?page_id=379'. This line works with other
 Apache configurations, but not with mine. Any suggestion?

How exactly isn't is working? Do you see a loop? What does the error
log tell you? Are you able to edit the main server config file to
enable rewrite logging?

-- 
noodl

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond

2007-05-30 Thread Vincent Bray

On 30/05/07, Russ [EMAIL PROTECTED] wrote:

The R flag means redirect.  You want P for proxy if you want the URL to not 
change, but this brings with it a host of other issues.


Russ, you're correct regarding [R] but incorrect pertaining to [P] in
this case. He's rewriting to a local script so there's no need for
proxying. And as he requested, the client won't see the change.

However, I suspect he'll see a loop as this is in .htaccess and
further down the ruleset '.' is rewritten to index.php again.

Thomas, if you get a loop, add this line before your custom rule:
RewriteCond %{REQUEST_URI} !index.php

--
noodl

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond

2007-05-30 Thread Russ
I'm a bit confused.  R means redirect, meaning the server sends the 301 or 302 
header to the browser.  In either case, the browse will redirect to the new URL 
and that's what will show in the address bar.  How evactly do you make things 
redirect without proxying and without a change in the address bar?  

Russ
Sent wirelessly via BlackBerry from T-Mobile.  

-Original Message-
From: Vincent Bray [EMAIL PROTECTED]
Date: Wed, 30 May 2007 17:33:47 
To:users@httpd.apache.org, [EMAIL PROTECTED]
Subject: Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a 
RewriteCond

On 30/05/07, Russ [EMAIL PROTECTED] wrote:
 The R flag means redirect.  You want P for proxy if you want the URL to not 
 change, but this brings with it a host of other issues.

Russ, you're correct regarding [R] but incorrect pertaining to [P] in
this case. He's rewriting to a local script so there's no need for
proxying. And as he requested, the client won't see the change.

However, I suspect he'll see a loop as this is in .htaccess and
further down the ruleset '.' is rewritten to index.php again.

Thomas, if you get a loop, add this line before your custom rule:
RewriteCond %{REQUEST_URI} !index.php

-- 
noodl

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond

2007-05-30 Thread Vincent Bray

On 30/05/07, Russ [EMAIL PROTECTED] wrote:

I'm a bit confused.  R means redirect, meaning the server sends the 301 or 302 
header to the browser.  In either case, the browse will redirect to the new URL 
and that's what will show in the address bar.  How evactly do you make things 
redirect without proxying and without a change in the address bar?


Do as Joshua pointed out. First try without any flags at all, and in
case that doesn't work try with [PT].

I expect you won't need any flags.

--
noodl

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] RewriteMap questions

2007-05-30 Thread Josh Trutwin
I have been asked to create rewrite rules for sites that use an old
page naming scheme to a new one.  The first attempt was to create
a .htaccess file that had a rewrite rule for every page, something
like:

RewriteRule ^new_page_name.php$ /sitepages/pid123.php [L,QSA,NC]

Works ok for small sites, but some of them have thousands of pages
which translates to thousands of RewriteRules which of course bogs
down the apache server.

I was going to look at creating a rewritemap using a .db hash file -
my main concern is that we have some existing URL's that map to
actual files on the system.  My thought was to do something like this:

RewriteMap existing  prg:/path/to/file/map.pl
RewriteMap redirects dbm:/path/to/file/map.db

RewriteRule ^/(.*) ${existing:$1} [L,QSA]
RewriteRule ^/(.*) ${redirects:$1} [L,QSA]

My thought being that the first map is a program that tests if the
URL matches an actual file/dir in the doc root, returning NULL if it
doesn't.  If it matches then processing would stop and the first
RewriteRule would work.  But if it doesn't match, does the second
RewriteRule even get executed?  If not, do I then have to resort to a
single map that is a perl program that first checks if the URL maps
to a page and if not manually reads the map file?

Also, curious if anyone has a PhP example of a map program, I'm a
little more proficient in that - or even python...

Thanks,

Josh

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] RewriteMap questions

2007-05-30 Thread Joshua Slive

On 5/30/07, Josh Trutwin [EMAIL PROTECTED] wrote:

I have been asked to create rewrite rules for sites that use an old
page naming scheme to a new one.  The first attempt was to create
a .htaccess file that had a rewrite rule for every page, something
like:

RewriteRule ^new_page_name.php$ /sitepages/pid123.php [L,QSA,NC]

Works ok for small sites, but some of them have thousands of pages
which translates to thousands of RewriteRules which of course bogs
down the apache server.

I was going to look at creating a rewritemap using a .db hash file -
my main concern is that we have some existing URL's that map to
actual files on the system.  My thought was to do something like this:

RewriteMap existing  prg:/path/to/file/map.pl
RewriteMap redirects dbm:/path/to/file/map.db

RewriteRule ^/(.*) ${existing:$1} [L,QSA]
RewriteRule ^/(.*) ${redirects:$1} [L,QSA]

My thought being that the first map is a program that tests if the
URL matches an actual file/dir in the doc root, returning NULL if it
doesn't.  If it matches then processing would stop and the first
RewriteRule would work.  But if it doesn't match, does the second
RewriteRule even get executed?  If not, do I then have to resort to a
single map that is a perl program that first checks if the URL maps
to a page and if not manually reads the map file?

Also, curious if anyone has a PhP example of a map program, I'm a
little more proficient in that - or even python...


Don't use a map program if you can avoid it. The dbm maps are safer and faster.

What you want is easy enough to get, using something like

RewriteCond ${existing:$1|NOT-FOUND} =NOT-FOUND
RewriteRule ^/(.*) ${redirects:$1} [L,QSA]

You could also, if you want, simply use a RewriteCond to test if the
file being requested exists on the filesystem. See the -d and -f
tests.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Undefined symbol ap_run_http_method

2007-05-30 Thread Malladi, Sasikanth
All,

I'm trying to configure my Apache webserver with a Web Authentication
system.

When I try to start up my server, I'm getting the following error:

[EMAIL PROTECTED]:/usr/local/apache2/bin$ ./apachectl start

httpd: Syntax error on line 39 of /usr/local/apache2/conf/httpd.conf:
Cannot load /export/opt/SiteMinder/webagent5QMR7/lib/libmod_sm20.so
into server: ld.so.1: httpd: fatal: relocation error: file /export/
opt/
SiteMinder/webagent5QMR7/lib/libmod_sm20.so: symbol
ap_run_http_method: referenced symbol not found

I initially thought it might an LD_LIBRARY_PATH issue but an ldd on /
export/opt/SiteMinder/webagent5QMR7/lib/libmod_sm20.so told me that
everything is well defined.

When I ran nm on this file and grepped for the missing symbol, it
showed up:

[EMAIL PROTECTED]:/usr/local/apache2/bin$ /usr/xpg4/bin/nm   /export/
opt/SiteMinder/webagent5QMR7/lib/libmod_sm20.so | grep http
[5799]  | 0|   0|FUNC |GLOB |0|UNDEF  |
ap_run_http_method

Hence there is an undefined symbol in this file.

How do I fix this?

Thanks in advance,
Sashi 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] RewriteMap questions

2007-05-30 Thread Josh Trutwin
On Wed, 30 May 2007 15:06:27 -0400
Joshua Slive [EMAIL PROTECTED] wrote:

 On 5/30/07, Josh Trutwin [EMAIL PROTECTED] wrote:
  I have been asked to create rewrite rules for sites that use an
  old page naming scheme to a new one.  The first attempt was to
  create a .htaccess file that had a rewrite rule for every page,
  something like:
 
  RewriteRule ^new_page_name.php$ /sitepages/pid123.php [L,QSA,NC]
 
  Works ok for small sites, but some of them have thousands of pages
  which translates to thousands of RewriteRules which of course bogs
  down the apache server.
 
  I was going to look at creating a rewritemap using a .db hash
  file - my main concern is that we have some existing URL's that
  map to actual files on the system.  My thought was to do
  something like this:
 
  RewriteMap existing  prg:/path/to/file/map.pl
  RewriteMap redirects dbm:/path/to/file/map.db
 
  RewriteRule ^/(.*) ${existing:$1} [L,QSA]
  RewriteRule ^/(.*) ${redirects:$1} [L,QSA]
 
  My thought being that the first map is a program that tests if the
  URL matches an actual file/dir in the doc root, returning NULL if
  it doesn't.  If it matches then processing would stop and the
  first RewriteRule would work.  But if it doesn't match, does the
  second RewriteRule even get executed?  If not, do I then have to
  resort to a single map that is a perl program that first checks
  if the URL maps to a page and if not manually reads the map file?
 
  Also, curious if anyone has a PhP example of a map program, I'm a
  little more proficient in that - or even python...
 
 Don't use a map program if you can avoid it. The dbm maps are safer
 and faster.
 
 What you want is easy enough to get, using something like
 
 RewriteCond ${existing:$1|NOT-FOUND} =NOT-FOUND
 RewriteRule ^/(.*) ${redirects:$1} [L,QSA]
 
 You could also, if you want, simply use a RewriteCond to test if the
 file being requested exists on the filesystem. See the -d and -f
 tests.

Thanks - great suggestions - now my next issue.  This is all done in
VirtualHosts, I noticed RewriteMap cannot be declared in a .htaccess
so I put it in the VirtualHost like so:

VirtualHost *:80
VirtualDocumentRoot /httpd/%0/html
RewriteMap rewriter dbm:/httpd/%0/html/rewrite_map.db 
/VirtualHost

The RewriteMap doesn't seem to replace the %0 with the directory name
- so I have a directory /httpd/josh.test.com/html which has
rewrite_map.db.pag and rewrite_map.db.dir.  I created a .htaccess in
josh.test.com/html:

RewriteRule ^(.*) ${rewriter:$1} [R]

When attempting to access the site though I get a No such file or
directory error on /httpd/%0/html/rewrite_map.db.pag

Can I declare the RewriteMap once as above to map to each
VirtualHost's directory?

Thanks!  Feels like this is getting a lot closer.

Josh

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] RewriteMap questions

2007-05-30 Thread Joshua Slive

On 5/30/07, Josh Trutwin [EMAIL PROTECTED] wrote:


Thanks - great suggestions - now my next issue.  This is all done in
VirtualHosts, I noticed RewriteMap cannot be declared in a .htaccess
so I put it in the VirtualHost like so:

VirtualHost *:80
VirtualDocumentRoot /httpd/%0/html
RewriteMap rewriter dbm:/httpd/%0/html/rewrite_map.db
/VirtualHost

The RewriteMap doesn't seem to replace the %0 with the directory name
- so I have a directory /httpd/josh.test.com/html which has
rewrite_map.db.pag and rewrite_map.db.dir.  I created a .htaccess in
josh.test.com/html:

RewriteRule ^(.*) ${rewriter:$1} [R]

When attempting to access the site though I get a No such file or
directory error on /httpd/%0/html/rewrite_map.db.pag

Can I declare the RewriteMap once as above to map to each
VirtualHost's directory?


No. The %0 notation is specific to mod_vhost_alias. It can't be used
in any other directive. (In particular, RewriteMaps are initialized at
server startup, so it doesn't work to make their location a
per-request variable.)

You can either manually define a separate rewritemap for each
hostname, or you can use a single rewritemap for all the hosts and use
the hostname as part of the lookup key.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Strange mod_cache expires header interaction

2007-05-30 Thread Christopher Shumway

On Fri, 25 May 2007, Joshua Slive wrote:


I would try two things:

1. mod_disk_cache, which is better tested and maintained than
mod_mem_cache, and will often be just as performant given a good
virtual file system layer.


Using disk cache for storage instead of memory cache seems to work.

Would it be worth filing a bug report with mod_mem_cache?



2. Remove the gzip encoding. There are some fixes recently introduced
in trunk for problems with vary-processing in the cache. These may (or
may not) be causing the problem you see. They will probably make it
into the next 2.2 release.


The gzip filter made no diffrence in this case.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] unknown in .htaccess files

2007-05-30 Thread morgan gangwere
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

@all

im setting up a webcam to do some remote admin, but I dont want people
to just see what im doing.
I have a simple system with this hierarchy:
/
+ webcam/
- .htaccess
- .htpasswd
+ pics/
  - current.jpg
  - etc
- index.htm
[rest of site]

how secure is this? if /webcam/ is a link to C:\wamp\www\webcam\ then
should i put my .htpasswd in say c:\wamp\.htpasswd-webcam instead?

also, how do i make a different page for say the user admin come up?

help is appreciated

(and don't criticize me on .htaccess - i like it. and i dont have
anything better readily availible
- --
Just a Thought
Morgan Gangwere

For those who want my PGP key:
http://pengunassasin.kicks-ass.org/pgpKey.html

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGXfrCCF9T/dUsmAgRAvkIAJ4jlaIbYBzHt1EZCBegbCxkIhVyGACeKs3h
fM7skA0evc3vJ/L8c+OZQYc=
=hhC/
-END PGP SIGNATURE-

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Is Win32 Apache ready for prime time?

2007-05-30 Thread morgan gangwere
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

William A. Rowe, Jr. wrote:
 Jess Holle wrote:
 William A. Rowe, Jr. wrote:
 morgan gangwere wrote:
   
 i will agree that the win32 version of apache is *godly* stable - im
 running something like 2.2.3 win32 - a nice stable version.
 
 Note that 2.2.4 fixed a *number* of bugs (and introduced one into Win2000,
 the flaw of resolving all clients as 0.0.0.0 - disable win32 acceptex to
 work around that one).  2.2.5 will be substantially improved over 2.2.4,
 as well.
   
 That's nice to hear.

 When will 2.2.5 see the light of day, though?
 
 Given interesting news that hit the light of day, early next week, most
 likely.  Depends on how long it takes someone to hack the pid table for
 the parent processes out of the scoreboard and into the parent process's
 local hash.
[snip]

heres my side:
Foo JH Said:
 Hello morgan,
 
 Ya Know, i have an apache WAMP5 box runnin on xp home too! and other
 than net downtime and power outages, its been up ~3mo!

 i will agree that the win32 version of apache is *godly* stable - im
 running somwthing like 2.2.3 win32 - a nice stable version.
 
 Yes I am enjoying Apache on Win32 too. But my question to be specific is:
 1. Apache will automatically recover when it faults (in my case), so you
may not notice the problem. Can you check your error log if you are 
experiencing the same error message as well?
 

in my case, XAMPP (the ApacheFriends dist.) fails completely because of
the FTP daemon, but otherwise is fine.

Apache Win32 when installed as a windows service works well, and I have
only seen it fail in _very_ limited situations (ie 300 requests
for admin.htt - an IIS page) but it came back and was running nice and
fine with about 1 minute of downtime (how long it took for the machine
to restart the service!)

I got one error that came close to it - it was related to memory in my
case, apache doing a malloc to big for my 32 megs of memory avail to it
(caused by mod_php - uploading a 45 mb file!)

could it have been the perl script running pushing a file over the system?

 2. Since you are on WAMP (P = PHP?) Are you running PHP scripts intensively?

Wamp is a port of the LAMP server idea to Windows - i'm running the
latest (only really works with apache 2.2.3 because of a special
mod_wampadmin addon)

in my case, the WAMP part is really this:
Apache 2.2.3 with some extras to handle talking to the control daemon
using a special device (a named pipe really)
PHP 2
MySQL 5
Windows XP Home build #2600
PEAR (for PHP/Perl/Apache comms apparently - im not sure)

as long as theres no security problems with the stale version, im fine
with it.

Hope that helps

- --
Just a Thought
Morgan Gangwere

For those who want my PGP key:
http://pengunassasin.kicks-ass.org/pgpKey.html

*** Wisdom for the day ***
* Dont rawquote - it gives   *
*  spammers free bait!   *
**
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGXf7zCF9T/dUsmAgRAtDaAKCWz6mfMKA1vQGPkB4od1rOveztLgCg2NLZ
QriiKf6QPmIbgl4TUj7VAtk=
=4uL2
-END PGP SIGNATURE-

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Strange mod_cache expires header interaction

2007-05-30 Thread Joshua Slive

On 5/30/07, Christopher Shumway [EMAIL PROTECTED] wrote:

On Fri, 25 May 2007, Joshua Slive wrote:

 I would try two things:

 1. mod_disk_cache, which is better tested and maintained than
 mod_mem_cache, and will often be just as performant given a good
 virtual file system layer.

Using disk cache for storage instead of memory cache seems to work.

Would it be worth filing a bug report with mod_mem_cache?


Sure.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] mod_cache not caching /

2007-05-30 Thread Matt Lehner
I'm doing some testing with mod_cache, using disk cache. What I've noticed
is that if I hit example.com/index.*, it will cache it and serve it
from the cache as well. However, if I just go to http://www.example.com,
it isn't cached.

This happens with any index page served without giving the name of the
index file in the URL.  This is with Apache 2.2.4. Has anyone run into
this issue before? What should I check for?

Thanks,
Matt Lehner

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] How to store loginformation in user specified directory?

2007-05-30 Thread morgan gangwere
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joshua Slive wrote:
 On 5/30/07, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:


 Hi,

 We are facing a tight problem regarding a user  requirement to store
 logfile in user specified directory.We are getting  segmentation fault
 when we are starting apache when we try to use a log file in  user
 defined directory(other than logs/).
 We used fopen(),fprintf() to write the user  specified file.This
 always gave segmentation fault.The one option we had  regarding using
 ErrorLog is failing since httpd.conf recognises path w.r.t  ServerRoot.
 Did any one has done this before? [did anyone has done this before == has 
 anyone done this before-p]
Is this possible  ? If so please
 suggest a way out.

 
 That doesn't really make any sense to me. Apache will happily write
 the access and error logs wherever you tell it, if the permissions are
 correct and there is sufficient space. Have you tried starting apache
 under strace to see what syscall is failing? Have you tried debugging
 the core dump?
 
 I also don't understand what you mean when you say you used
 fopen(),fprintf(). Why do you need to use these? It is apache that
 controls the log files directly.
 
 Finally, you should heed the warning in the docs that logs shouldn't
 be written anywhere that root does not exclusively control. Otherwise,
 whatever user controls the log directory can almost certainly gain
 root.
 
 Joshua.
 
 

agreed. what i _think_ (pullin things outta the air) is that theres
something running thats reading in the apache log files as they're being
written - something garunteed to segfault.

a _proper_ way to do this would be

read (or type) /path/to/logfile  /path/to/new/log

this will read in the logfile and concatenate it to the proper place.
the only thing needed is have the permissions to the directory.

However, i may be wrong... correct me if i am

- --
Just a Thought
Morgan Gangwere

For those who want my PGP key:
http://pengunassasin.kicks-ass.org/pgpKey.html

*** Wisdom for the day ***
* Dont rawquote - it gives   *
*  spammers free bait!   *
**
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGXgI5CF9T/dUsmAgRAlfUAJ0eIomVZCdyHEY9uBL+QOZ/huLQPACfXUc8
G2mN9YqGRtXkFbaRG0WhvQM=
=dbI+
-END PGP SIGNATURE-

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_cache not caching /

2007-05-30 Thread Joshua Slive

On 5/30/07, Matt Lehner [EMAIL PROTECTED] wrote:

I'm doing some testing with mod_cache, using disk cache. What I've noticed
is that if I hit example.com/index.*, it will cache it and serve it
from the cache as well. However, if I just go to http://www.example.com,
it isn't cached.

This happens with any index page served without giving the name of the
index file in the URL.  This is with Apache 2.2.4. Has anyone run into
this issue before? What should I check for?


Show us the HTTP response headers and the ErrorLog output at LogLevel
debug for the case where it caches and the case where it doesn't.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_cache not caching /

2007-05-30 Thread Matt Lehner
Here's the log for no index in the URL:

[Tue May 15 15:53:41 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE
filter for /
[Tue May 15 15:53:41 2007] [debug] mod_cache.c(136): Adding
CACHE_REMOVE_URL filter for /

That will just keep repeating, nothing ever shows up as being served.


And with:

[Tue May 15 17:39:44 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE
filter for /index.html
[Tue May 15 17:39:44 2007] [debug] mod_cache.c(136): Adding
CACHE_REMOVE_URL filter for /index.html
[Tue May 15 17:39:51 2007] [debug] mod_cache.c(277): cache: serving
/index.html
[Tue May 15 17:40:02 2007] [debug] mod_disk_cache.c(477): disk_cache:
Recalled cached URL info header http://example.com:80/index.html

Here's the VirtualHost entry I was testing with:

VirtualHost 10.10.10.10
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/www
ServerName example.com
CacheRoot /usr/nobody/cache
CacheEnable disk /
CacheDirLevels 3
CacheDirLength 2
CacheDefaultExpire 3600
CacheIgnoreCacheControl On
CacheIgnoreHeaders Set-Cookie
CacheMaxExpire 86400
CacheMinFileSize 1
CacheMaxFileSize 1024000
/VirtualHost

Let me know if I need to provide any other info.

Matt


On Wed, 30 May 2007, Joshua Slive wrote:

 Show us the HTTP response headers and the ErrorLog output at LogLevel
 debug for the case where it caches and the case where it doesn't.

 Joshua.

 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: [EMAIL PROTECTED]
   from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Undefined symbol ap_run_http_method

2007-05-30 Thread Sander Temme

Sashi,

On May 30, 2007, at 12:54 PM, Malladi, Sasikanth wrote:


httpd: Syntax error on line 39 of /usr/local/apache2/conf/httpd.conf:
Cannot load /export/opt/SiteMinder/webagent5QMR7/lib/libmod_sm20.so
into server: ld.so.1: httpd: fatal: relocation error: file /export/
opt/
SiteMinder/webagent5QMR7/lib/libmod_sm20.so: symbol
ap_run_http_method: referenced symbol not found


This hook was renamed to ap_hook_http_scheme in 2.2.  It looks like  
you're running an Apache 2.2 server using an Apache 2.0 module, and  
it calls ap_http_method() which is a #define for that hook to run.


Even if there was no symbol conflict, the 2.2 server would refuse to  
load the 2.0 module at a later point in the server startup cycle.



How do I fix this?


Ask Netegrity for an Apache 2.2 compatible module, or downgrade  
(unfortunately) to Apache 2.0.


S.

--
Sander Temme
[EMAIL PROTECTED]
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF





smime.p7s
Description: S/MIME cryptographic signature


Re: [EMAIL PROTECTED] mod_cache not caching /

2007-05-30 Thread Matt Lehner
Sorry, here's the http headers:

HTTP/1.1 200 OK
Date: Wed, 30 May 2007 23:28:01 GMT
Server: Apache/2.2.4
Last-Modified: Wed, 16 May 2007 20:21:33 GMT
ETag: 134003-2702-189fcd40
Accept-Ranges: bytes
Content-Length: 9986
Cache-Control: max-age=300
Expires: Wed, 30 May 2007 23:33:01 GMT
Content-Type: text/html

Thanks for any assistance.

Matt.

On Wed, 30 May 2007, Matt Lehner wrote:

 Here's the log for no index in the URL:

 [Tue May 15 15:53:41 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE
 filter for /
 [Tue May 15 15:53:41 2007] [debug] mod_cache.c(136): Adding
 CACHE_REMOVE_URL filter for /

 That will just keep repeating, nothing ever shows up as being served.


 And with:

 [Tue May 15 17:39:44 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE
 filter for /index.html
 [Tue May 15 17:39:44 2007] [debug] mod_cache.c(136): Adding
 CACHE_REMOVE_URL filter for /index.html
 [Tue May 15 17:39:51 2007] [debug] mod_cache.c(277): cache: serving
 /index.html
 [Tue May 15 17:40:02 2007] [debug] mod_disk_cache.c(477): disk_cache:
 Recalled cached URL info header http://example.com:80/index.html

 Here's the VirtualHost entry I was testing with:

 VirtualHost 10.10.10.10
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/www
 ServerName example.com
 CacheRoot /usr/nobody/cache
 CacheEnable disk /
 CacheDirLevels 3
 CacheDirLength 2
 CacheDefaultExpire 3600
 CacheIgnoreCacheControl On
 CacheIgnoreHeaders Set-Cookie
 CacheMaxExpire 86400
 CacheMinFileSize 1
 CacheMaxFileSize 1024000
 /VirtualHost

 Let me know if I need to provide any other info.

 Matt


 On Wed, 30 May 2007, Joshua Slive wrote:

  Show us the HTTP response headers and the ErrorLog output at LogLevel
  debug for the case where it caches and the case where it doesn't.
 
  Joshua.
 
  -
  The official User-To-User support forum of the Apache HTTP Server Project.
  See URL:http://httpd.apache.org/userslist.html for more info.
  To unsubscribe, e-mail: [EMAIL PROTECTED]
from the digest: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: [EMAIL PROTECTED]
   from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_cache not caching /

2007-05-30 Thread Joshua Slive

On 5/30/07, Matt Lehner [EMAIL PROTECTED] wrote:

Sorry, here's the http headers:

HTTP/1.1 200 OK
Date: Wed, 30 May 2007 23:28:01 GMT
Server: Apache/2.2.4
Last-Modified: Wed, 16 May 2007 20:21:33 GMT
ETag: 134003-2702-189fcd40
Accept-Ranges: bytes
Content-Length: 9986
Cache-Control: max-age=300
Expires: Wed, 30 May 2007 23:33:01 GMT
Content-Type: text/html


That's the case where it is using the cache or not?

I certainly don't see anything there that could cause the cache to
have problems.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_cache not caching /

2007-05-30 Thread Matt Lehner
That isn't being cached. I just hit / a few times, here's all I get:

[Wed May 30 19:38:34 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE
filter for /
[Wed May 30 19:38:34 2007] [debug] mod_cache.c(136): Adding
CACHE_REMOVE_URL filter for /
[Wed May 30 19:38:38 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE
filter for /
[Wed May 30 19:38:38 2007] [debug] mod_cache.c(136): Adding
CACHE_REMOVE_URL filter for /
[Wed May 30 19:38:39 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE
filter for /
[Wed May 30 19:38:39 2007] [debug] mod_cache.c(136): Adding
CACHE_REMOVE_URL filter for /
[Wed May 30 19:38:40 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE
filter for /
[Wed May 30 19:38:40 2007] [debug] mod_cache.c(136): Adding
CACHE_REMOVE_URL filter for /

That's it, no server from cache entries.

Matt.


On Wed, 30 May 2007, Joshua Slive wrote:

 On 5/30/07, Matt Lehner [EMAIL PROTECTED] wrote:
  Sorry, here's the http headers:
 
  HTTP/1.1 200 OK
  Date: Wed, 30 May 2007 23:28:01 GMT
  Server: Apache/2.2.4
  Last-Modified: Wed, 16 May 2007 20:21:33 GMT
  ETag: 134003-2702-189fcd40
  Accept-Ranges: bytes
  Content-Length: 9986
  Cache-Control: max-age=300
  Expires: Wed, 30 May 2007 23:33:01 GMT
  Content-Type: text/html

 That's the case where it is using the cache or not?

 I certainly don't see anything there that could cause the cache to
 have problems.

 Joshua.

 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: [EMAIL PROTECTED]
   from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_cache not caching /

2007-05-30 Thread Joshua Slive

On 5/30/07, Matt Lehner [EMAIL PROTECTED] wrote:

That isn't being cached.


Are you doing anything fancy like mod_rewrite?

I don't see any explanation. There are some cache fixes going into the
next version of 2.2, but I'm not sure whether any of them would help
you.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_cache not caching /

2007-05-30 Thread Matt Lehner
Nope, nothing special at all. It's even the same way if I do something
like example.com/blah/. After searching Google, I think I'm the first
person to have this issue.

Matt

On Wed, 30 May 2007, Joshua Slive wrote:

 On 5/30/07, Matt Lehner [EMAIL PROTECTED] wrote:
  That isn't being cached.

 Are you doing anything fancy like mod_rewrite?

 I don't see any explanation. There are some cache fixes going into the
 next version of 2.2, but I'm not sure whether any of them would help
 you.

 Joshua.

 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: [EMAIL PROTECTED]
   from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] mod_proxy_balance never recovers from a worker error with stickysession

2007-05-30 Thread Dale Ogilvie
Hello,

I am running Apache 2.2.3 on RedHat EL 5. I am trying to use Apache to
load balance between two local instances of tomcat in order to utilize
the vast quantities of RAM on our production server.

My httpd setup looks like this:

Proxy balancer://tomcat
BalancerMember ajp://localhost:8009 min=10 max=100 route=tomcat1
loadfactor=1 retry=120
BalancerMember ajp://localhost:8010 min=10 max=100 route=tomcat2
loadfactor=1 retry=120
/Proxy

Location /balancer-manager
SetHandler balancer-manager
Order deny,allow
Deny from all
Allow from .trimblecorp.net
/Location

ProxyPass /dscgi/ds.py/ balancer://tomcat/docushare/dsweb/
stickysession=JSESSIONID nofailover=On
ProxyPass /docushare balancer://tomcat/docushare
stickysession=JSESSIONID nofailover=On
ProxyPass /docushare/ balancer://tomcat/docushare/
stickysession=JSESSIONID nofailover=On

The problem is that if one of the workers gets into error status, any
client with a JSESSIONID referencing that route is never able to receive
a reply, Apache *always* responds with a 503 - Temporarily unavailable,
*until* another request is successful. I expected with retry=120 that
after 120 seconds the client would be able to use the errored out
worker, but this is *not* the case.

Test case:

1. Start tomcats
2. Access /docushare, this succeeds and returns a JSESSIONID cookie
referencing the member e.g.
JSESSIONID=BC90C156669FDF0194657FF27EC3AF99.tomcat2
3. Stop tomcats to simulate a backend failure
4. Access /docushare again in the same browser session, this fails with
a 503 error (as expected). Balance-manager shows tomcat1 is OK, and
tomcat2 is Err
Error_log shows: All workers are in error state for route (tomcat2)
5. Start tomcats again
6. Wait for 120+ seconds to allow retry=120 to take effect
7. Access /docushare *using the session with the tomcat2 cookie*, expect
success, get 503 error. I can repeat this step ad nauseam without ever
getting a successful response.
Error_log shows: All workers are in error state for route (tomcat2)
8. To resolve the issue, delete the JSESSIONID cookie from the client or
open up a new browser and access /docushare. Either of these seem to
solve the problem for the cookied browser session.
9. Access /docushare, this succeeds, balance-manager shows both tomcat1
and tomcat2 are now OK even though the cookie returned to this request
is for *tomcat1*.

So I would expect that the balance would retry the errored path
successfully retry seconds after the failure. Is this a bug or do I
have some misunderstanding and/or misconfiguration?

Regards

--
Dale Ogilvie
Senior Software Engineer
Trimble Navigation NZ Ltd
P O Box 8729
Riccarton
Christchurch
Ph:   +64 3 9635344
Fax: +64 3 9635317


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] RewriteMap questions

2007-05-30 Thread Josh Trutwin
On Wed, 30 May 2007 16:20:23 -0400
Joshua Slive [EMAIL PROTECTED] wrote:

 No. The %0 notation is specific to mod_vhost_alias. It can't be used
 in any other directive. (In particular, RewriteMaps are initialized
 at server startup, so it doesn't work to make their location a
 per-request variable.)
 
 You can either manually define a separate rewritemap for each
 hostname, or you can use a single rewritemap for all the hosts and
 use the hostname as part of the lookup key.

Crud - or I guess I could go back to the external program method and
have it parse the URL.  None of these solutions is ideal, but I think
that's the best option in front of me.  

Out of curiosity - how would you use the hostname in the lookup key?

Thanks,

Josh

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] RewriteMap questions

2007-05-30 Thread Joshua Slive

On 5/30/07, Josh Trutwin [EMAIL PROTECTED] wrote:

On Wed, 30 May 2007 16:20:23 -0400
Joshua Slive [EMAIL PROTECTED] wrote:

 No. The %0 notation is specific to mod_vhost_alias. It can't be used
 in any other directive. (In particular, RewriteMaps are initialized
 at server startup, so it doesn't work to make their location a
 per-request variable.)

 You can either manually define a separate rewritemap for each
 hostname, or you can use a single rewritemap for all the hosts and
 use the hostname as part of the lookup key.

Crud - or I guess I could go back to the external program method and
have it parse the URL.  None of these solutions is ideal, but I think
that's the best option in front of me.

Out of curiosity - how would you use the hostname in the lookup key?


Adjust your db file to use host/path instead of just path as the key, and then:

RewriteCond ${existing:%{HTTP_HOST}$1|NOT-FOUND} =NOT-FOUND
RewriteRule ^/(.*) ${redirects:%{HTTP_HOST}$1} [L,QSA]

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] auth LDAP issue, help

2007-05-30 Thread Tony Guadagno
Hi,
  I am trying to get ldap auth working, what am i doing wrong?

this is my config
Directory d:/websites/ldaptest
AuthType basic
AuthBasicProvider ldap
AuthName LdapTest
AuthLDAPURL ldap://ldap.com/o=somewhere?cn?sub
AuthLDAPBindDN cn=admin,o=somewhere
AuthLDAPBindPassword pw
AllowOverride None
Order allow,deny
Allow from 172.30
Allow from 10.1
require valid-user
/Directory

when i hit the url, i am asked to login, when i do, it asks me again.  it fails 
after 3 times and here is what is in the apache log

[Wed May 30 22:25:19 2007] [warn] [client 10.1.1.4] [2692] auth_ldap 
authenticate: user  authentication failed; URI / [ldap_search_ext_s() for user 
failed][Filter Error]

here is what the ldap server  (Novell Netware 6.5sp6) see's:



New cleartext connection 0x560b9c40 from 172.30.0.20:1998, monitor = 0x131, 
index = 2
DoBind on connection 0x560b9c40
Bind name:cn=admin,o=somewhere, version:3, authentication:simple
Sending operation result 0:: to connection 0x560b9c40
Operation 0x1:0x60 on connection 0x560b9c40 completed in 0 seconds
DoSearch on connection 0x560b9c40
Search request:
base: o=somewhere
scope:2  dereference:3  sizelimit:-1  timelimit:0  attrsonly:0
filter: ((objectclass=*)(cn=tonyg))
attribute: cn
Sending search result entry cn=TonyG,o=somewhere to connection 0x560b9c40
Sending operation result 0:: to connection 0x560b9c40
Operation 0x2:0x63 on connection 0x560b9c40 completed in 0 seconds
DoBind on connection 0x560b9c40
Bind name:cn=TonyG,o=somewhere, version:3, authentication:simple
Sending operation result 0:: to connection 0x560b9c40
Operation 0x3:0x60 on connection 0x560b9c40 completed in 0 seconds


***
Tony Guadagno
Guadagno Consulting
[EMAIL PROTECTED]
585.703.6700
***

BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:Tony Guadagno
EMAIL;WORK;PREF;NGW:[EMAIL PROTECTED]
N:Guadagno;Tony
END:VCARD


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [EMAIL PROTECTED] mod_proxy_balance never recovers from a worker error with stickysession

2007-05-30 Thread Serge Dubrouski

A couple of questions:

1. Did you set up session replication between your Tomcat instances?
If not your client will have to relogin in case of failure of the
Tomcat instance that generated session id.

2. Did I get you right that in your test you stop both instances of
Tomcat? If yes I don't think that after restart Tomcat will be able to
restore previous session unless you set up some kind of session
persistence.

Serge Dubrouski.

On 5/30/07, Dale Ogilvie [EMAIL PROTECTED] wrote:

Hello,

I am running Apache 2.2.3 on RedHat EL 5. I am trying to use Apache to
load balance between two local instances of tomcat in order to utilize
the vast quantities of RAM on our production server.

My httpd setup looks like this:

Proxy balancer://tomcat
BalancerMember ajp://localhost:8009 min=10 max=100 route=tomcat1
loadfactor=1 retry=120
BalancerMember ajp://localhost:8010 min=10 max=100 route=tomcat2
loadfactor=1 retry=120
/Proxy

Location /balancer-manager
SetHandler balancer-manager
Order deny,allow
Deny from all
Allow from .trimblecorp.net
/Location

ProxyPass /dscgi/ds.py/ balancer://tomcat/docushare/dsweb/
stickysession=JSESSIONID nofailover=On
ProxyPass /docushare balancer://tomcat/docushare
stickysession=JSESSIONID nofailover=On
ProxyPass /docushare/ balancer://tomcat/docushare/
stickysession=JSESSIONID nofailover=On

The problem is that if one of the workers gets into error status, any
client with a JSESSIONID referencing that route is never able to receive
a reply, Apache *always* responds with a 503 - Temporarily unavailable,
*until* another request is successful. I expected with retry=120 that
after 120 seconds the client would be able to use the errored out
worker, but this is *not* the case.

Test case:

1. Start tomcats
2. Access /docushare, this succeeds and returns a JSESSIONID cookie
referencing the member e.g.
JSESSIONID=BC90C156669FDF0194657FF27EC3AF99.tomcat2
3. Stop tomcats to simulate a backend failure
4. Access /docushare again in the same browser session, this fails with
a 503 error (as expected). Balance-manager shows tomcat1 is OK, and
tomcat2 is Err
Error_log shows: All workers are in error state for route (tomcat2)
5. Start tomcats again
6. Wait for 120+ seconds to allow retry=120 to take effect
7. Access /docushare *using the session with the tomcat2 cookie*, expect
success, get 503 error. I can repeat this step ad nauseam without ever
getting a successful response.
Error_log shows: All workers are in error state for route (tomcat2)
8. To resolve the issue, delete the JSESSIONID cookie from the client or
open up a new browser and access /docushare. Either of these seem to
solve the problem for the cookied browser session.
9. Access /docushare, this succeeds, balance-manager shows both tomcat1
and tomcat2 are now OK even though the cookie returned to this request
is for *tomcat1*.

So I would expect that the balance would retry the errored path
successfully retry seconds after the failure. Is this a bug or do I
have some misunderstanding and/or misconfiguration?

Regards

--
Dale Ogilvie
Senior Software Engineer
Trimble Navigation NZ Ltd
P O Box 8729
Riccarton
Christchurch
Ph:   +64 3 9635344
Fax: +64 3 9635317


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Is Win32 Apache ready for prime time?

2007-05-30 Thread Jaqui Greenlees

--- morgan gangwere [EMAIL PROTECTED] wrote:

Morgan, 

~snip~

 I have seen this with the mySQL connectivity in PHP
 - but its usually
 caused by NOT closing the connection to the MySQL
 server after you're done.
 
This is what I was referring to in my persistent
connections comment, but it can happen no matter what
database engine is being used.

 Remember, be a gentleman and close all your MySQL
 connections when
 you're done!

Exactly, the scripts are actually the cause of most
web exploits and server performance issues, not
configuration issues as a lot of people posting to
this list seem to think.

All this is actually better discussed off list, or on
a list focussed on the scripting / db best practices
rather than here. :)

Jaqui




Jeff Henager: If the average user can put a CD in and boot the system and 
follow the prompts, he can install and use Linux. If he can't do that simple 
task, he doesn't need to be around technology.


Website: http://jaqui-greenlees.net


  Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]