How to take a forum offline temporarily

This isn’t working, perhaps due to caching? I’m using AWS and DigitalOcean. Users who are logged in can still browse the old Discourse instance. Can I force a logout of everyone?