Surreal CMS • A Simple, Cloud-based CMS

Working with HTTP Authentication

If you want to edit pages that require HTTP authentication to access, you’ll need to update your .htaccess file to let Surreal view them. The following configuration is a basic example of how to do this.

AuthType Basic
AuthName "Please enter your password"
AuthUserFile /path/to/.htpasswd

Require valid-user
Order deny,allow
Deny from all

Allow from 72.10.49.160
Satisfy Any

The green sections are especially important, as you’ll need to ensure the path to your .htpasswd file is correct and that you’re allowing Surreal to access the protected pages.