Skip to Content

Nginx spdy+ssl+pagespeed reverse proxy with Docker

If you want to use nginx as a reverse proxy to your site, things are easy. Install nginx and use a configuration like this one:

server {
    listen 80;

    location / {

Now if you want to activate PageSpeed and spdy modules, you’ll have to recompile the whole thing.

Nonetheless, stay with me because there’s a Docker container for that.

ngxpagespeed is a precompiled nginx with SSL, PageSpeed and Spdy support.

Use this command to start nginx on the same network stack as the host so that nginx can easily proxy webapps running directly on the host.

docker run -d --net host -v $(pwd)/sites-enabled:/etc/nginx/sites-enabled dgageot/ngxpagespeed
comments powered by Disqus