Log access to cached content by 3rd party



The question is pretty much the same as this one: How to log a request to apache access log if it's cached by Varnish

but instead of varnish let's say I am using CloudFlare.

Is there any way to get the access logs to my server? Or I depend fully on the tools offered by the CDN?

I mean access to cached content like pdf files or static html that is served directly from Cloudflare/cache system external to my server.


Related to : Log access to cached content by 3rd party
3rd party software !
Network & Servers
Hi When I insert install disc for aol getting message 'list of available apps is out of date - connect to internet. Looks like a catch 22 situation. Any help (in simple language please as I do not have a clue about programming)
Thanks
how many of you use 3rd party software?
Network & Servers
I am making a little deal with myself, sort of like a new years resolution but a new release resolution (that was horrible)
I am going to see how long I can go without using any downloaded apps or anything just to see how well I can use Ubuntu out of the box with all my day to day tasks. Cause before being a windows user I was always used to having to install all my programs after a format or fresh install..
but Ubuntu is fully loaded. It has everything you need, so I don't longer need to install all these programs as soon as I install..
But you all probably already do this, I just thought it was cool for myself to do..that and its ..4am here
How to use 3rd party API?
Network & Servers

I want to include 3rd party API in my application.

What are the steps to follow?

What are the limitations of it and guidelines?


Do we get a access.log entry for content served from cache in nginx
Network & Servers

For a configuration that looks like

http {
    proxy_cache_path /etc/nginx/cache keys_zone=one:10m;
    server {
        proxy_cache one;
        listen 80;
        server_name x.y.in www.x.y.in;

        location / {
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header HOST $http_host;
            proxy_pass http://127.0.0.1:1234;
            proxy_redirect off;
        }
    add_header Access-Control-Allow-Origin *;
    }
}

I was doing the ab (apache benchmark). And interestingly, I did not see anything in access.log file for cached content, I can see that some files popped up in the cache directory that I had specified.

Is that behavior expected, does cached content not show up in access.log ? Is it configurable ?

Went through the nginx docs as well, could not find anything related to this.


tracking unique visits with 3rd party cookie and 3rd party code
Network & Servers

I'm using cookies to track # of site visits, # of unique visitors, and # of conversions based on a variable (price). It's all working fine, until I run this from a different domain.

First thought was to assume it's not allowing the cookie, but it is. Each visit is still tracked, as is conversion, and in-fact, a repeat user is still even being recognized as such (they now always see same variable), but each visit is being counted as a new unique visitor.

if(!isset($_SESSION['cookie_id']) ||
$_SESSION['cookie_id']!=$settings['cookie_id']){
    $_SESSION['cookie_id'] = $settings['cookie_id'];
    unset($_SESSION['visited']);
    unset($_SESSION['converted']);
}
if(!isset($_SESSION['visited'])){
    $_SESSION['visited'] = true;
    $log_visitor = true;
}
if(!isset($_SESSION['converted']) && isset($conversion)){
    $_SESSION['converted'] = true;
    $log_conversion = true;
}

$price_index = $variation; 
$price = $prices[$price_index];
$l = $visitor_log_contents[$price_index];
if(!isset($l->visitors))$l->visitors = 0;
$l->visitors++; //total visits
if(isset($log_visitor))$l->unique_visitors++; //unique visitors **
FAILS **
if(isset($log_conversion))$l->conversions++; // conversions
$total_conversions = 0;

So, to reiterate, if I load this file at the same domain that's being tracked, everything work fine. But load it from another domain, and repeat visits are counted as unique, even though they are being recognized as repeated.

I have added an Access-Control-Allow-Origin: *, but to no avail.

p.s. - I'm a total PHP noob. My high SO points are all due to Bootstrap/CSS. Just getting into PHP now, so forgive me if I need a little hand-holding:)


Log access to cached content by 3rd party
Network & Servers

The question is pretty much the same as this one: How to log a request to apache access log if it's cached by Varnish

but instead of varnish let's say I am using CloudFlare.

Is there any way to get the access logs to my server? Or I depend fully on the tools offered by the CDN?

I mean access to cached content like pdf files or static html that is served directly from Cloudflare/cache system external to my server.



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .