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/
即可.
本作品采用创作共用版权协议, 要求署名、非商业用途和保持一致. 转载本站内容必须也遵循署名-非商业用途-保持一致的创作共用协议.

发表回复