Re: Architecture recommendations, tips, hints and help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2015-11-29 at 10:05 -0500, Yehuda Katz wrote:
> You might want to use CGI or FastCGI rather than an Apache module. You
> can write CGI in any language, including C or C++ and there are
> libraries that already implement FastCGI for both languages.
> There are a few benefits of not using a module
> - If you update Apache, you may need to make changes to the module,
> but you shouldn't need to do that with CGI
> - Any possible issue (security or otherwise) in your code won't affect
> the whole server
> - Your code will be portable to other web servers in case you ever
> decide or are forced to switch

I don't have anything really useful to tell the OP, but
I have to take issue with the above.
- You don't have to update modules for new apache versions.
You will need to recompile, and you may need minor updates
(depending on what APIs the module uses) when 2.6.x comes out
but not within 2.4.
- Even porting to other webservers with Apache-ish roots
(including nginx, the other open source server that matters)
should be fairly straightforward, as you can map between the
two APIs - at least those the OP seems likely to want.  Though
since Apache has (by far) the richest API, you might have a
few gaps to fill.
- Have you ever tried porting CGI?  It's a lot less portable
in real life than in theory.  Though I guess the biggest
issue is if you want to support windows and anything-else.
- As for security and other issues, if the OP is most at home
in C then that's where he's (on balance) at least risk of
screwing up.

-- 
Nick Kew



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux