Ubuntu的光油移动检测结果中找不到网页? [英] Ubuntu Varnish mobile detection results in to page not found?
问题描述
我想这个例子做使用清漆移动设备检测 https://github.com/varnish/varnish-devicedetect/blob/master /INSTALL.rst
I am trying this example to do mobile device detection using varnish https://github.com/varnish/varnish-devicedetect/blob/master/INSTALL.rst
我实施例1和现在正试图通过测试工具在底部进行测试 的https://github.com/varnish/varnish-devicedetect/blob/master/INSTALL.rst#testing-tools
I implemented Example 1 and now trying to test it via the testing tools at the bottom https://github.com/varnish/varnish-devicedetect/blob/master/INSTALL.rst#testing-tools
我不能确定如何工作的这一部分,它给了我找不到页面
I am unsure how to work this part, it gives me Page not Found
Now you can access it through:
http://localhost:5911/devicetest/ , or
http://localhost:6081/devicetest/ # Change 6081 into your Varnish listening port.
有关后端比如我现在用的端口号5912,这是我在devicedetect-dev.vcl文件和后端/ example-backend.py文件更新。
For the backend example I am using port no 5912, which I updated in the devicedetect-dev.vcl file and backend/example-backend.py file.
当我这样做mywebsiteaddress:5912 / set_ua_device /,我得到一个找不到页面错误。 我不能确定我在这种情况下丢失?
When I do mywebsiteaddress:5912/set_ua_device/ , I get a Page not found error. I am unsure what I am missing in this case?
我也试过例3安装,它为我工作正常。虽然我会preFER,使设备检测通过举例1.我Ubuntu的AWS服务器上尝试此。
I also tried Example 3 install and it works fine for me. Although I would prefer to enable the device detection via Example 1. I am trying this on ubuntu AWS server.
更新: 重新启动后,无论是Apache和清漆。我现在可以实现的测试,工具步骤1和Cookie的设置。虽然mywebsiteaddress:5912 / set_ua_device /仍会导致一个 404找不到页面
Update: After restarting both the apache and varnish. I can now achieve step1 of testing-tools and a cookie is being set. Although mywebsiteaddress:5912/set_ua_device/ still results in a 404 Page not found
不知道我在这里缺少什么。 谢谢你。
Not sure what I am missing here. Thanks.
推荐答案
有关的人来此页面上搜索如何为使用清漆不同的设备。除漆,devicedetect你也可以尝试不同的解决方案。
for people coming on this page searching how to serve for different devices using varnish . other than varnish-devicedetect you can also try a different solution .
试试这个教程从原子对象
他们遵循一个非常简单的方法,所有你需要做的就是添加一些VCL规则,适合菜鸟和我一样
they follow a very simple approach and all you need to do is add few vcl rules, suited for noobs like me
这篇关于Ubuntu的光油移动检测结果中找不到网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!