Skip to content

Commit 3484eb5

Browse files
committed
configure mod_pagespeed web interface
1 parent 1f2dfeb commit 3484eb5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

app/run.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,25 @@ cat <<EOT >> /etc/apache2/apache2.conf
148148
</IfModule>
149149
EOT
150150

151+
cat <<EOT >> /etc/apache2/mods-available/pagespeed.conf
152+
# https://www.howtoforge.com/how-to-install-and-configure-mod-pagespeed-module-with-apache-on-ubuntu-1804/
153+
<Location /pagespeed_admin>
154+
Order allow,deny
155+
Allow from localhost
156+
Allow from 127.0.0.1
157+
Allow from all
158+
SetHandler pagespeed_admin
159+
</Location>
160+
161+
<Location /pagespeed_global_admin>
162+
Order allow,deny
163+
Allow from localhost
164+
Allow from 127.0.0.1
165+
Allow from all
166+
SetHandler pagespeed_global_admin
167+
</Location>
168+
EOT
169+
151170

152171

153172

0 commit comments

Comments
 (0)