[users@httpd] serving pre-compressed content

2011-10-06 Thread Xavier Noria
Does anyone have a well-tested and idiomatic Apache configuration to serve pre-compressed content? Vary header, Content-Type header, browser gotchas, and everything robustly sorted out? The situation is that you have foo.css and foo.css.gz on disk, and want Apache to serve foo.css.gz directly if a

Re: [users@httpd] mod_deflate and chunked encoding

2011-06-05 Thread Xavier Noria
On Sun, Jun 5, 2011 at 11:51 PM, Eric Covener wrote: > On Sun, Jun 5, 2011 at 5:40 PM, Xavier Noria wrote: >> On Sun, Jun 5, 2011 at 11:36 PM, Eric Covener wrote: >> >>>> If Passenger has to dechunk, and we want a chunked compressed >>>> response, and

Re: [users@httpd] mod_deflate and chunked encoding

2011-06-05 Thread Xavier Noria
On Sun, Jun 5, 2011 at 11:36 PM, Eric Covener wrote: >> If Passenger has to dechunk, and we want a chunked compressed >> response, and Apache is the one responsible for doing that, how should >> we signal Apache that we want compression and streaming for that >> particular response. > > This is t

Re: [users@httpd] mod_deflate and chunked encoding

2011-06-05 Thread Xavier Noria
On Sun, Jun 5, 2011 at 9:54 PM, William A. Rowe Jr. wrote: >> So I understand from your reply that httpd is the only one resposible >> for chunked responses, compressed or otherwise. Is that correct? > > Thanks for the info.  You are sort-of correct.  The backend can possibly > optimize things by

Re: [users@httpd] mod_deflate and chunked encoding

2011-06-05 Thread Xavier Noria
On Sun, Jun 5, 2011 at 10:47 PM, Stormy wrote: > Ah, interesting... that you say it's an Apache module. Maybe Messrs Hongli > Lai & Ninh Bui could help you with your compression and chunking challenges? >  'Cos when you suggest that Apache is functioning "Guess that works by luck" > I might be te

Re: [users@httpd] mod_deflate and chunked encoding

2011-06-05 Thread Xavier Noria
On Sun, Jun 5, 2011 at 8:16 PM, William A. Rowe Jr. wrote: > On 6/5/2011 12:31 PM, Xavier Noria wrote: > > httpd (conditionally) handles the chunking... the app generator's > chunking is never used.  What *module* is installed in httpd?  I'm > not familiar with the

Re: [users@httpd] mod_deflate and chunked encoding

2011-06-05 Thread Xavier Noria
Oh by the way. Sorry for not being specific enough in my question. I am not really familiar with Apache modules (except for some mod_perl experience) and do not know how to word my question correctly. I guess my original question was whether mod_deflate dechunks and compresses on the fly. Response

Re: [users@httpd] mod_deflate and chunked encoding

2011-06-05 Thread Xavier Noria
On Sun, Jun 5, 2011 at 7:01 PM, William A. Rowe Jr. wrote: > you need to be more specific. > > HTTP 2.x has a filtering schema which applies -protocol- filters > after all -content-.  Modules are presumed to generate content > unless they manipulate the filter stack. > > mod_proxy dechunks the ba

Re: [users@httpd] mod_deflate and chunked encoding

2011-06-05 Thread Xavier Noria
I think that's definitely not correct. Browsers do inflate and process the HTML on the fly, they do not wait for the entire payload. Chrome seems to have a buffer of 256 bytes, and Firefox has none. I have used this server for testing this: https://gist.github.com/1009108 and monitored when

Re: [users@httpd] mod_deflate and chunked encoding

2011-05-31 Thread Xavier Noria
Thanks a lot Geoff. Can you provide some more information to be able to reproduce your test over here? And how many chunks did the response contain? In addition to that, if someone with first-hand knowledge of Apache or browser internals could shed a light I'd really appreciate it. Reverse enginee

Re: [users@httpd] mod_deflate and chunked encoding

2011-05-31 Thread Xavier Noria
On Tue, May 31, 2011 at 11:54 AM, Geoff Millikan wrote: >> ...is it possible that mod_deflate works by chunks... > > Why are you doing this?  It's not to increase client-side performance because > correct me if I'm wrong here but it's been my > understanding that the web browser cannot start dec

[users@httpd] mod_deflate and chunked encoding

2011-05-30 Thread Xavier Noria
I have an application server behind that may output chunked responses, and would like to use compression for them as I do for ordinary responses. 1. Is that possible with mod_deflate? 2. If it is, is it possible that mod_deflate works by chunks and Apache builds and sends chunked compressed respo

