drouie2014 2015-01-12 15:49
浏览 48
已采纳

什么是var文件php指的是什么

I deployed an PHP app on OpenShift, things are kinda working but in my php.log i am constantly seeing [error] [client IP_ADR] File does not exist: /var/lib/openshift/.../app-root/runtime/repo/public/var, referer: SOME_URL SOME_URL is different most of the time, I thought it had to do something with sessions, but sessions are working (and I changed session save path). What is the var file and why are pages referring to it?

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • dongqieli4164 2015-01-12 15:55
    关注

    That URL is most likely the HTTP Referer. When a user visits your site by clicking on a link, the page containing the link will be send along with the request in a HTTP header. This gets logged by your webserver.

    But why the error?

    It could be that some part of your html/css/js is trying to include some file that does not exist, or maybe some bot is just visiting your site looking for a var file that does not exist.

    Try to visit a non exiting path on your site. Do you get the same kind of message then?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图2.0 版本点聚合中Marker的位置无法实时更新,如何解决呢?
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题