Comments (4)
Responding in:
https://groups.google.com/d/topic/modwsgi/-dUBBFI0d5o/discussion
from mod_wsgi-docker.
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.
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.
I might be mistaken, sorry. But in any case, now we also have a backup.
from mod_wsgi-docker.
Related Issues (20)
- New Apache version HOT 1
- How do I modify the httpd.conf for apache? HOT 2
- static files HOT 16
- : "httpd (pid 7) already running" HOT 1
- Error while building on Windows 10 HOT 5
- docker hub fails with non-onbuild versions HOT 5
- Documentation about process owner HOT 1
- Support for Client Certificates HOT 11
- pip packages not getting cached HOT 9
- Documentation for mod_wsgi express command line flags HOT 1
- 403 error on root when using --mount-point HOT 1
- debian mirrors used in mod-wsgi-docker:python-3.5-onbuild image failing HOT 1
- Enable compress-responses / mod_deflate
- Context path or SCRIPT_NAME when deployed in docker, and proxied throgh front-end apache HOT 1
- ---
- Error while building python-2.7-onbuild HOT 2
- Debian Package Issues HOT 1
- Officially abandon mod_wsgi-docker project. HOT 3
- How to update limit-request-body using this image? HOT 8
- Failed to fetch jessie packages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mod_wsgi-docker.