Code: Select all
# Redirect requests to /transmission to /transmission/web
RewriteRule /transmission[/]?$ /transmission/web [R=permanent]
# Forward all requests for /transmission to transmission-daemon
ProxyPass /transmission http://127.0.0.1:9091/transmission
ProxyPassReverse /transmission http://127.0.0.1:9091/transmission
I have a problem with 2.00 and webui using proxy too.. realy not easy to configure for newbies
I used the howto https://trac.transmissionbt.com/wiki/WebProxy but without success.
I cannot connect to rpc.
xxx:9091 works fine but xxx/transmission wich redirect to xxx/transmission/web don't connect with rpc.
When I use the rpc pasword without apache password configuration, I can enter the pass then, I got "failed to connect" like if cookie or something are missing for proxy in the vhost file
I got this is /varlog/apache2/error.log
[Mon Jun 28 00:53:32 2010] [error] [client 82.232.36.xxx] client denied by server configuration: proxy:http://127.0.0.1:9091/transmission/rpc, referer: http://dl.xxx.org/transmission/web/
and this in I got this is /varlog/apache2/access.log
82.232.36.xxx - - [28/Jun/2010:01:03:29 +0200] "POST /transmission/rpc HTTP/1.1" 403 862 "http://dl.xxx.org/transmission/web/" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
if somebody have an idea why it's not working
There is my /etc/apache2/site-awailable/default
Code: Select all
<VirtualHost *:80>
RewriteEngine on
ServerAdmin webmaster@localhost
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
RewriteRule /transmission[/]?$ /transmission/web [R=permanent]
ProxyPass /transmission http://127.0.0.1:9091/transmission
ProxyPassReverse /transmission http://127.0.0.1:9091/transmission
<Location /transmission>
Order Allow,Deny
Allow from All
# Make pictures, scripts and styling client-cacheable
<IfModule expires_module>
ExpiresActive On
ExpiresByType image/gif A43200
ExpiresByType image/png A43200
ExpiresByType application/javascript A43200
ExpiresByType text/css A43200
</IfModule>
</Location>
</VirtualHost>
Code: Select all
<IfModule mod_proxy.c>
#turning ProxyRequests on and allowing proxying from all may allow
#spammers to use your proxy to send email.
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
#Deny from all
Allow from all
</Proxy>
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
ProxyVia On
</IfModule>
And finally there is my settings.json
Code: Select all
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"dht-enabled": true,
"download-dir": "/home/ftp/bt",
"encryption": 2,
"incomplete-dir": "/home/transmission/.config/transmission-daemon/incomplete",
"incomplete-dir-enabled": true,
"lazy-bitfield-enabled": true,
"lpd-enabled": false,
"message-level": 2,
"open-file-limit": 10,
"peer-limit-global": 1000,
"peer-limit-per-torrent": 100,
"peer-port": 51413,
"peer-port-random-high": 55535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": false,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": false,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{483ec74a13d5e905c0dc80a59a2dfc91ceb73ab3RNMDiL5Z",
"rpc-port": 9091,
"rpc-username": "bito",
"rpc-whitelist": "127.0.0.1,82.232.36.197",
"rpc-whitelist-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"speed-limit-down": 150000,
"speed-limit-down-enabled": true,
"speed-limit-up": 8000,
"speed-limit-up-enabled": true,
"start-added-torrents": true,
"trash-original-torrent-files": true,
"umask": 18,
"upload-slots-per-torrent": 50,
"watch-dir": "/home/transmission/.config/transmission-daemon/watch",
"watch-dir-enabled": true
}
Good luck paf!
ps: it's really weird if I enter http://dl.xxx.org/transmission/web in a browser already logged in with dl.xx.org:9091/transmission/web it works.. but not in a news windows, even without any password recqueried anywhere.
exemple :
Code: Select all
82.232.36.197 - - [28/Jun/2010:02:05:15 +0200] "POST /transmission/rpc HTTP/1.1" 409 382 "http://dl.xxx.org/transmission/web/" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
82.232.36.197 - - [28/Jun/2010:02:05:15 +0200] "POST /transmission/rpc HTTP/1.1" 200 421 "http://dl.xxx.org/transmission/web/" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
82.232.36.197 - - [28/Jun/2010:02:05:15 +0200] "POST /transmission/rpc HTTP/1.1" 200 215 "http://dl.xxx.org/transmission/web/" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
82.232.36.197 - - [28/Jun/2010:02:05:16 +0200] "POST /transmission/rpc HTTP/1.1" 200 5219 "http://dl.xxx.org/transmission/web/" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"