Guspaz wrote:
Quote:
NGINX is very efficient with static content.
But your handling dynamic content with Apache instead implies that you think nginx is very inefficient with dynamic content. It's not. Splitting static/dynamic content onto two servers is a lot of unnecessary complexity for no perceptible benefit. Just about the only justifiable reason to do this is if something requires Apache specifically, like if you have some requirement for completely compatible Apache rewrite rules or something.
That makes sense - thank you.
It is true that I did indeed want .htaccess rules to work as well - however seeing as the rewrites seemed to work for vbulletin I might as well just keep it on one machine.
It is often suggested to "use a CDN" for static files, so I thought this would be a good way to go.
However, as you explain it one machine should indeed be fine then, and if it gets too much load I can always get another machine to loadbalance.
That's actually one out of the two things I want to do, the other one is that I keep messing with the settings. I'm trying to get as much rq/s as possible, though the settings posted online can differ a lot and I never really know what "is best". I tried looking for practical guides that explain it but I haven't been able to find much. It's mainly (I think?) the balance between the following:
- Nginx settings (or apache)
- MySQL (my.cnf) settings
- php-fpm.conf & pool/www.conf
- Possibly kernel optimizing - I think there's some limits when running ApacheBench that cause errors. I saw a lot of "tcp time wait bucket table overflow" and "tcp drop open request from <IP>"
Do you know of any books or online training that explain this? That way I could also get the server to actually serve content in a efficient+fast way, I guess.
Thank you so far anyways, I'll at least play around with it some more on a VM and see how it runs, after that I can use it as a main webserver as well I think.