Glad to hear it's working well for you!
> My current setup is Apache as a static resources server and proxy server for
> dynamic pages, and I was wondering if it's possible to indicate through
> environments variables or something like that when the request is being
> served as SPDY or HTTPS.
mod_spdy does this already (I guess that's not documented at the
moment; I'd better fix that). For requests served over SPDY, mod_spdy
sets the "SPDY_VERSION" environment variable to the SPDY version
number being used (for now, that's always "2", but in the future
mod_spdy will support later SPDY versions). For non-SPDY requests,
that environment variable will be empty. So if all you want to know
is whether the request is SPDY or not, just check if the SPDY_VERSION
environment variable is non-empty.
(There's also an inter-module function to check if SPDY is in use, for
authors of other Apache modules.)
> Also I was wondering if there's any plan to add some mechanism to indicate
> which resources could be served via server push.
Yes, server push is definitely on the to-do list for the near future
(although it's not yet supported in the current release). Most likely
that would be triggered by setting a special response header with the
URL(s) to be pushed (or by calling an inter-module function). Would
that work well for you? I'm definitely open to suggestions here.
Cheers,
-Matthew
No, I compile a new mod_spdy version from source and I'm still not
getting SPDY_VERSION.
Anything else I can do to give you more information?
--
Leandro
(inkel)
Maybe I should see if I can get mod_spdy to add a special header to
outgoing requests sent by mod_proxy to indicate that the original
request was sent via SPDY. Would that help?
On Fri, Apr 20, 2012 at 5:06 PM, Leandro López (inkel)
On Apr 20, 2012 6:36 PM, "Matthew Steele" <mdst...@google.com> wrote:
>
> Hmm. I wasn't previously familiar with Unicorn, so I'm looking it up
> now and trying to understand how that setup works. Is it the case
> that you have Apache set up with mod_spdy and mod_proxy, and are
> proxying requests from Apache to Unicorn, or am I misunderstanding?
> If that is in fact the case, then the environment variable set in
> Apache isn't going to make its way over to Unicorn, and hence isn't
> going to be visible to your app. Does that sound right, or am I
> confused?
>
That's right, Apache is in front of Unicorn and proxies requests to it.
> Maybe I should see if I can get mod_spdy to add a special header to
> outgoing requests sent by mod_proxy to indicate that the original
> request was sent via SPDY. Would that help?
That would be wonderful, and it'll be useful to any other proxied environment I guess.
Thanks!
inkel