3 ms·
mod_rewrite hasn't been necessary since nginx. 2023 - Use single binary caddy. It's like 2 lines of config total to remove the extension from your CGI url's.
by geenat 4y ago
mod_rewrite hasn't been necessary since nginx.
2023 - Use single binary caddy. It's like 2 lines of config total to remove the extension from your CGI url's.
- samwillis 4y agoAbsolutely, and Caddy is brilliant. My point really was when having url routing, such as ids/slugs in the url, it is much easier to implement in your application code than in the web server configuration. It keeps application code in one place.
- liveoneggs 4y agoWhat does nginx have to do with mod_rewrite?
- ptx 4y agonginx hasn't been necessary since mpm_event_module.
- ilyt 4y agoapache haven't been necessary since nginx.
- qbasic_forever 4y agoCaddy doesn't support CGI out of the box. You need to use a module (which requires a custom build of it and the hope the module author continues to maintain it), or you need to run something like fcgiwrap to convert FCGI (what Caddy does support) to CGI (and now you need a process manager to make sure your fcgiwrap and caddy processes are kept running, restarted on failure, etc).