Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    mod_lock.c 1.0

    Download button

    No screenshots available
    Downloads: 358  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Lyonel Vincent | More programs
    Freeware / FREE
    May 10th, 2006, 19:50 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    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 linking

    To 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.o
    Module access_module mod_access.o
    Module auth_module mod_auth.o
    Module negotiation_module mod_negotiation.o
    Module includes_module mod_include.o
    Module dir_module mod_dir.o
    Module cgi_module mod_cgi.o
    ...
    #
    # Miscellaneous modules
    #

    Module lock_module mod_lock.o

    httpd.conf Directives

    SetLockFile 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.

    Product's homepage

    Requirements:

    · Apache 1.3

      


    TAGS:

    Apache module | lock web server | lock Apache | mod_lock.c | Apache | module

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM