18 ms·
Apache serving 21%?! What kind of websites use Apache in 2022? I haven't deployed a site on that dinosaur in over a decade at this rate. Nor have I used it as a
by throwawayacc3 4y ago
Apache serving 21%?! What kind of websites use Apache in 2022? I haven't deployed a site on that dinosaur in over a decade at this rate. Nor have I used it as a reverse proxy in that timeframe.
- jraph 4y agoWordPress 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/ https://wordpress.org/documentation/article/nginx/
- throwawayacc3 4y agoThat probably explains everything! I've never deployed WordPress, but it's everywhere! Thanks
- tredre3 4y ago> 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™.
- ihateolives 4y agoNo .htaccess with rewrite rules for wp?
- roflyear 4y agoWhich rules?
- unity1001 4y agoA 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.
- roflyear 4y agoI'm not certain, but that sounds sketchy.
- unity1001 4y agoIts 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.
- roflyear 4y agoNot htaccess, rather allowing your webapp to write to htaccess.
- roflyear 4y agoNot true I've run nginx for clients with WordPress setups for close to 10y now.
- unity1001 4y ago> I haven't deployed a site on that dinosaur in over a decade at this rate That's why your memory of Apache is a dinosaur itself: Apache has been constantly improving over the years. The advantage that Nginx had in performance was gone with Apache introducing event mpm. Now event mpm + any backend can provide you the same performance with Nginx, but with ALL the benefit of the gigantic module ecosystem that Apache has. Like another commenter said, merely WordPress would constitute around ~50% of the web, and it uses Apache. Even if there is a nginx proxy cache at the front (as is so common with run of the mill web hosts that use cPanel), the Apache in the backend is irreplaceable - modifying .htaccess file is critical to many !very! important plugins in the WP ecosystem that people use to run their businesses. And if a web host does not provide for that, they remain gimped. You can use Nginx for WordPress, but then you will have to get non-technical users to add mod rewrite rules through a web panel or something. Good luck explaining what a 'rewrite rule' is to a non-technical user who just wants to launch an ecommerce site for his flower shop. Less, any regex that needs to be used for some specific rules...
- bosch_mind 4y agoDo you use cat or ls? Those tools were written like 40 years ago