I have an apache server and transmission-daemon running together. Only ports 80 and 443 are open, I want to be able to access transmission's web interface from "https://address.net/transmission" instead of "localhost:9091"
I followed several guides but I can't make it work (ERR_CONNECTION_REFUSED or a 502), here's my last configuration. Thank you.
apache2.conf:
Mutex file:${APACHE_LOCK_DIR} default
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Include ports.conf
<Directory /path/apache>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /path/apache/private>
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /path/.htpasswd
Require valid-user
</Directory>
AccessFileName .htaccess
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
ports.conf:
Listen 80
Listen 443
proxy.conf:
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
ProxyPass /transmission https://localhost:9091
ProxyPassReverse /transmission https://localhost:9091
ProxyVia On
</IfModule>
/sites-enabled/000-default.conf:
<VirtualHost *:80>
ServerName address.net
DocumentRoot /path/apache
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Redirect permanent / https://address.net/
</VirtualHost>
/sites-enabled/default-ssl.conf:
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerName address.net
DocumentRoot /path/apache
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /stuff.pem
SSLCertificateKeyFile /morestuff.pem
SSLProxyEngine on
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>
Maybe
should be: