[us...@httpd] Apache bottleneck problems

2009-03-03 Thread Trevor Phillips
Hi! I've been a long time administrator of Apache servers in a University environment (translation: a LOT of variety in what content & apps are on the servers), and our configuration isn't getting simpler. One of our sites is currently set up with a reverse proxy in front of two back-end sites, of

Re: [us...@httpd] Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

2009-03-03 Thread J. Bakshi
Krist van Besien wrote: > On Tue, Mar 3, 2009 at 12:56 PM, J. Bakshi wrote: > > >> May be , I'm not sure but I am happy to confirm that I have solved it in >> a different way. At my web root directory I have created php.ini and >> placed the configuration as >> >> ~~

Re: [us...@httpd] htaccess against relative URLs?

2009-03-03 Thread John Oliver
On Tue, Mar 03, 2009 at 06:32:38PM -0500, Frank Gingras wrote: > John, > > Place your restrictions in your block instead, in your > vhost. I did. But without a / In the examples I saw, it looked like everything starting with a / was an absolute path on the system. I'll give that a whirl and

Re: [us...@httpd] htaccess against relative URLs?

2009-03-03 Thread Frank Gingras
John, Place your restrictions in your block instead, in your vhost. Frank. John Oliver wrote: Is it possible to apply htaccess restrictions to a relative URL instead of an absolute file path? For instance, https://server.host.name/app is handled by an AJP ProxyPass to Tomcat. I'd like to

[us...@httpd] htaccess against relative URLs?

2009-03-03 Thread John Oliver
Is it possible to apply htaccess restrictions to a relative URL instead of an absolute file path? For instance, https://server.host.name/app is handled by an AJP ProxyPass to Tomcat. I'd like to restrict access to that URL by IP, but when I add a stanza to httpd.conf, it doesn't work. I'm assumi

Re: [us...@httpd] Apache authenticate against Drupal user database?

2009-03-03 Thread André Warnier
John Oliver wrote: Is it possible for Apache to authenticate users against a database kept by Drupal / PHP / MySQL? I'm using proxy_ajp to handle requests for some applications hosted by Tomcat. The problem with that is, anyone can access them. We'd like to have any requests for https://server

[us...@httpd] Apache authenticate against Drupal user database?

2009-03-03 Thread John Oliver
Is it possible for Apache to authenticate users against a database kept by Drupal / PHP / MySQL? I'm using proxy_ajp to handle requests for some applications hosted by Tomcat. The problem with that is, anyone can access them. We'd like to have any requests for https://server.host.name/applicatio

RE: [us...@httpd] mod_cache and se

2009-03-03 Thread Anthony J. Biacco
Hmm, then the only way I can see doing it then is by putting your documents not to be cached in some /no-cache web path and using the CacheDisable directive with that as the argument. If you don't care much about the Last-Modified header, you can try unsetting that header that and set CacheIgnoreNo

Re: [us...@httpd] Re: Is there a known Header limit in mod_jk (or bug)?

2009-03-03 Thread Nick Kew
fredk2 wrote: Hi, I kept on testing with the attributes max_packet_size and packetSize (in worker.properties and server.xml) and it appears to fix the large header problem. Does this mean that all the headers together have to fit into a buffer which size is set by max_packet_size? You'd be be

Re: [us...@httpd] exclude errorDocument from authentication

2009-03-03 Thread jblack4
This does not seem to work for some reason. I tried putting the override section above, then below the authenticated section, but always got the standard 401 page versus the custom register.html page. It also appeared that maybe the proxy configuration of one location is being applied to both.

Re: [us...@httpd] Can you go outside the .htaccess directory with Rewrite Rule?

2009-03-03 Thread Sean DeNigris
[SOLVED] Thank you everyone for the ideas! When I checked the error logs, Apache was reinserting the base of the .htaccess directory's URI. So my "/cgi-bin/script" became /~me/public_html/cgi-bin/script (/~me/ public_html/ is the .htaccess directory + /cgi-bin/script, the directory I specified).

Re: [us...@httpd] Websphere / Apache similarities

