Apache and Transmission Daemon

Discussion of the Web Interface for Transmission, formerly known as Clutch. This applies to all version of Transmission
Post Reply
fifou
Posts: 3
Joined: Sun Jan 24, 2010 3:18 pm

Apache and Transmission Daemon

Post by fifou »

Hi !

First of all, I beg you to apologize my poor english :S

I write here because I have some issues with the correct use of Apache to access to my Web interface Transmission...

After reading some subjects here, I copy/paste and edit my Apache conf like that :

Code: Select all

<VirtualHost *:80>
	RewriteEngine on
	ServerName transmission.my_domain.fr

	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

	<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>
Of course, I had to tape http://transmission.my_domain.fr/transmission to obtain the result I expect. I would have to tape only http://transmission.my_domain.fr (because I specially did a CNAME for it) but I didn't manage to change the good directives in my configuration... I switch between problem to rewrite the url or proble "409 : conflict"...

Is anybody to help me ? Thank you for reading.

Regards,
Phil.
Azquelt
Posts: 12
Joined: Sun Jul 20, 2008 11:59 am

Re: Apache and Transmission Daemon

Post by Azquelt »

I don't think you want that RewiteRule line in there.

Remove it and I think it should work if you visit http://transmission.my_domain.fr/transmission/web
fifou
Posts: 3
Joined: Sun Jan 24, 2010 3:18 pm

Re: Apache and Transmission Daemon

Post by fifou »

Hi Azquelt,

I'm sure you're right but I should have wrong described my need : I wish access to the web interface by visiting http://transmission.my_domain.fr/ (without a particular path below since I have a special CNAME...).

Do you think it is possible ?

Regards,
Phil.
Azquelt
Posts: 12
Joined: Sun Jul 20, 2008 11:59 am

Re: Apache and Transmission Daemon

Post by Azquelt »

Yeah, just add a Redirect line.

Something like

Code: Select all

Redirect permanent / /transmission/web
should do the trick.

See also http://httpd.apache.org/docs/2.2/mod/mo ... l#redirect

I'm pretty sure that the transmission web interface needs to be at /transmission/web and /transmission/api to work properly (someone correct me if I'm wrong) but that line will add a redirect so that accessing http://transmission.mydomain.fr/ will redirect you to the transmission interface.
fifou
Posts: 3
Joined: Sun Jan 24, 2010 3:18 pm

Re: Apache and Transmission Daemon

Post by fifou »

A good solution and its documentation in one message :)

I really thank you Azquelt. It works fine now.

Regards,
Phil.
shutyaev
Posts: 1
Joined: Fri Feb 25, 2011 6:08 am

Re: Apache and Transmission Daemon

Post by shutyaev »

Hi all.

Is there any way to proxy transmission to be available from different location (and from there only)? What I want to achieve is

1. Transmission is accessible through http://my.domain.com/tmclient (this can redirect to http://my.domain.com/tmclient/web or http://my.domain.com/tmclient/transmission/web - I don't care as long as it stays inside http://my.domain.com/tmclient/)

2. All other 'direct' links are NOT accessible (e.g. http://my.domain.com/transmission, http://my.domain.com/transmission/web, http://my.domain.com/transmission/rpc)
nakioman
Posts: 1
Joined: Sun Apr 03, 2011 12:45 am

Re: Apache and Transmission Daemon

Post by nakioman »

Hi, I cannot make Apache and trasmission get along, I have apache 2.2.16 and transmission 2.0.3 on a debian machine.
I have the proxy and proxy_html modules loaded and the following apache configuration and I keep getting 500 internal error I am attaching my error.log from apache too.
Thanks for the help

Code: Select all

[Sat Apr 02 21:42:09 2011] [warn] proxy: No protocol handler was valid for the URL /transmission/web. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Sat Apr 02 21:42:09 2011] [error] [client 192.168.0.5] File does not exist: /var/www/favicon.ico
[Sat Apr 02 21:42:11 2011] [warn] proxy: No protocol handler was valid for the URL /transmission/web. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Sat Apr 02 21:42:11 2011] [error] [client 192.168.0.5] File does not exist: /var/www/favicon.ico
[Sat Apr 02 21:42:14 2011] [warn] proxy: No protocol handler was valid for the URL /transmission/web. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Sat Apr 02 21:42:14 2011] [error] [client 192.168.0.5] File does not exist: /var/www/favicon.ico
[Sat Apr 02 21:42:27 2011] [notice] caught SIGTERM, shutting down
[Sat Apr 02 21:42:28 2011] [notice] Apache/2.2.16 (Debian) proxy_html/3.0.1 configured -- resuming normal operations
[Sat Apr 02 21:42:38 2011] [warn] proxy: No protocol handler was valid for the URL /transmission/web. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Sat Apr 02 21:42:38 2011] [error] [client 192.168.0.5] File does not exist: /var/www/favicon.ico

Code: Select all

<VirtualHost *:80>
RewriteEngine on
        ServerAdmin webmaster@localhost

# 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

<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>
Post Reply