git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] instaweb: if no httpd is specified and lighttpd doesn't exist, fall back on apache2.

From
nathan spindel <nathans@gmail.com>
Date
May 11, 2008, 17:03 UTC
Message-ID
<5C50F5DC-CAE4-4BF2-BCAA-8CFC8CC43C59@gmail.com>
In-Reply-To
<ee77f5c20805110458s6f1e4908k38be50753ba38d09@mail.gmail.com>
On May 11, 2008, at 4:58 AM, David Symonds wrote:
Show 18 quoted lines
> On Sun, May 11, 2008 at 3:26 PM, nathan spindel <nathans@gmail.com>  
> wrote:
>
>> -# if installed, it doesn't need further configuration (module_path)
>> -test -z "$httpd" && httpd='lighttpd -f'
>> +# use lighttpd if it exists, otherwise use apache2
>> +if test -z "$httpd"
>> +then
>> +       if type "lighttpd" > /dev/null 2>&1;
>> +       then
>> +               httpd="lighttpd -f"
>> +       else
>> +               httpd="apache2 -f"
>> +       fi
>> +fi
>
> I personally would prefer to use webrick over apache2, since it's much
> more lightweight. That's just my two cents.

I am apathetic about which web servers are preferred, I would just like to see git-instaweb work well on Mac OS X. Kevin Ballard's suggestion was to fall back on apache2.

We could also modify the default to use [lighttpd, webrick, apache2] in that order (whichever is available). Would the community prefer that approach?

Previous: David SymondsNext: Junio C Hamano
Message 10 of 11 in “instaweb: if no httpd is specified and lighttpd doesn't exist, fall back on apache2.”
  1. instaweb: if no httpd is specified and lighttpd doesn't exist, fall back on apache2.nathan spindel, May 11, 2008
  2. instaweb: make it compatible with Mac OS X 10.5's apache installation.nathan spindel, May 11, 2008
  3. Documentation/git-instaweb.txt: Updated defaults to match my last two git-instaweb.sh changesnathan spindel, May 11, 2008
  4. Junio C HamanoMay 11, 2008
  5. nathan spindelMay 11, 2008
  6. Junio C HamanoMay 11, 2008
  7. nathan spindelMay 11, 2008
  8. nathan spindelMay 11, 2008
  9. David SymondsMay 11, 2008
  10. nathan spindelMay 11, 2008
  11. Junio C HamanoMay 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.