google-code-export / wallproxy-plugins

Automatically exported from code.google.com/p/wallproxy-plugins
0 stars 0 forks source link

Discuz论坛附件问题 #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
dz论坛不能下载附件.并且已登录的必须重新登录.
Error code 502.
Message: ['Server: Urlfetch error: ApplicationError: 2 ', 'Server: Urlfetch 
error: ApplicationError: 2 ']. 
我把我那个wallproxy暂先移走,在原有文件夹中放上这个wallproxy-
plugins版本, 能运行. 修改配置,把'simple'改为'forold'. 
问题还是没解决. 
是不是我缺了什么步骤?

Original issue reported on code.google.com by joshat...@gmail.com on 9 Jun 2011 at 10:27

GoogleCodeExporter commented 9 years ago
GAE的IP不是唯一的,你可以通过PHP版服务端来解决
PHP版服务端的确是设置在forold中,但需要的是PHP版,而不是��
�持forold的GAE版

Original comment by dtma...@163.com on 10 Jun 2011 at 3:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
谢谢答复. 这些php什么的我不懂啊. 
是在wallproxy里面设置一下就可以? 
还是要自己建一个php的网站? 
弄好后附件走php,其他还走原来的, 是这样吗?

Original comment by joshat...@gmail.com on 10 Jun 2011 at 10:05

GoogleCodeExporter commented 9 years ago
需要PHP服务端,然后在客户端设置。

Original comment by uxf...@gmail.com on 11 Jun 2011 at 1:44

GoogleCodeExporter commented 9 years ago
我重新学习了一遍:
申请了免费php空间. 
上传php服务端fetch.php到public_html文件夹.
把wallproxy-plugins设置为:

# 指定服务端类型gaeproxy/forold/goagent/simple
server_type = 'forold'
forold = ['http://xxxxxx.veeserve.com/fetch.php']
plugins['plugins.forold'] = 'forold'

结果, 访问论坛正常(但变成游客了), 点击某附件, 出现错误:
502 Server: Urlfetch error: ApplicationError: 2 ....
如果右键附件用迅雷下载, 是可以的.
总之, 弄了这个php服务端, 和不弄完全没区别. 
错误代码也是一样的

Original comment by joshat...@gmail.com on 11 Jun 2011 at 3:18

GoogleCodeExporter commented 9 years ago
添加以下代码 使你要上的论坛走PHP 
而非默认的GAE,假定论坛域名为example1.com、example2.com、……��
�
def find_http_handler(method, url, headers):
    hostname = url.hostname
    if dnsDomainIs(hostname, 'example1.com'): return forold
    if dnsDomainIs(hostname, 'example2.com'): return forold
    return gaeproxy

Original comment by dtma...@163.com on 11 Jun 2011 at 3:38

GoogleCodeExporter commented 9 years ago
谢谢帮助. 添加上述代码后, 出现502...Message: ['Data format not 
match...hello world错误.
然后我disable application然后reenable, 又等了20分钟, 仍然出错

Original comment by joshat...@gmail.com on 11 Jun 2011 at 11:01