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/
即可.