|Recipe 42||Securing Your Content|
When we put files on our web server, they’re available for anyone to see. But we don’t want the entire world to have access to any important documents we’re storing. When we want a select group of people to be able to access the files, we need a way to lock certain files or folders and create basic authentication.
Development server with Apache
Apache allows us to create configuration files that specify which directories and files shouldn’t be served without authentication. We’ll take a look at how we build these configuration files to secure our server.
When Apache is serving up files, it’s always looking for the .htaccess file. This ...