如何使用 apache 日志检查完整的文件下载 [英] How to use apache logs to check complete file downloads

查看:32
本文介绍了如何使用 apache 日志检查完整的文件下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用此脚本的文件托管站点 MFHS.

I have a file hosting site that's using this script MFHS.

我想开发一个我自己的积分系统,只有当访问者下载整个文件时才会奖励积分.

I want to develop a point system of my own in which points will be rewarded only if the visitor downloaded the whole file.

我如何跟踪它以及与它相关的日志保存在 apache 中的什么位置?我正在使用 Ubuntu 服务器.

How can I track it and where are the logs relating to it saved in apache? I am using Ubuntu server.

或者有没有更简单的方法?我服务器上的平均文件大小为 300mb,最大文件大小为 3gb.

Or else is there any easier way? The average file sizes on my server is 300mb max file size is 3gb.

推荐答案

将 %X 添加到您的日志配置 - 参见 mod_log_config 用于解释值.

Add %X to you log config - see mod_log_config for interpreting the values.

这篇关于如何使用 apache 日志检查完整的文件下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