mod_lock.c

mod_lock.c Apache module allows to conditionaly lock a part of a web server by just creating a file in a predefined location.
Download

mod_lock.c Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Lyonel Vincent
  • Publisher web site:
  • http://gnome-look.org/content/show.php/Nodoka+graphite?content=69794

mod_lock.c Tags


mod_lock.c Description

mod_lock.c Apache module allows to conditionaly lock a part of a web server by just creating a file in a predefined location. mod_lock.c Apache module allows to conditionaly lock a part of a web server by just creating a file in a predefined location. This feature is useful for system maintenance on multi VirtualHosted systems.Configuration:Integrating into Apache - compiling and linkingTo link the lock module with Apache, you must rebuild Apache from its sources with adding mod_lock in the configuration file: · Copy mod_lock.c in Apache sources' directory· Edit Configuration file according your installation· Run the Configure script to rebuild the makefile· Build Apache by typing make· Install the brand new httpd program· Edit the web server configuration files (typically httpd.conf and access.conf)· Restart the web daemon· Example of a Configuration file...Module mime_module mod_mime.oModule access_module mod_access.oModule auth_module mod_auth.oModule negotiation_module mod_negotiation.oModule includes_module mod_include.oModule dir_module mod_dir.oModule cgi_module mod_cgi.o...## Miscellaneous modules#Module lock_module mod_lock.ohttpd.conf DirectivesSetLockFile filename default value: none context: Directory or Location effect: Enables the conditional lock for a location. The web server will check for the existence of the file each time it will access the concerned documents. If it finds it, it will return a 503 (Service unavailable) HTTP status code. remarks: if filename is a null string (""), conditional lock will be disabled for this class of documents. LockBypass host1 host2 ... default value: none context: Directory or Location effect: Allows access from an host, even if locked. remarks: hostnames can be either real hostnames (www.hp.com) or domain names (.hp.com).Known bugs:wrong access rights can confuse the test of the lock file ('access denied' is equivalent to 'not found').webuser (the user who runs the web daemon) should have read access to the lock file to avoid this behaviour. Requirements: · Apache 1.3


mod_lock.c Related Software