Hacker News new | ask | show | jobs
by jraph 1236 days ago
WordPress pretty much requires Apache and is a very big chunk of the web.

Actually, WordPress works with Nginx but it's less plug and play than Apache, so many people are still going to use Apache, even if they put Nginx in front of it. Apache implements stuff Nginx intentionally doesn't, but this stuff is still useful in some scenarios.

https://wordpress.org/documentation/article/nginx/

3 comments

Not true I've run nginx for clients with WordPress setups for close to 10y now.
Read my comment again. You can, but it's less plug and play and therefore, most people are going to use Apache.
"WordPress pretty much requires Apache and is a very big chunk of the web."

That isn't true. It doesn't require Apache.

> WordPress pretty much requires Apache and is a very big chunk of the web.

Wordpress requires a web server and PHP. If you have nginx configured to run PHP, you can drop wordpress in a folder and it will just work™.

A lot of prominent plugins require the ability to modify .htaccess. With Nginx hosts, the users have to do it via a web panel by adding the rules manually. No non-technical user can do that. So the majority of WP space still runs behind Apache.
I'm not certain, but that sounds sketchy.
Its not. Literally almost ~50% of the web runs on it. Apache has top level permissions. Then individual virtual hosts/sites can modify their own htaccess per the permissions that they are afforded. These permissions are generally limited, but when it comes to mod rewrite, they have pretty much full liberty to write any rewrite rule. Since their rewrites would affect just their own vhosts anyways.

Works like a clock. And its extremely convenient even for developers. Anything ranging from seo friendly urls to anti-bot/security rules can be written in by a plugin.

Not htaccess, rather allowing your webapp to write to htaccess.
No .htaccess with rewrite rules for wp?
Which rules?
That probably explains everything! I've never deployed WordPress, but it's everywhere! Thanks