Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4AD7418F86 for ; Thu, 3 Dec 2015 17:06:39 +0000 (UTC) Received: (qmail 78136 invoked by uid 500); 3 Dec 2015 17:06:09 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 78106 invoked by uid 500); 3 Dec 2015 17:06:09 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 78095 invoked by uid 99); 3 Dec 2015 17:06:09 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2015 17:06:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C44DB180975 for ; Thu, 3 Dec 2015 17:06:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.021 X-Spam-Level: X-Spam-Status: No, score=-0.021 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id wfCYEzOiMPas for ; Thu, 3 Dec 2015 17:06:05 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id E1FD442ADC for ; Thu, 3 Dec 2015 17:06:04 +0000 (UTC) Received: from [192.168.178.20] ([62.224.169.43]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M5a9E-1aSnND2D72-00xbvM for ; Thu, 03 Dec 2015 18:06:03 +0100 To: users@httpd.apache.org References: <565AF9B4.9080206@gmx.de> <1448834410.17748.15.camel@mimir.webthing.com> From: Torge Riedel Message-ID: <5660767A.50103@gmx.de> Date: Thu, 3 Dec 2015 18:06:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1448834410.17748.15.camel@mimir.webthing.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Ho/2ifK5Boqf5eVoaq6TyuAlLn4Py78sLASZ2VSgzHJxbqsS8uS fhUyz3SKgtk7rD3kpVFOomhfNSR2TZyS4d9wp2ctMV0mah7Xyvsc9mYmHa6+O1g4rO+laDf EpgRfoNNXLwNoKKOW03QcKVRavAQYA8hOj2NXnwqbjiZpqI81eCBknm/vHgLkEAHRnFQ637 D5BmKfKaQqyhRVjnfJKjw== X-UI-Out-Filterresults: notjunk:1;V01:K0:gWKZG9deLrs=:hIvpXFQgP3QSN8jGZLgbA8 SnLEnRo6BVmXXxHfkHnsjcYQRojsDra7aeRHmoi8EJUHrCW0UfdW9O70nrUhpqKs+geTRxFE1 W7U6s8YH5jek41wgW1OjjTKIcipoKVDj1usPrlpUCL0KEzqJkTrZWqnoZQOy1UYDtwkj/OjKf ES2SfxYp/0pPgh1dW9e2Vak6nZ5DX6tGJoIKffuaRj4SFRVZHZ5kBd0IebXzSV7kuCLbDUShp Q2Dd6GX5ylkZjMxQugbk/4yU1fCJjvCt7Fjjqz+Omh3nJSM3ldEhqyvBAA3Gf/WkavlGFRyIZ FdO9ELOYpfWF/UPO2qpKw+8ZDDzOPCTBqAfj+FZIYAUpjPjj6fq+Z1G6y8tnjMwd+IaAxLjRe nhR4N9xY7c/hUJZ2G/kkd45NT4E3UIG6Wtm/IAUMJ0daN9nFRPTedwwhbMdvZRa3xI60Fz5KT QMxdp6pF6PQ0N7OOLqXzDDERH3mA6TbHLCi73E4fWWAAAdZyv3143jAyiYuccjTsh0RB4El7z xpRhsXWzxXEzW2OyTN8lC5lOof78yZ9lvXyl3FLydtXxYstQXiOhDiG6hBhLurrBx9F5HF/dK mTi+lwwQhZZMHO3ZqdM2jGjzwpOtsCzBLMWm5gbyFq2cuW2u6Ihg6Lyrgfc1ZUmFDWBG/nhs1 9fSvr/1rqT59AXO+er0qfNHsNXWtXgZ6hoIRC20P6M9pNjSOOJ21203Z9PCZtV/DM5GD+xnyi Yz+bLl8huazWICJ+zOEe5zLwwLEY0IbCsONqummTjVnHDFfHz3BLxRkpEU8zWJgWA5vpXfJNN 5iVZ7E6 Subject: Re: [users@httpd] Architecture recommendations, tips, hints and help Am 29.11.2015 um 23:00 schrieb Nick Kew: > 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. > Thanks a lot everybody. I will focus on an Apache module, as I'm sure that updating apache (the normal update progress of fixes and patches) on a Linux server should not screw up the ABI. In addition, but this might be a reason of less knowledge on FastCGI, I can benefit from a lot of available stuff in Apache like DB connection pooling, etc. Regards Torge --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org