I have owncloud8 set up on SSl and can access it using username.yourhda.com:443. It works fine when I am outside my network but when I use https://username.yourhda.com:443 from inside my network, it gets redirected to the IP address of my router. I have found out that the issue is that my router does not support NAT Loopback.
I am not sure how to bypass this. I tried the Punching Holes in the DNS wiki but the field is not big enough.
I tried to edit the etc/dnsmasq.d/amahi-dns.conf by adding the domain in this line (before and after the 192.168.1.10)
Code: Select all
address=/owncloud8/owncloud8.amahi.net/192.168.1.10
Code: Select all
<VirtualHost *:443>
ServerName owncloud8
ServerAlias owncloud8.amahi.net
ServerAlias username.yourhda.com
SSLEngine On
SSLCertificateFile /etc/pki/tls/certs/server.crt
SSLCertificateKeyFile /etc/pki/tls/certs/server.key
DocumentRoot /var/hda/web-apps/owncloud8/html
<Directory "/var/hda/web-apps/owncloud8/html">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/hda/web-apps/owncloud8/logs/error_log
CustomLog /var/hda/web-apps/owncloud8/logs/access_log combined env=!dontlog
</VirtualHost>
Suggestions?