[EMAIL PROTECTED] performance of ProxyPass vs rewrite

2007-07-27 Thread Xavier Noria
In an Apache + mod_proxy_balancer setup you can base the dispatch on ProxyPass or on "rewrite to the balancer unless the file exists". That is ProxyPass /images ! ProxyPass /stylesheets ! ProxyPass /javascripts ! ... ProxyPass / balancer://cluster/ ProxyPassReverse / balancer

Re: [EMAIL PROTECTED] need help with basic vhost config

2007-07-08 Thread Xavier Noria
El Jul 8, 2007, a las 9:37 PM, Xavier Noria escribió: Thank you. I see there configurations for some ServerName/ ServerAlias known before hand, how can I configure something like this? ServerName *.example.com to express "all subdomains of example.com"? I finally got to

Re: [EMAIL PROTECTED] need help with basic vhost config

2007-07-08 Thread Xavier Noria
El Jul 8, 2007, a las 8:45 PM, Tony Stevenson escribió: Xavier, See this page for ideas: http://wiki.apache.org/httpd/ExampleVhosts Thank you. I see there configurations for some ServerName/ServerAlias known before hand, how can I configure something like this? ServerName *.example.com

[EMAIL PROTECTED] need help with basic vhost config

2007-07-08 Thread Xavier Noria
I am not very familiar with vhosts configuration. How would you configure Apache 2.2 with two vhosts on port 80 so that all requests to X.example.com go to one of them, for all X, an all requests X.example2.com go to the other one, for all X? -- fxn --

Re: [EMAIL PROTECTED] Re: SSL and virtual hosts

2007-06-18 Thread Xavier Noria
On Jun 17, 2007, at 10:38 PM, Totte wrote: Does anyone know how to generate a certificate for a main domain and any numbers of sub-domains for a domain in Linux? I got my subdomains working using one cert for the main domain and the same cert for the subdomains. However, I get the "certific

Re: [EMAIL PROTECTED] Using multiple virtual hosts with SSL on a single IP system

2007-01-24 Thread Xavier Noria
On Jan 24, 2007, at 6:03 PM, Serge Dubrouski wrote: The only way to make it work is by adding additional IP addresses and setting VirtualHosts on those addresses, each with it's own certificate. You can't have several certs on one IP address. Or else have SSL in different ports, see the first

Re: [EMAIL PROTECTED] a simple rewrite request

2007-01-08 Thread Xavier Noria
On Jan 8, 2007, at 2:39 AM, Jonathan Horne wrote: i have a server that i keep on standby with a "down for maintenance" version of my website. i would like to redirect any url that might come in to just / (my document root). could someone whip me up a quick example? If a file /system/main

[EMAIL PROTECTED] mod_deflate & FastCGI

2007-01-07 Thread Xavier Noria
I have this simple .htaccess in a hosted website. Static content is compressed, but content coming from FastCGI (that's a Rails application) is not. Dynamic content has the right MIME type and everything, see $ wget -S --header="Accept-Encoding: gzip" http://www.hashref.com/ --11:27:25-- h

[EMAIL PROTECTED] do not proxy static files

2006-12-13 Thread Xavier Noria
I am using mod_proxy_balancer to balance Mongrels in localhost. I am putting lines like ProxyPass /images/ ! to let Apache serve static files, but that couples the config with the application layout. I would prefer to be able to simply say: if file exists let Apache send it other

[EMAIL PROTECTED] Re: [SOLVED] wrong content-type for favicon.ico

2006-12-12 Thread Xavier Noria
On Dec 12, 2006, at 4:43 PM, Xavier Noria wrote: I have a 2.2.3 compiled by hand in a Debian. The main conf is untouched except for an Include at the end and a LoadModule flvx_modulemodules/mod_flvx.so. The include at the end loads a config file for a very simple vhost, who has

[EMAIL PROTECTED] wrong content-type for favicon.ico

2006-12-12 Thread Xavier Noria
I have a 2.2.3 compiled by hand in a Debian. The main conf is untouched except for an Include at the end and a LoadModule flvx_modulemodules/mod_flvx.so. The include at the end loads a config file for a very simple vhost, who has nothing particular about mime types. The thing is,

[EMAIL PROTECTED] LimitRequestBody and mod_proxy_balancer

2006-12-08 Thread Xavier Noria
I have an application served by Apache 2.2.3 + mod_proxy_balancer to forward dynamic requests to a few Mongrel processes, and some rewrite rules to serve static content directly (a typical setup for Rails). That's configured as a virtual host, in case it matters. This web site features vide