【问题标题】:why toran generate package json with domain : examle.org?为什么 toran 生成带有域的 json 包:examle.org?
【发布时间】:2015-12-09 12:49:54
【问题描述】:

我是一步一步做toran代理文档的,但是出现了问题

我已经在 parameters.yml 中配置了 toran_host 和 toran_prot,但是生成的包 josn 仍然使用域

example.org

包.json 我试图找到问题来源,但应用程序对我来说太复杂了。

这是我的parameters.yml:

parameters:
    # this secret should be changed to something unique and random if possible
    secret:         ThisTokenIsNotSoSecret-Change-It

    # http or https depending on your hosting setup
    toran_scheme:   http

    # in case you use non-standard ports you can update them here
    toran_http_port: 91
    toran_https_port: 443

    # the hostname toran is hosted at
    toran_host: 121.199.35.34:91

    # e.g. /foo if toran is hosted in a sub-directory, or leave it empty if it is on its own domain, no trailing slash!
    toran_base_url:

【问题讨论】:

    标签: toran-proxy


    【解决方案1】:

    但是您是否尝试过清除缓存?删除 ·app/cache/·中的所有内容,然后再试一次,因为参数需要 在创建缓存之前正确设置,否则不会重建。

    这个答案来自 Jordi 给我的电子邮件,他是 toran 的作者,感谢您的辛勤工作。

    【讨论】:

      【解决方案2】:

      你必须在app/config/parameters.yml修改你的配置文件:

      # the hostname toran is hosted at
      toran_host:     example.org
      

      然后删除app/cache/prod处的生产缓存,最后再次运行cron作业php bin/cron -v

      如需进一步说明,请参阅此处的官方安装文档:https://toranproxy.com/download

      【讨论】:

        猜你喜欢
        • 2020-12-06
        • 1970-01-01
        • 2012-01-18
        • 1970-01-01
        • 2013-10-19
        • 2014-03-16
        • 2017-10-12
        • 2017-05-27
        • 2014-01-28
        相关资源
        最近更新 更多