Re:The beauty of CGI and simple design
by samwillis on Saturday January 07, 2023 @05:54AM
(#34286986)
Absolutely, 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.
Re:The beauty of CGI and simple design
by liveoneggs on Saturday January 07, 2023 @07:58AM
(#34287628)
What does nginx have to do with mod_rewrite?
nginx hasn't been necessary since mpm_event_module.
apache haven't been necessary since nginx.
Re:The beauty of CGI and simple design
by qbasic_forever on Saturday January 07, 2023 @12:19PM
(#34290218)
Caddy 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).
2023 - Use single binary caddy. It's like 2 lines of config total to remove the extension from your CGI url's.