You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
Jeff Kaufman edited this page Jan 20, 2017
·
3 revisions
One of the most useful tools for debugging PageSpeed is just to start a server, manually send queries to it, and see what happens.
Starting the server
Apache
cd mod_pagespeed/devel/
make apache_install_conf && make apache_debug_restart
Nginx
cd ngx_pagespeed/
scripts/rebuild.sh
RUN_TESTS=false test/run_tests.sh
Sending queries
Our testing configurations have a "primary server" that doesn't care about host headers, and a "secondary server" that gets you different virtual hosts for different supplied host headers.
Primary server
Apache
curl localhost:8080/mod_pagespeed_example/
Nginx
curl localhost:8050/mod_pagespeed_example/
Secondary server
To see a list of secondary servers, look for the blocks in ngx_pagespeed/test/pagespeed_test.conf.template or mod_pagespeed/install/debug.conf.template that have @@SECONDARY_PORT@@.