Files
ansible-collection/roles/rtorrent/templates/rtorrent/rutorrent.conf.j2
T
2026-10-18 12:34:19 +04:00

22 lines
703 B
Django/Jinja

<VirtualHost *:80>
ServerName {{ rutorrent_server_name | default(inventory_hostname) }}
DocumentRoot /var/www/html
ErrorLog /var/log/apache2/rutorrent_error.log
CustomLog /var/log/apache2/rutorrent_access.log combined
<Directory /var/www/html>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.html
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php{{ php_version.stdout }}-fpm.sock|fcgi://localhost"
</FilesMatch>
ProxyPass /RPC2 unix:/run/rtorrent/rpc.sock|scgi://localhost
ProxyPassReverse /RPC2 unix:/run/rtorrent/rpc.sock|scgi://localhost
</VirtualHost>