SPDY support in Custombuild

I think mod_spdy is only available for apache 2.2 now, and there is no stable release for apache 2.4 yet :) Am I right?
 
I think mod_spdy is only available for apache 2.2 now, and there is no stable release for apache 2.4 yet :) Am I right?

So far I can tell you are right, the project is now given to apache so they are busy with integration with the 2.4 version and up.
 
nginx has it.
I thought 2.4 had a release available but it was not even beta.
 
Yes, mod_spdy is only available for Apache 2.2 but let's hope they are working on apache 2.4 integration now that they own the project.

For Nginx
From what I understand Custombuild 2.0 is using Nginx 1.6 and 1.6 has SPDY 3.1 support. So that's an easy one.

I'm planning to switch from Apache to Nginx when I install new hardware in a few months when we have CentOS 7 support in DA. :)
 
For Nginx
From what I understand Custombuild 2.0 is using Nginx 1.6 and 1.6 has SPDY 3.1 support. So that's an easy one.

NGINX is quick enough and without SPDY, that's not an issue for NGINX to keep a bigger number of SSL connections open in comparison with Apache.


Hey, probably you'd like to check this: http://www.guypo.com/technical/not-as-spdy-as-you-thought/

they say:

The results show SPDY, on average, is only about 4.5% faster than plain HTTPS, and is in fact about 3.4% slower than unencrypted HTTP.
 
Nice! Keep us updated about the performance.

They also write about worker MPM here
https://developers.google.com/speed/spdy/mod_spdy/php?hl=nl

I saw that page, but I'm not sure if I'm going to be able to get it working.
I also use mod_php so I have to switch apache to Worker MPM.
I also noticed a lot of people using php-fpm (it's safe and also works good with spdy and caching)
So this is why I would like to see custombuild integration... It would make this so much easier.

I don't have a spare server at the moment, and I only have a limited knowledge to test this. But I would like to learn more about this.
 
Also, SPDY requires mod_ssl with NPN support, so custombuild should also add a npn patch on mod_ssl. (the current way i do is remove the static mod_ssl module on custombuild, and use the shared one build by mod-spdy)(or another way, add a line the patch mod_ssl with NPN support)
@Fred. , they mean if using mod_spdy, then you should not use prefork mpm(and mod_php)(and I got some problem with PHP if using prefork php+mod_spdy). You should should run php with Worker MPM + FastCGI or PHP-FPM (but CB chooses Event MPM, which is not supported by mod_spdy)
 
You can now set MPM to Worker in CB 2.0. Rev 932 is available on files1.
 
@Fred. , they mean if using mod_spdy, then you should not use prefork mpm(and mod_php)(and I got some problem with PHP if using prefork php+mod_spdy). You should should run php with Worker MPM + FastCGI or PHP-FPM (but CB chooses Event MPM, which is not supported by mod_spdy)

Oh, ok :)
I think I'm going to switch to worker mpm and php-fpm then.
You can now set MPM to Worker in CB 2.0. Rev 932 is available on files1.

Thanks Martynas :)
I really appreciate your work. I love custombuild! :)
 
I'd like to say, mod_spdy is quite buggy. It still made a few conflicts with some apps like, OwnCloud and WordPress.
However, NGINX has officially supported SPDY, why not add this feature in CustomBuild? I guess this could be useful when using NGINX as reverse proxy.

Also,
I'll be selfish and vote against it since it supports so few platforms: CentOS and Debian

I did not understand what you meant, you mean spdy protocol or mod_spdy? but both of them do support Centos and Debian and many others.
 
Last edited:
I did not understand what you meant, you mean spdy protocol or mod_spdy? but both of them do support Centos and Debian and many others.
The officially support only 4: CentOS,Fedory,Debian,Ubuntu an with Apache 2.2.
My point is that I'd rather the CB team focuses on some of the other tasks at hand rather than on this project which is not mature enough and useful enough.
 
Last edited:
The officially support only 4: CentOS,Fedory,Debian,Ubuntu an with Apache 2.2.
My point is that I'd rather the CB team focuses on some of the other tasks at hand rather than on this project which is not mature enough and useful enough.

They have given out the source code, you can build the DSO by yourself.
And the RPMs by Google would not work under the DirectAdmin environment, as they are built for the precompiled apache in yum/apt.
 
You're right, I just saw that someone managed to make it work on FreeBSD, after patching the hell out of it :)
So, I re-read the whole thread and if NGINX includes it and it adds some real benefits to most sites, then why not? We would still need some proof of real world benefits vs simply using NGINX as a reverse proxy.

Same thing with the Apache 2.4 module. Let's see if worker MPM + PHP-FPM + SPDY delivers a good ROI (>10%).

There needs to be an easy way to turn it off, per site, via DA's custom HTTPD config page.
 
I have just tried using worker MPM + FastCGI + SPDY, it appears that the mod conflicts with PHP, or others. (Owncloud admin page doesn't load, wordpress disconnect in compose article page)
I would only recommend using SPDY in Nginx.
Hopes CB would add SPDY support in Nginx.
 
So, can we install mod_SPDY with apache 2.4 ? if yes, can i have some details on how can i do it? thanks. :)
 
Back
Top