How to Fix Nextcloud Not Working With NGINX

Whether you install Nextcloud manually, with Softaculous, or using their Web Installer, you may login only to see CSS issues preventing you from using the web application.

Nextcloud CSS issues due to NGINX

See the image for an example of how this may appear:

If your new Nextcloud installation resembles this, the issue may be related to your NGINX cPanel Cache Manager settings.

The cPanel Cache Manager is only available on our WordPress Hosting, Managed VPS Hosting, and Dedicated server hosting plans.

Our customized NGINX static content acceleration ignores .htaccess rules and serves data directly from the file system. This can create issues in Nextcloud and other content management systems (CMSs) that depend on .htaccess rules to serve content correctly.

Below we cover how to use Nextcloud on your NGINX server.

Per our Terms of Service, Nextcloud should only be installed on our Managed VPS Hosting or higher. Contact our Live Support directly with questions regarding this.

Modify cPanel Cache Manager for Nextcloud

  1. Log into cPanel
  2. Select the Cache Manager
  3. Select the Nextcloud domain or parent domain from the drop-down menu
  4. Select the Options tab
  5. Select Show Advanced Options at the bottom for more settings
  6. Under Accelerate Static Content, select Disable
  7. Save Changes
  8. If you refresh Nextcloud (F5 or Ctrl+R), the application should look normal now

Remember, storing files online is risky by default. After you get Nextcloud working, consider some of these free Nextcloud apps:

  • Antivirus for files uses ClamAV (available on Cloud and managed VPS/Dedicated servers) to scan uploaded files to protect your server from malware by deleting or logging suspicious files
  • Brute-force settings protects against rainbow table password attacks and white-lists specified IP addresses from being blocked
  • Two-factor authentication (2FA) plugins using different mobile applications and methods are available in the Nextcloud app store
  • Password policy is pre-installed to allow you to set minimum strength requirements for user passwords
  • Passwords is a password manager application within Nextcloud for users that are always on the go

If you have any issues with Nextcloud on NGINX, let us know in our Community Support Center.

Jacqueem Content Writer I

Technical writer focused on cybersecurity and musicianship.

More Articles by Jacqueem

Was this article helpful? Let us know!