Hello NC community
I’m noob and used this tutorial https://pimylifeup.com/raspberry-pi-nextcloud-server/ to get me started on Pi and NC. I’m struggling with getting remote access to my NC. My port settings and DDNS are:
- On Dynu DNS service, I set my domain as
mycloud.freedns.organd point it my IP address 11.22.33.44 - I further configured port forwarding in Dynu service as
port.mycloud.freedns.orgtohttp://11.22.33.44:444. Also, I added url forwarding withurlfwd.mycloud.freedns.orgtohttps://11.22.33.44:444/nextcloud - On my router, I opened port 444 to my LAN IP port 443. The reason I used 444 is that my ISP seems to have blocked the router such that I can’t use the OEM’s router admin page and I have to use the ISP’s app to port forward. If I try
http://11.22.33.44:443I get the OEM’s router log in and I don’t have the admin password to configure it. Port 80 on router is also forwarded to internal port 80 - My /etc/apache2/port2.conf is:
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
- My /etc/apache2/sites-available/000-default.conf is:
<VirtualHost *:80>
ServerAdmin example@example
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>
- Lastly, in my /var/www/nextcloud/config/config.php, I have the trusted domains:
0 => '<myLAN IP>',
1=> 'mycloud.freedns.org',
2=> 'port.mycloud.freedns.org',
3=> 'urlfwd.mycloud.freedns.org'
Outcomes:
- Using
port.mycloud.freedns.orggets me to error “Apache/2.4.51 (Raspbian) Server at 127.0.1.1 Port 443” - Using
urlfwd.mycloud.freedns.orggets me to NC’s “Access through untrusted domain” - Using
mycloud.freedns.org
Nextcloud version : 22.2.0
Operating system and version : Raspbian Buster on RPi 4B
Apache or nginx version : 2.4.51
PHP version : 7.4
So what am I missing or doing wrong?