Giter Club home page Giter Club logo

Comments (4)

GrahamDumpleton avatar GrahamDumpleton commented on July 4, 2024

Responding in:

https://groups.google.com/d/topic/modwsgi/-dUBBFI0d5o/discussion

from mod_wsgi-docker.

luckydonald avatar luckydonald commented on July 4, 2024

The response

For all the users not wanting to login with a google account:

To get mod_pagespeed incorporated into the image and used will take a few steps which are going to be a little bit fiddly.

What the steps are exactly is going to depend a bit on whether you are using mod_wsgi-docker:python-2.7 or mod_wsgi-docker:python-2.7-onbuild.
Which is used dictates how you trigger the download and building of mod_pagespeed into the image so it can be used. I will defer explaining that until you can tell me which Docker image you are using and what your Dockerfile looks like.

Also, hopefully all the compiler bits needed are already a part of the image. From memory mod_pagespeed is written in C++. I think I have g++ as part of the image.

Presuming mod_pagespeed is installed into the module directory of the Apache installation the image provides, then the next step is to incorporate that into the mod_wsgi-express configuration.

Since that is auto generated, what would need to be done is create a Apache configuration file snippet and tell mod_wsgi-express to include that at the end.

python sonofatailorapp/manage_prod.py runmodwsgi config.wsgi --port=80 --log-to-terminal --startup-log \
        —include-file pagespeed.conf

The pagespeed.conf file would then, at a guess, have something like:

    <IfVersion < 2.4>
      LoadModule pagespeed_module ${MOD_WSGI_MODULES_DIRECTORY}/mod_pagespeed.so
    </IfVersion>
    <IfVersion >= 2.4.2>
      LoadModule pagespeed_module ${MOD_WSGI_MODULES_DIRECTORY}/mod_pagespeed_ap24.so
    </IfVersion>

    ModPagespeed on

    AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html

Let me know which Docker image you are using and your Dockerfile and I will see if I can work out the recipe to get it incorporated into a derived image.

Graham

from mod_wsgi-docker.

GrahamDumpleton avatar GrahamDumpleton commented on July 4, 2024

You don't need to login to Google Groups to view the referenced post. The group is public and anyone can view it through the Google Groups interface.

from mod_wsgi-docker.

luckydonald avatar luckydonald commented on July 4, 2024

I might be mistaken, sorry. But in any case, now we also have a backup.

from mod_wsgi-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.