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

Re: [PATCH 1/3] git-instaweb: Fix custom apache log placement

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 23, 2010, 17:38 UTC
Message-ID
<7v7hkmf69k.fsf@alter.siamese.dyndns.org>
In-Reply-To
<AANLkTimV0kGRMwxYxQu8jgWsiwTC_msU+2QWNAmYZuYe@mail.gmail.com>
Dan McGee <dpmcgee@gmail.com> writes:
Show 8 quoted lines
> On Thu, Jul 22, 2010 at 6:42 PM, Eric Wong <normalperson@yhbt.net> wrote:
> ...
>> Hi Dan, can you address Junio's concerns here?
>>
>> http://marc.info/?l=git&m=127791382102449&w=2
>
> I did already, and got no feedback...
> http://marc.info/?l=git&m=127791591706076&w=2
Thanks for a (half-) pointer [*1*]; I didn't see that message til now.
>> I think you are being overcautious. Even in this case, you can specify
>> the real name of the web server through git-config or command line
>> parameters to make sure it picks up the right settings. 

If there is an HTTP server "httpd" that does not understand Apache style configuration file given via "-f" (use of which is a misconfiguration this patch will start allowing users to make), we would need to add a new codepath to the script to generate a configuration file to support that server. I do not think we have a mechanism to disambiguate different HTTP server implementations that claim to be "httpd", so at that point we would need to add something other than the command name for disambiguation. But for now I think your patch suffices.

As you pointed out, the last "case" statement in instaweb explicitly have rejected servers we did not know about, so my worry was unfounded; nobody could have been using a daemon whose name is "httpd", be it ArchLinux's Apache or something incompatible.

Thanks.
[Footnote]

*1* Links to marc do not have an easy way other than re-typing to get to a usable message-id to find the message to reply to, so while I wanted to make this as a reply to your message from June 30th, I couldn't, and instead I am sending this as a reply to the new message, and I had to copy and paste the parts of the message I responded to.

Previous: Dan McGeeNext: Dan McGee
Message 10 of 12 in “git-instaweb: Fix custom apache log placement”
  1. 1/3 git-instaweb: Fix custom apache log placementDan McGee, Jun 30, 2010
  2. 2/3 git-instaweb: Fix Apache environment variable passingDan McGee, Jun 30, 2010
  3. 3/3 git-instaweb: Don't assume Apache executable is named apache2Dan McGee, Jun 30, 2010
  4. Eric WongJun 30, 2010
  5. 3/3 git-instaweb: Don't assume Apache executable is named apache2Dan McGee, Jun 30, 2010
  6. Junio C HamanoJun 30, 2010
  7. Dan McGeeJul 22, 2010
  8. Eric WongJul 22, 2010
  9. Dan McGeeJul 23, 2010
  10. Junio C HamanoJul 23, 2010
  11. Dan McGeeJun 30, 2010
  12. Eric WongJul 23, 2010

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.