我怎么知道我网站上的哪些静态页面正在访问?
我怎么知道我网站上的哪些静态页面正在访问? 通过静态页面,我的意思是pdf。
我使用Apache和PHP。
How can I know which static pages on my site are being visited?
By static pages I mean PDF for the most part.
I use Apache and PHP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要查看Apache配置。它将指定您要查看的日志文件的位置。
我相信默认位置是
/var/log/apache2
一旦那里,您可以使用tail -tail -f access.log
实时监视流量,或者您可以处理logFiles了解资源获得了多少命中。You need to look at your apache config. It will specify the location of logfiles that you want to look at.
I believe the default location is
/var/log/apache2
once there you can monitor traffic in real time with something liketail -f access.log
or you can process the logfiles to get an idea of how many hits the resources are getting.假设您在XAMPP中有(确保正确的cmod写入正确的窗口原因),则可以访问http:// localhost/0/导致服务器已打开,
假设您使用这样的链接来访问每个PDF文件:
http://localhost/0/file1.pdf
http://localhost/0/file2.pdf
假设您的php.ini设置确实允许运行error_log函数
您拥有这些文件
.htaccess
index.php
结果
。
“ https://www.real-domain-whaterver.extension” rel =“ nofollow noreferrer”> https://www.real-domain-whaterver.extension.extension
.htaccess可能是这样的(您应该设置路线,不是自动的)
因此,对于
https://www.real-domain-whaterver.extension/< --------'/'
:请记住,您应该有权在真实的公共领域上写入,您可以修改您
在 index.php
to
results.php
中
and
assuming you had in xampp (preferable windows cause for sure cmod write right are on) the folder 0 and you can access http://localhost/0/ cause the server is on ,
assuming you use links like this to acces each pdf file:
http://localhost/0/file1.pdf
http://localhost/0/file2.pdf
assuming your php.ini settings does allow to run error_log function
you have these files
.htaccess
index.php
results.php
then should be the fastest custom method to logs visits statistics to count pdf access files
on https://www.real-domain-whaterver.extension
.htaccess may be like this (you should set the route ,isn't automaticly)
so for
https://www.real-domain-whaterver.extension/ <---- '/'
:remember you should have right to write so on real public domain you could modify
in index.php
to
and results.php
to
and sure create someFOLDERtoLOG and setting cmod 775 or verify if is already(depend by administrator settings)