Hacker News new | ask | show | jobs
by duskwuff 5486 days ago
> If you have 1024 static sites the only thing taking up ram is the configuration of the sites sitting in Apache's memory. As long as there isn't a lot of traffic on the site, it doesn't really matter how many there are.

And if you're smart about the setup, you don't even necessarily have to have a separate configuration for each site. See mod_vhost_alias for Apache, for instance. With that in place, memory is no longer an issue at all.

1 comments

Why would you use apache for static sites? Did you even read the article? It uses lighttpd.
By way of example. I'm sure there's equivalent incantations for lighttpd/nginx/flavor-of-the-week, the parent comment just happened to mention Apache. :)
Agreed. Using apache on a lowendbox is not a smart idea. Lighttpd serving static sites takes ~5MB in practise. That's also including a SSHd and other services.