Discover Centmin Mod today
Register Now

Nginx PageSpeed ngx_pagespeed advertising conflicts ?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by eva2000, Jun 2, 2014.

  1. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    All of my code are Advance Code. Where did you notice smart sizing ads?

     
  2. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    Yes, here's mine:

    Code:
    #  Ensure requests for pagespeed optimized resources go to the pagespeed
    #  handler and no extraneous headers get set.
    location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header "" ""; }
    location ~ "^/pagespeed_static/" { }
    location ~ "^/ngx_pagespeed_beacon$" { }
    location /ngx_pagespeed_statistics { allow 127.0.0.1; deny all; }
    location /ngx_pagespeed_global_statistics { allow 127.0.0.1; deny all; }
    location /ngx_pagespeed_message { allow 127.0.0.1; deny all; }
    location /pagespeed_console { allow 127.0.0.1; deny all; }
    location ~ ^/pagespeed_admin { allow 127.0.0.1; deny all; }
    location ~ ^/pagespeed_global_admin { allow 127.0.0.1; deny all; }
     
  3. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    What about pagespeedadmin.conf?
    Need to change /ngx_pagespeed_static/ also?
    Code:
    #######################################################
    # 1.8.31.2 beta required paths
    # https://developers.google.com/speed/pagespeed/module/admin
    ######################################
    pagespeed FileCachePath /var/ngx_pagespeed_cache;
    pagespeed StatisticsPath /ngx_pagespeed_statistics;
    pagespeed GlobalStatisticsPath /ngx_pagespeed_global_statistics;
    pagespeed MessagesPath /ngx_pagespeed_message;
    pagespeed ConsolePath /pagespeed_console;
    pagespeed AdminPath /pagespeed_admin;
    pagespeed GlobalAdminPath /pagespeed_global_admin;
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    in the class for the ad but that your custom class ?

    Code:
    <ins class="adsbygoogle phc-top-thread-smartsizing" style="display: inline-block; width: 728px; height: 90px;" data-ad-client="ca-pub-3819845474321072" data-ad-slot="8244371602" data-adsbygoogle-status="done">
    no that's different no need to change that;s location of your statistics

    but i am seeing your ads fine
     
  5. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    Yes, I didn't change my ads unit, I just grab the advance code so yes that's just my class name.
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    anyway, I am seeing your ads fine though Opera 21 and Chrome 35
     
  7. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
  8. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    Yes, I tested it many time.
    Sometimes it works sometime do not.
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    But it always works on my forums ? or only sometimes ?

    wonder how @BamaStangGuy is fairing with this so far ?
     
  10. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    I will test this forum many times then, will post feedback if encounter an error :)
     
  11. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    Maybe something wrong order on my domain config, Can you please share your current domain config on https ?
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  13. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    I'm tired of debugging this pagespeed, ended up disabling it totally. :mad:
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    shame - works nicely on this forum
     
  15. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    Don't know what's the problem.
    I almost copied all your config, config order, all filters still got those issue on 1st time visit.
     
  16. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    i'm not having problems either on your forums.. maybe it's your browser/pc ?
     
  17. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    I don't know, but that's the only reason I observe few months ago my revenue drastically drop when defer js is enabled.
     
  18. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that's probably due to missing div wrapper and not using advanced Adsense modified responsive async code I mentioned
     
  19. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    1:25 PM
    Mainline
    10.2
    I always wrap ads with div but not using the advance code, Smart Sizing looks great with all screen size.
     
  20. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    3:25 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Advanced code is responsive too.. checked on my Android 4.3", 7.7" and 10" devices for this forum :)