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

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    Mainline
    10.2
    All of my code are Advance Code. Where did you notice smart sizing ads?
     
  2. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    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

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    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

    44,186
    10,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,572
    Local Time:
    11:56 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    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

    44,186
    10,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,572
    Local Time:
    11:56 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    anyway, I am seeing your ads fine though Opera 21 and Chrome 35
     
  7. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    Mainline
    10.2
  8. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    Mainline
    10.2
    Yes, I tested it many time.
    Sometimes it works sometime do not.
     
  9. eva2000

    eva2000 Administrator Staff Member

    44,186
    10,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,572
    Local Time:
    11:56 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    Mainline
    10.2
    I will test this forum many times then, will post feedback if encounter an error :)
     
  11. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    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

    44,186
    10,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,572
    Local Time:
    11:56 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  13. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    Mainline
    10.2
    I'm tired of debugging this pagespeed, ended up disabling it totally. :mad:
     
  14. eva2000

    eva2000 Administrator Staff Member

    44,186
    10,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,572
    Local Time:
    11:56 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    shame - works nicely on this forum
     
  15. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    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

    44,186
    10,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,572
    Local Time:
    11:56 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    i'm not having problems either on your forums.. maybe it's your browser/pc ?
     
  17. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    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

    44,186
    10,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,572
    Local Time:
    11:56 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    9:56 AM
    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

    44,186
    10,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,572
    Local Time:
    11:56 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Advanced code is responsive too.. checked on my Android 4.3", 7.7" and 10" devices for this forum :)