WebFaction
Community site: login faq

hi,

I'm serving out a website using an apache instance created by webfaction for a django app, where I've added mod_pagespeed similarly as described at blog.webfaction.com/2010/11/speed-up-your-pages-with-mod_pagespeed/

This is my httpd.conf file:

ServerRoot "/home/jalagati/webapps/virtualhosts/apache2"

LoadModule authz_core_module modules/mod_authz_core.so
LoadModule dir_module        modules/mod_dir.so
LoadModule env_module        modules/mod_env.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module       modules/mod_mime.so
LoadModule rewrite_module    modules/mod_rewrite.so
LoadModule setenvif_module   modules/mod_setenvif.so
LoadModule wsgi_module       modules/mod_wsgi.so
LoadModule unixd_module      modules/mod_unixd.so
LoadModule expires_module    modules/mod_expires.so
LoadModule pagespeed_module modules/mod_pagespeed_ap24.so

ModPagespeed on
ModPagespeedFileCachePath "/home/jalagati/webapps/virtualhosts/apache2/cache/"
SetOutputFilter MOD_PAGESPEED_OUTPUT_FILTER

LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
ErrorLog /home/jalagati/logs/user/error_customport.log

Listen 11559
KeepAlive Off
SetEnvIf X-Forwarded-SSL on HTTPS=1
ServerLimit 1
StartServers 1
MaxRequestWorkers 5
MinSpareThreads 1
MaxSpareThreads 3
ThreadsPerChild 5

WSGIPythonPath /home/jalagati/webapps/etr/etr/src:/home/jalagati/webapps/etr/venv/lib/python3.4/site-packages
WSGIRestrictEmbedded On
WSGILazyInitialization On

[...]

<VirtualHost *:11559>
    DocumentRoot /home/jalagati/webapps/virtualhosts/fontanus.hu
    ServerName fontanus.hu
    ServerAlias www.fontanus.hu

    CustomLog /home/jalagati/logs/user/access_fontanus.hu.log combined
    ErrorLog /home/jalagati/logs/user/error_fontanus.hu.log


    <FilesMatch "\.(jpe?g|png|gif|js|css)$">
    ExpiresActive On
        ExpiresDefault "access plus 1 week"
     </FilesMatch>

</VirtualHost>

I've checked out what the pagespeed debug app (SetHandler mod_pagespeed_statistics) knows about itself:

Version: 14: on

Filters
ah  Add Head
cc  Combine Css
jc  Combine Javascript
gp  Convert Gif to Png
jp  Convert Jpeg to Progressive
jw  Convert Jpeg To Webp
mc  Convert Meta Tags
pj  Convert Png to Jpeg
ws  When converting images to WebP, prefer lossless conversions
ec  Cache Extend Css
ei  Cache Extend Images
es  Cache Extend Scripts
fc  Fallback Rewrite Css 
if  Flatten CSS Imports
hw  Flushes html
ci  Inline Css
ii  Inline Images
il  Inline @import to Link
ji  Inline Javascript
js  Jpeg Subsampling
rj  Recompress Jpeg
rp  Recompress Png
rw  Recompress Webp
ri  Resize Images
cf  Rewrite Css
jm  Rewrite External Javascript
jj  Rewrite Inline Javascript
cu  Rewrite Style Attributes With Url
cp  Strip Image Color Profiles
md  Strip Image Meta Data

Options
  EnableRewriting (e)   1
  FileCachePath (afcp)  /home/jalagati/webapps/virtualhosts/apache2/cache/

Domain Lawyer

Invalidation Timestamp: (none)

Still, my js and css are not combined at all. How could I fix this?

asked 28 Nov '16, 17:12

Akasha
11711
accept rate: 0%


Which links are you having issues with exactly?

When I view the site most css and js is being processed by page speed. The ones which aren't have a query at the end of the url,

greensock.js?ver=1.11.8

You would have to use a static version of that file to have it work correctly.

permanent link

answered 29 Nov '16, 04:30

johns
5.4k412
accept rate: 23%

edited 29 Nov '16, 04:31

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×10
×5

question asked: 28 Nov '16, 17:12

question was seen: 1,487 times

last updated: 29 Nov '16, 04:31

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM