I configured several months ago my nextcloud on my Ubuntu 20.04.3 LTS VM running on my FreeNAS, following their tutorial so bear with me, I'm in no means a trained apache2 guru ;-)
My current VHost config for my nextcloud is as followed:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/nextcloud/
ServerName cloud.domain.net
ServerAlias www.cloud.domain.net
Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =cloud.domain.net [OR]
RewriteCond %{SERVER_NAME} =www.cloud.domain.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
I recently set up my Home Assistant and wanted to grant remote access via the HASS App.
I wanted to redirect traffic, comming in via
https://homeassistant.domain.net
My approach for the homeassistant.conf was:
<VirtualHost *>
ServerName homeassistant.domain.net
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://192.168.0.9:8123/
ProxyPassReverse / http://192.168.0.9:8123/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
Unfortunately this doesn't work....
Can anyone point me to the right config so my Home Assistant Trafic is also ssl encrypted?