Re: [EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-22 Thread Christian Folini
On Mon, Oct 22, 2007 at 11:06:29PM +0200, Alan AZZERA wrote: > Seems to be the same idea you describe, but with more flexibility & > robustness - thanks to real DNS records. Same idea, yes. But I would not exactly call it robust in the sense of the KISS principle. I think it is never a good idea t

Re: [EMAIL PROTECTED] Make apache sleep

2007-10-22 Thread Christian Folini
Another idea in the same direction: Use a RewriteMap on every request and have the rewrite map do something ressuorce intensive. ... RewriteEngine On RewriteMapmymap prg:/tmp/tmp.pl RewriteRule ^/(.*) ${mymap:$1} And the map /tmp/tmp.pl: #!/usr/bin/perl -w use

Re: [EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-22 Thread Sander Temme
On Oct 22, 2007, at 2:06 PM, Alan AZZERA wrote: I thought about another approach : leaving as is my public DNS zone, and modifying my private one to distribute private IP for public domain names. My Reverse Proxies have just to be taught to use the private DNS, and all I have to do is to config

Re: [EMAIL PROTECTED] Make apache sleep

2007-10-22 Thread Sander Temme
On Oct 22, 2007, at 7:31 PM, Joshua Slive wrote: On 10/22/07, Eric Covener <[EMAIL PROTECTED]> wrote: On 10/22/07, Jim Albert <[EMAIL PROTECTED]> wrote: For the purposes of testing a heavy load situation, I'd like to configure one of my apache web servers to intentionally respond slow to a

Re: [EMAIL PROTECTED] How to remove APR??

2007-10-22 Thread William A. Rowe, Jr.
ChiaTzung Liu -??? wrote: Hi.. My configuration directive is showed as following: ./configure \ --without-apr \ --without-apr-util \ And I got the error message "checking for APR... configure: error: --with-apr requires a directory to be provided". Right Anyone knows how t

[EMAIL PROTECTED] How to remove APR??

2007-10-22 Thread ChiaTzung Liu -???
Hi.. My configuration directive is showed as following: ./configure \ --disable-ssl \ --disable-v4-mapped \ --disable-maintainer-mode \ --disable-dbm \ --disable-auth-dbm \ --disable-echo \ --disable-example \ --disable-ldap \

Re: [EMAIL PROTECTED] Make apache sleep

2007-10-22 Thread Joshua Slive
On 10/22/07, Eric Covener <[EMAIL PROTECTED]> wrote: > On 10/22/07, Jim Albert <[EMAIL PROTECTED]> wrote: > > For the purposes of testing a heavy load situation, I'd like to > > configure one of my apache web servers to intentionally respond slow to > > a request. > > mod_ext_filter might help you

Re: [EMAIL PROTECTED] Make apache sleep

2007-10-22 Thread Eric Covener
On 10/22/07, Jim Albert <[EMAIL PROTECTED]> wrote: > For the purposes of testing a heavy load situation, I'd like to > configure one of my apache web servers to intentionally respond slow to > a request. mod_ext_filter might help you simulate some of this by adding some silly perl/php/python as an

Re: [EMAIL PROTECTED] Make apache sleep

2007-10-22 Thread Joseph Marcelletti
Or if you are just benching a page like http://www.yourdomain.com/test.html you could switch it to test.php and have it do the sleep for you. Seems a little simple and I am not sure it's what you are going for exactly. On 10/22/07, Tom Hart <[EMAIL PROTECTED]> wrote: > I don't know about anything

Re: [EMAIL PROTECTED] Make apache sleep

2007-10-22 Thread Tom Hart
I don't know about anything in apache to do this, but there are a couple other options that popped into mind, depending on what exactly you're trying to test. The first is netlimiter (http://www.netlimiter.com) that will let you simulate network congestion/low bandwidth scenarios, with a littl

Re: [EMAIL PROTECTED] Need help to deal with poorly written PHP apps behind Apache used as Reverse Proxy

2007-10-22 Thread Alan AZZERA
'nite I'll try your tips tomorrow. Thanks a lot. > If you want to get your hands really dirty, you can also > leave mod_headers aside and set www.example.com statically > in /etc/hosts to point to the backend. That way the proxy > server will still believe that he is www.example.com via > servern

[EMAIL PROTECTED] Make apache sleep

2007-10-22 Thread Jim Albert
For the purposes of testing a heavy load situation, I'd like to configure one of my apache web servers to intentionally respond slow to a request. Is anyone aware of some type of apache sleep or delay configuration that will easily allow me to configure this? For example, tell apache to wait

[EMAIL PROTECTED] RemoveHandler bug?

2007-10-22 Thread Jurosz Michal
Hello, I configure my virtual server: # bug.mj41.cz ServerName bug.mj41.cz # etc RemoveHandler .php ForceType text/plain RemoveHandler .php ForceType text/plain I put the same 'index.php' to directories '/' '/dir/' '/dir/subdir' (inside

[EMAIL PROTECTED] Avoid buffering in a reverse proxy configuration

2007-10-22 Thread Julian Santander
Hello there, I hope you can help or at least point me in the right direction. I'm currently trying to setup an Apache 2.2.6 for cygwin as a Reverse Proxy in front of a different server. This server is expected to produce long (in time) response as a series of chunk-encoded pieces (actua

Re: [EMAIL PROTECTED] svn access via apache with ntlm authentication

2007-10-22 Thread Thomas Fazekas
Thanks for all the hints, finally I got it working with LDAP authentication. For now, I'm happy with that although indeed seems a bit slow... For future references here is my config (although is staright forward and it can be found on many web resources) # Enable Subversion D

[EMAIL PROTECTED] Apache Serving Files Windows Share w/ Alias - Issues?

2007-10-22 Thread Stephen Johnston
Does anyone know if Apache 2.0.52 on Windows will have any issue serving files files from a Windows share using aliases? Specifically, will Apache ecounter issues with locking if that share is shared among multiple machines in a load balanced configuration? Our setup would be something like the f

RE: [EMAIL PROTECTED] Realy Need help - Apache PROXY Question

2007-10-22 Thread Shaw, Dan
Are you saying without the keepalive or do you mean with the keepalive option I would see the traffic below? Thanks again, Dan -Original Message- From: Christian Folini [mailto:[EMAIL PROTECTED] Sent: Sunday, October 21, 2007 11:20 PM To: Shaw, Dan Cc: users@httpd.apache.org; Minato,

Re: [EMAIL PROTECTED] php and suexec

2007-10-22 Thread Joshua Slive
On 10/22/07, Grant Peel <[EMAIL PROTECTED]> wrote: > > > Hi Matthew, > > > Thanks for the speedy resonse. I actually am setting suphp on a test server > right now, but one of the items I was looking for was to jail users from a > php standpoint similar to what suexec does for perl, i.e. can't

Re: [EMAIL PROTECTED] php and suexec

2007-10-22 Thread Grant Peel
Hi Matthew, Thanks for the speedy resonse. I actually am setting suphp on a test server right now, but one of the items I was looking for was to jail users from a php standpoint similar to what suexec does for perl, i.e. can't write outside the users docroot, etc etc. If I read suphp right, i

Re: [EMAIL PROTECTED] php and suexec

2007-10-22 Thread Matthew A. Bockol
Hi Grant, You might also consider suPHP (http://www.suphp.org). I don't use it myself, but it should do what you want. Otherwise, php in CGI mode is pretty simple. 1. don't load the libphp module in httpd.conf (or disable php for the directory containing the scripts you want to cgi exec). 2.

[EMAIL PROTECTED] php and suexec

2007-10-22 Thread Grant Peel
Hi again all, Has anyone on this had succees setting up php to use (apache) suexec? If I am reading things right, it appears that php must be run as CGI and then it will use the built in (Apache2) suexec wrapper in the same fassion as perl does. If the above is correct I am looking for a primer

Re: [EMAIL PROTECTED] .htaccess/Expires/Cache-Control: 500 error

2007-10-22 Thread Jonathan Hayward http://JonathansCorner.com
Thanks. On 10/22/07, Joshua Slive <[EMAIL PROTECTED]> wrote: > > On 10/22/07, Jonathan Hayward http://JonathansCorner.com > <[EMAIL PROTECTED]> wrote: > > Sorry for not replying earlier... > > > > Is Header version-specific? The error message in the log is "...Invalid > > command 'Header,' perhaps

Re: [EMAIL PROTECTED] .htaccess/Expires/Cache-Control: 500 error

2007-10-22 Thread Joshua Slive
On 10/22/07, Jonathan Hayward http://JonathansCorner.com <[EMAIL PROTECTED]> wrote: > Sorry for not replying earlier... > > Is Header version-specific? The error message in the log is "...Invalid > command 'Header,' perhaps misspelled or defined by a module not included in > the server configuratio

Re: [EMAIL PROTECTED] .htaccess/Expires/Cache-Control: 500 error

2007-10-22 Thread Jonathan Hayward http://JonathansCorner.com
Sorry for not replying earlier... Is Header version-specific? The error message in the log is "...Invalid command 'Header,' perhaps misspelled or defined by a module not included in the server configuration". What module(s) need to be installed? The server is an Apache 2 under Linux; if more vers

Re: [EMAIL PROTECTED] Log FIles

2007-10-22 Thread Joshua Slive
On 10/22/07, Grant Peel <[EMAIL PROTECTED]> wrote: > > Do I need to restart the apache deamon each night after the logs are > rotated? (I am rotating those log with newsyslog). > > Is there something else I am missing? http://httpd.apache.org/docs/2.2/logs.html#rotation Joshua.

Re: [EMAIL PROTECTED] RewriteRule trouble

2007-10-22 Thread Krist van Besien
On 10/22/07, Joshua Slive <[EMAIL PROTECTED]> wrote: > On 10/22/07, Krist van Besien <[EMAIL PROTECTED]> wrote: > > On 10/22/07, BP Jonsson <[EMAIL PROTECTED]> wrote: > > > How should I write a rewrite rule so that it appears to > > > visitors that they are at http://foo(.*) but the files > > > res

[EMAIL PROTECTED] Log FIles

2007-10-22 Thread Grant Peel
Hi all, I recently installed mod_security and noticed that it would not write to the server logs (the main server logs in /var/log), until I gracefully restarted apache. After reviewing that, I noticed that none of the other files were being written to as well (httpd-access.log, httpd-error.lo

Re: [EMAIL PROTECTED] RewriteRule trouble

2007-10-22 Thread Joshua Slive
On 10/22/07, Krist van Besien <[EMAIL PROTECTED]> wrote: > On 10/22/07, BP Jonsson <[EMAIL PROTECTED]> wrote: > > How should I write a rewrite rule so that it appears to > > visitors that they are at http://foo(.*) but the files > > reside at http://bar/site/foo? Supposing that the rewrite > > rule

[EMAIL PROTECTED] SetEnvIf & SESSION_USE_TRANS_SID=0

2007-10-22 Thread Sylvain Viollat
Hello! first at all, I'm sorry for my english, I'll do my best :-) We have a website which works with session.use_trans_sid set to On. Everything works just fine, but when googlebot comes on the website and does its job, it's also getting the php's session id in the URL. I've search a lot abou

Re: [EMAIL PROTECTED] RewriteRule trouble

2007-10-22 Thread Krist van Besien
On 10/22/07, BP Jonsson <[EMAIL PROTECTED]> wrote: > How should I write a rewrite rule so that it appears to > visitors that they are at http://foo(.*) but the files > reside at http://bar/site/foo? Supposing that the rewrite > rule is in a .htaccess under the foo root directory, what > should it l

[EMAIL PROTECTED] RewriteRule trouble

2007-10-22 Thread BP Jonsson
How should I write a rewrite rule so that it appears to visitors that they are at http://foo(.*) but the files reside at http://bar/site/foo? Supposing that the rewrite rule is in a .htaccess under the foo root directory, what should it look like? TIA, /BP -