2009-03-03 Thread Eric Covener
On Tue, Mar 3, 2009 at 10:57 AM, André Warnier wrote: > Hi. > > This is posted both to the Apache httpd and Tomcat user lists. > > I am taking on a project for which, on the customer side, the installed > HTTP-related software consists of (in the customer's words) "IBM Websphere > 6.1 and the corr

[us...@httpd] Benchmark Apache using old access log

2009-03-03 Thread howard chen
I know how to use ab to benchmark a particular url, but I think it would be more useful to use my previous access log to generate the load, so I can test the performance in a more scientific way...so are there any tools recommended? Thanks.

[us...@httpd] Websphere / Apache similarities

2009-03-03 Thread André Warnier
Hi. This is posted both to the Apache httpd and Tomcat user lists. I am taking on a project for which, on the customer side, the installed HTTP-related software consists of (in the customer's words) "IBM Websphere 6.1 and the corresponding IBM webserver". Does anyone on this list have any kn

Re: [us...@httpd] mod_cache and se

2009-03-03 Thread Nuno Fernandes
Hi again, I think that creates a problem that downstream proxies are affected by that change, meaning that if i remove those headers, squids and browsers will not cache that content. I only want that behaviour in mod_cache in my reverse proxy and not in the other downstream proxies. Thanks, N

Re: [us...@httpd] mod_cache and se

2009-03-03 Thread Nuno Fernandes
On Monday 02 March 2009 18:12:59 Eric Covener wrote: > On Mon, Mar 2, 2009 at 12:40 PM, Eric Covener wrote: > > On Mon, Mar 2, 2009 at 12:26 PM, Nuno Fernandes wrote: > >> SetEnvIf Request_URI "\.aspx$" no-cache > > > > This is in the manual but not yet in a 2.2.x release > > Updated the manual

Re: [us...@httpd] How to read external config from .htaccess

2009-03-03 Thread Frank Gingras
Brian Mearns wrote: On Mon, Mar 2, 2009 at 2:11 AM, J. Bakshi wrote: Dear list, I have a very long .htaccess. Because the .htaccess has all the config to block the web-graber, leaching protection , redirect rules, php.ini setting etc. I like to place all the web-graber, leaching protect

Re: [us...@httpd] How to read external config from .htaccess

2009-03-03 Thread Brian Mearns
On Mon, Mar 2, 2009 at 2:11 AM, J. Bakshi wrote: > Dear list, > > I have a very long .htaccess. Because the .htaccess has all the config > to block the web-graber, leaching protection , redirect rules, php.ini > setting etc. > I like to place all the web-graber, leaching protection settings in

Re: [us...@httpd] ssl + apache2

2009-03-03 Thread Brian Mearns
On Mon, Mar 2, 2009 at 3:26 AM, Kaushal Shriyan wrote: > Hi, > > is there a step by step guide to configure ssl on apache2 on Gentoo OS? > > Thanks and Regards > > Kaushal There are numerous guides to configuring apache2 with ssl. I would imagine it's largely the same on Gentoo as other Unix vari

[us...@httpd] Re: Is there a known Header limit in mod_jk (or bug)?

2009-03-03 Thread fredk2
Hi, I kept on testing with the attributes max_packet_size and packetSize (in worker.properties and server.xml) and it appears to fix the large header problem. Does this mean that all the headers together have to fit into a buffer which size is set by max_packet_size? Thanks - Fredk fredk2 wro

Re: [us...@httpd] Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

2009-03-03 Thread Krist van Besien
On Tue, Mar 3, 2009 at 12:56 PM, J. Bakshi wrote: > > May be , I'm not sure but I am happy to confirm that I have solved it in > a different way. At my web root directory I have created php.ini and > placed the configuration as > > ~~~ > display_startup_errors = off >

Re: [us...@httpd] Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

2009-03-03 Thread J. Bakshi
Eric Covener wrote: > On Tue, Mar 3, 2009 at 12:57 AM, J. Bakshi wrote: > > >> ~ >> Invalid command 'php_flag', perhaps mis-spelled or defined by a module >> not included in the server configuration >> >> > > It's a m

Re: [us...@httpd] Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

2009-03-03 Thread Eric Covener
On Tue, Mar 3, 2009 at 12:57 AM, J. Bakshi wrote: > ~ > Invalid command 'php_flag', perhaps mis-spelled or defined by a module > not included in the server configuration > It's a mod_php directive. Maybe you're not using mo

Re: [us...@httpd] Adding headers based on Content-Type

2009-03-03 Thread André Warnier
Foster, Stephen (ASPIRE) wrote: But the content type will be sent back by dynamic content so that code chunk will not be valid. If so, then why can whatever the "dynamic" portion, which generates the response, not also add the response header you want ? That would be the most logical and effi

[us...@httpd] Adding headers based on Content-Type

2009-03-03 Thread Foster, Stephen (ASPIRE)
Hi there, I have as situation where I need to add custom headers when the response is of a certain type, for example: If the response type is "text/html" I want to add a header of "Content-Style-Type "text/css"" If the response type is anything other that "text/html" then don't add anythin