Changes between Version 6 and Version 7 of MovedToGitHub/WebInterface


Ignore:
Timestamp:
Mar 23, 2009, 4:34:50 PM (13 years ago)
Author:
wereHamster
Comment:

Sample apache configuration courtesy of Barnerd

Legend:

Unmodified
Added
Removed
Modified
  • MovedToGitHub/WebInterface

    v6 v7  
    6969=== Apache ===
    7070
    71 Don't know how to handle authentication, so for Apache I can only provide the proxy part. For details please consult the apache mod_proxy documentation (apache version: [http://httpd.apache.org/docs/2.2/mod/mod_proxy.html 2.2] [http://httpd.apache.org/docs/2.0/mod/mod_proxy.html 2.0] [http://httpd.apache.org/docs/1.3/mod/mod_proxy.html 1.3])
     71For details please consult the apache mod_proxy documentation (apache version: [http://httpd.apache.org/docs/2.2/mod/mod_proxy.html 2.2] [http://httpd.apache.org/docs/2.0/mod/mod_proxy.html 2.0] [http://httpd.apache.org/docs/1.3/mod/mod_proxy.html 1.3])
    7272
    7373{{{
     74# Redirect requests to /transmission to /transmission/web
     75RewriteRule /transmission[/]?$ /transmission/web [R=permanent]
     76
    7477# Forward all requests for /transmission to transmission-daemon
    7578ProxyPass /transmission http://127.0.0.1:9091/transmission
    7679
    77 # Work-around for libT's non-conformance to the HTTP/1.1 standard for Redirect
    78 # See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30"
    79 # and http://trac.transmissionbt.com/ticket/1944
    8080<Location /transmission>
    81     ProxyPassReverse http://127.0.0.1:9091/transmission
    82     <IfModule expires_module>
    83         ExpiresActive On
    84         ExpiresByType image/gif A43200
    85         ExpiresByType image/png A43200
    86         ExpiresByType application/javascript A43200
    87         ExpiresByType text/css A43200
    88     </IfModule>
     81
     82   # Work-around for libT's non-conformance to the HTTP/1.1 standard for Redirect
     83   # See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30"
     84   # and http://trac.transmissionbt.com/ticket/1944
     85   #   Work-around no longer needed (see RewriteRule above)
     86   #   ProxyPassReverse http://127.0.0.1:9091/transmission
     87
     88   # Digest Auth enable
     89   # See http://httpd.apache.org/docs/2.2/howto/auth.html#gettingitworking
     90   Order Allow,Deny
     91   Allow from All
     92   AuthType Digest
     93   AuthName "Transmission Web Interface"
     94   AuthDigestProvider file
     95   AuthUserFile "/usr/local/etc/apache22/htdigest.user"
     96   Require valid-user
     97
     98   # Make pictures, scripts and styling client-cacheable
     99   <IfModule expires_module>
     100      ExpiresActive On
     101      ExpiresByType image/gif A43200
     102      ExpiresByType image/png A43200
     103      ExpiresByType application/javascript A43200
     104      ExpiresByType text/css A43200
     105   </IfModule>
     106
    89107</Location>
    90108}}}