DEV Community

Discussion on: Nextcloud Setup with Nginx

Collapse
 
yparam98 profile image
Yathavan Parameshwaran • Edited

Hi there!

Sorry for late reply!

Just to confirm, you are using your own domain instead of "example.org", correct?

Ok so sudo nginx -t tests to make sure your Nginx config file is all correct. It SHOULD look like this:

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Enter fullscreen mode Exit fullscreen mode

Could you please check that the nextcloud's server block in the config files only contains these lines at the very top?

listen 443  ssl http2;
listen [::]:443 ssl http2;
server_name example.ca;
Enter fullscreen mode Exit fullscreen mode

It should NOT contain anything about port 80 in the nextcloud's server block, only port 443.