Advertisement
kisslo

transmission.https

May 9th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.89 KB | None | 0 0
  1.   <VirtualHost Your_IP:443>
  2.     RewriteEngine On
  3.     ServerName yourservername
  4.     ServerAlias alias.domain.com
  5.     Redirect permanent / https://alias.domain.com/transmission
  6.     RewriteRule /transmission[/]?$ /transmission/web [R=permanent]
  7.     SSLEngine on
  8.     SSLCertificateFile    /etc/ssl/certs/ssl-cert-file.pem
  9.     SSLCertificateKeyFile /etc/ssl/private/ssl-cert-key-file.key
  10.     ProxyRequests off
  11.     ProxyPreserveHost off
  12.     <Proxy *>
  13.     Order deny,allow
  14.     Allow from all
  15.     </Proxy>
  16. ProxyPass /transmission http://127.0.0.1:8080/transmission
  17. ProxyPassReverse /transmission http://127.0.0.1:8080/transmission
  18.     </VirtualHost>
  19.     <VirtualHost Your_IP:80>
  20.     ServerName yourservername
  21.     ServerAlias alias.domain.com
  22.     Redirect permanent / https://alias.domain.com
  23.     </Virtualhost>
  24. #If you use iptables , you can close the port 8080. Anyway the apache will prox it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement