Problem
When I initiate TTS through a Google home media player, the mp3 file is generated but the URL to the media file posts as http instead of https.
If I access the http link locally, no page loads. I suspect that has to do with the https redirection in the conf file in apache2, but I’m not certain of this.
If I access the same URL but with https using either internal IP or external name, the file plays in my browser. So I know it’s being generated, but Google Home can’t seem to play it. It does make the ploink noise like it’s about to play it, but never plays it.
How can I get my Apache2 server to respond to http requests either internally or externally so the URL provided by Google Translate TTS is accurate -or- how to I change the URL that Google Translate is generating?
Here’s My Current Setup
Two systems.
primary name server is lamp server. (192.168.1.110)
secondary server runs HA supervised (192.168.1.101)
On primary, I have a virtual host setup as a proxy to HA. The conf looks like this:
<VirtualHost *:80>
ServerName hassio.jongriffith.com
ServerSignature Off
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
<Directory /home/jongriffith.com/domains/hassio.jongriffith.com/public_html>
</Directory>
</VirtualHost>
<VirtualHost *:443>
ProxyPreserveHost On
# Servers to proxy the connection, or;
# List of application servers:
# Usage:
# ProxyPass / http://[IP Addr.]:[port]/
# ProxyPassReverse / http://[IP Addr.]:[port]/
# Example:
ProxyPass / http://192.168.1.101:8123/
ProxyPassReverse / http://192.168.1.101:8123/
ServerName hassio.jongriffith.com
SSLCertificateFile /home/jongriffith.com/domains/hassio.jongriffith.com/ssl.cert
SSLCertificateKeyFile /home/jongriffith.com/domains/hassio.jongriffith.com/ssl.key
SSLCACertificateFile /home/jongriffith.com/domains/hassio.jongriffith.com/ssl.ca
</VirtualHost>
If this was all on one server, I would be able to ditch the proxy and just use the port number, but alas, it is not.
I’ve tried adding ProxyPass information to the *.80 config in the conf and removing the HTTPS rewrite rules, but that doesn’t work either.
Any experts out there know how to solve this?