ngx_pagespeed

gjvdheuvel

Verified User
Joined
May 25, 2016
Messages
16
Hi All,

I had the good idea to do Google's ngx_pagespeed implementation for my multi domain Directadmin setup, and actually all untill the point of implementation is very clear.
I follow this:
https://www.modpagespeed.com/doc/build_ngx_pagespeed_from_source
to get it to build and I rebuild custombuild with the
Code:
--add-modules=/path_to_pagespeedmod
and all is happy and works.

I looked at this topic: https://forum.directadmin.com/showthread.php?t=51272 but if I follow it, it doesn't work for me.

Now I find that to make it active for a domain, I need to go to DirectAdmin -> Admin Level -> Custom HTTPD Configurations
Select domain, and then add:

Code:
pagespeed on;
pagespeed FileCachePath /var/ngx_pagespeed_cache;
pagespeed EnableFilters flatten_css_imports;

But it doesn't work for me after that.

Question:

If I add it to the top field and hit 'Save' it will complain about syntax, but that makes sense right, copying nginx code into Apache httpd.conf for the domain seems weird.

Do I need to restart nginx and apache after this for it to work ?
 
Hello,

Sorry, but "Does not work for me" does not give us any valuable information. If you need any help for us, kindly help us first and provide as many details as you have:

- steps you processed, including configs
- steps which failed, including full text of errors


If you don't provide requested details then you'd better get someone to connect to your server and investigate it and/or make it working (for free or as a paid service). If I do it it will cost you hourly rate.
 
Back
Top