mod_realdoc

Apache module to support atomic deploys - http://codeascraft.com/2013/07/01/atomic-deploys-at-etsy/

  • Owner: etsy/mod_realdoc
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

mod_realdoc is an Apache module which does a realpath on
the docroot symlink and sets the absolute path as the
real document root for the remainder of the request.

It executes as soon as Apache is finished reading the request
from the client.

The realpath frequency can be adjusted in httpd.conf using:

<IfModule mod_realdoc.c>
    RealpathEvery 2
</IfModule>

By resolving the configured symlinked docroot directory to
an absolute path at the start of a request we can safely
switch this symlink to point to another directory on a
deploy. Requests that started before the symlink change will
continue to execute on the previous symlink target and
therefore will not be vulnerable to deploy race conditions.

This module is intended for the prefork mpm. Threaded mpms
will incur race conditions.

Compile and install with:

apxs -c mod_realdoc.c
sudo apxs -i -a -n realdoc mod_realdoc.la

Main metrics

Overview
Name With Owneretsy/mod_realdoc
Primary LanguageC
Program languageC (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2013-06-28 15:34:02
Pushed At2023-08-31 17:17:51
Last Commit At2021-04-05 19:21:53
Release Count1
Last Release Namev1.0.0 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count126
Watchers Count40
Fork Count21
Commits Count25
Has Issues Enabled
Issues Count6
Issue Open Count1
Pull Requests Count4
Pull Requests Open Count1
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private