I use a mini as a web server. It's not bad. Make sure the firewall is on and only the services you absolutely need are allowed though. Make sure you have strong passwords for any and all accounts. I recommend purchasing Little Snitch. You should be pretty secure.