Trouble setting up Web GUI for WAN access


Thanks in advance for any help.

I can access my Web GUI from LAN perfectly yet when I try to access it from WAN, it fails to load. I know that I have correctly port forwarded because I can access my instance of nextcloud on WAN from the app but when I try to get to it through a browser, it says the server cannot be reached. I think my problem lies in my apache configuration for it.

Here’s what it looks like:

1   Alias /nextcloud "/var/www/nextcloud/"
  2 <VirtualHost *:80>
  3     ServerAdmin
  4     DocumentRoot /var/www/nextcloud
  5     ServerName
  6     ServerAlias
  7     ErrorLog ${APACHE_LOG_DIR}/error.log
  8     CustomLog ${APACHE_LOG_DIR}/access.log combined
  9 </VirtualHost>
 11 <Directory /var/www/nextcloud>
 12     Options +FollowSymlinks
 13     AllowOverride All
 15     <IfModule mod_dav.c>
 16         Dav off
 17     </IfModule>
 19     SetEnv HOME /var/www/nextcloud
 20     SetEnv HTTP_HOME /var/www/nextcloud
 22 </Directory>

Any help would be much appreciated.

Edit: I cannot access any websites I’m hosting through Nextcloud either. I can however access websites hosted in my var/www/ folder.

you access through one of these domains?

You define the

but you also want to use nextcloud in the nextcloud folder?

You don’t use a https-connection?

1 Like

Yes, I access it through one of those domains.

I determined that it was a problem with chrome on mobile. I checked this morning using different browsers and a laptop and I am able to reach my Nextcloud Web GUI on WAN. I don’t use https because I can’t really afford a certificate at the moment. Thank you for your reply!

To clarify my statement about hosting websites through Nextcloud, I set the DocumentRoot to a directory inside of Nextcloud so I can edit all my html and css through a web browser. Maybe not the most secure or best way to do it, but it works for me.

If it’s your own domain, you can have free certs from

Don’t do that, for such purposes you can use external storage (can be a local folder of your server):