apache集成mldonkey的使用方法

使用mldonkey有一段时间了,但是担心安全问题,一直没有将mldonkey暴露在公网上,也就是说没有开放mldonkey的4080端口供广域网使用,因此只能在家里(内网)访问mldonkey。

现在将mldonkey集成到apache中,这样就可以通过80端口访问到mldonkey,供在单位或者其他地方使用。

开始我打算配置到https下,因为是基于别名而不是基于ip地址的虚拟主机,所以只能在已有的https虚拟主机上映射一个目录,比如这样:

RewriteEngine On

RewriteRule ^/mldonkey$ mldonkey/ [R]
ProxyPass /mldonkey http://localhost:4080

这样可以通过类似如下链接访问:

https://your_domail/mldonkey

但是无法和firefox插件mldonkey protocol handler一起工作(使用mldonkey的firefox插件)。我只好另想办法,为mldonkey创建apache单独的虚拟主机,基于http协议,配置如下:

     RewriteEngine On
     ProxyRequests Off
     ProxyPass  /  http://localhost:4080/
     ProxyPassReverse / http://localhost:4080/

PDF格式創作    发送文章为PDF   

这篇文章上的评论的 RSS feed TrackBack URI

Leave a Reply