SenseCMS.
EN
EnglishEnglishPolskiPolish
Demo
Sense CMS documentation

Server configuration

Public document roots, HTTPS and private storage for Nginx and Apache.

Sense CMSYOUR DIGITAL WORKSPACE
Prepare your setup
Build your website
Keep it growing
One foundation. Your possibilities.

Public means public only

Use public as the document root. Keep source code, license storage, database credentials and backups outside it. Grant the PHP runtime write access only to storage.

Nginx

Nginx does not read .htaccess files. Configure routing in the server block: serve existing public assets and route other requests to index.php. Permit PHP execution only for that front controller, pass the HTTPS status to PHP-FPM and reject hidden or private file paths.

Apache

The distribution includes Apache rewrite rules. Enable mod_rewrite and the required AllowOverride permissions, and use public as the document root. The current development installer has passed isolated licensed installation tests on Apache over HTTPS. Validate your own server configuration before deployment.

Canonical HTTPS

Redirect HTTP and hostname aliases to the licensed HTTPS hostname, preserving the path and query. Sense CMS rejects unexpected installation hosts. Do not trust arbitrary forwarded headers from public clients.

Before production

Verify private-file denial, certificate renewal, database recovery and fresh installation in a separate environment. Current development builds are not stable production releases.

A useful preflight before opening the site

  • Check the final HTTPS hostname and redirects from alternate addresses.
  • Request a public page, a theme asset and an unknown address; confirm the expected responses.
  • Confirm that private runtime, database credentials and backups are outside the public root.
  • Check PHP write permissions and fresh logs without making the whole application writable.

Nginx does not read .htaccess. Configure its routes explicitly; use Apache rewrite rules only on an Apache installation.

When the homepage works but other pages do not

Check the web-server routing and document root before changing content. A route handled by the wrong directory can produce a server 404 even though the page exists in the CMS. If assets fail, check their public URL and file permissions separately.

After a correction, test a nested English route, its Polish equivalent and an unknown URL. Inspect the request and PHP logs for the same timestamp.

Return to installation →