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

2007-10-22 Thread Christian Folini
On Fri, Oct 19, 2007 at 10:05:58AM -0700, Shaw, Dan wrote: happens at the transport level. Although at a proxy level the stream stays open and waits for transport and ACK from client to backend. When the rewrite is use does it close connection or send ACK. I would not think so but getting an

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 Fri, Oct 19, 2007 at 09:09:54PM +0200, Alan AZZERA wrote: RewriteRule /(.*) http://backend/$1 [proxy,last] But AFAIK, mod_rewrite cannot alter anything *inside* the HTML code going out the server. mod_proxy_html can... yep. I'm currently trying to deal with PMWiki. It uses only

[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

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 look

[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

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 is in a

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

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

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

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

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

[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

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

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,

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 write

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;

[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

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) Location /svn/repos # Enable

[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

[EMAIL PROTECTED] RemoveHandler bug?

2007-10-22 Thread Jurosz Michal
Hello, I configure my virtual server: # bug.mj41.cz VirtualHost *:80 ServerName bug.mj41.cz # etc Location /dir RemoveHandler .php ForceType text/plain /Location Location /dir/subdir RemoveHandler .php ForceType text/plain /Location

[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

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

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

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 in

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