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
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:
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 ?
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
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 ?