timeassistant commented on issue #1745: How to access admin console?
URL: 
https://github.com/apache/incubator-pagespeed-mod/issues/1745#issuecomment-408133750
 
 
   You may also need to add something like this to your pagespeed conf file
   
   
   
   # disable fallback for below
   ModPagespeedStatisticsDomains Disallow *
   ModPagespeedGlobalStatisticsDomains Disallow *
   ModPagespeedMessagesDomains Disallow *
   ModPagespeedConsoleDomains Disallow *
   ModPagespeedAdminDomains Disallow *
   ModPagespeedGlobalAdminDomains Disallow *
   # Restrict access to only hostname.domain.com
   ModPagespeedStatisticsDomains Allow hostname.domain.com
   ModPagespeedGlobalStatisticsDomains Allow hostname.domain.com
   ModPagespeedMessagesDomains Allow hostname.domain.com
   ModPagespeedConsoleDomains Allow hostname.domain.com
   ModPagespeedAdminDomains Allow hostname.domain.com
   ModPagespeedGlobalAdminDomains Allow hostname.domain.com
   
   
   and then further down the file too
   
    <Location /mod_pagespeed_statistics>
         Order allow,deny
         # You may insert other "Allow from" lines to add hosts you want to
         # allow to look at generated statistics.  Another possibility is
         # to comment out the "Order" and "Allow" options from the config
         # file, to allow any client that can reach your server to examine
         # statistics.  This might be appropriate in an experimental setup or
         # if the Apache server is protected by a reverse proxy that will
         # filter URLs in some fashion.
         Allow from localhost
         SetHandler mod_pagespeed_statistics
     </Location>
   
   <Location /pagespeed_admin>
      <IfModule mod_rewrite.c>
         RewriteEngine Off
      </IfModule>
      Order allow,deny
      Allow from localhost
      SetHandler pagespeed_admin
   </Location>
   <Location /pagespeed_global_admin>
      <IfModule mod_rewrite.c>
         RewriteEngine Off
      </IfModule>
      Order allow,deny
      Allow from all
      SetHandler pagespeed_global_admin
   </Location>
   
   (Please note I disabled all external access to everything but 
/pagespeed_global_admin/ if you want access to all of these change it from 
allow from localhost to allow from all
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to