Switch Redis database based on web server configuration.