分类
服务器日志

Transmission nginx 配置

不想用端口号访问可以配置Transmission如下, nginx

upstream transmissionweb {
        server localhost:9091;
}
server {
        listen   80;
        root /var/www;
        index index.php index.html index.htm;
        server_name youhost.name.com;
        location /transmission{
                proxy_pass http://transmissionweb;
                proxy_redirect      off;
                proxy_buffering     off;
                proxy_set_header    Host            $host;
                proxy_set_header    X-Real-IP       $remote_addr;
        }
}

然后你可以访问youhost.name.com/transmission. 但是这时有些子目录(style, javascript,images等)找不到, 需要在/var/www作一链接:
sudo ln -s /usr/share/transmission/ /var/www/
即可.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据